]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixed editable profile fields.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 7 Apr 2010 16:20:52 +0000 (16:20 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 7 Apr 2010 16:20:52 +0000 (16:20 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@5654 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/profile/start.php
mod/profile/views/default/profile/editdefaultprofileitems.php

index e08243818a3412b25e0fed701fca8dd12671eed8..4481b012b1a18ca89534fd6fd64c65fe3831f3ce 100644 (file)
@@ -296,5 +296,6 @@ register_action("profile/editdefault",false,$CONFIG->pluginspath . "profile/acti
 register_action("profile/editdefault/delete",false,$CONFIG->pluginspath . "profile/actions/deletedefaultprofileitem.php", true);
 register_action("profile/editdefault/reset",false,$CONFIG->pluginspath . "profile/actions/resetdefaultprofile.php", true);
 register_action("profile/editdefault/reorder",false,$CONFIG->pluginspath . "profile/actions/reorder.php", true);
+register_action("profile/editdefault/editfield",false,$CONFIG->pluginspath . "profile/actions/editfield.php", true);
 register_action("profile/addcomment",false,$CONFIG->pluginspath . "profile/actions/addcomment.php");
 register_action("profile/deletecomment",false,$CONFIG->pluginspath . "profile/actions/deletecomment.php");
\ No newline at end of file
index 17d1f4f8f78a8181b90503c18660a4b606975bf9..8a99b08dc638f2adc6778e84e8367f5ba616c178 100644 (file)
@@ -26,9 +26,9 @@ $(document).ready(function() {
 \r
        $save = elgg_echo('save');\r
        $cancel = elgg_echo('cancel');\r
+       $url = elgg_add_action_tokens_to_url("{$vars['url']}action/profile/editdefault/editfield", FALSE);\r
 \r
        foreach($vars['items'] as $item) {\r
-               $url = elgg_add_action_tokens_to_url("{$vars['url']}action/profile/editdefault/editfield");\r
                echo <<< END\r
 \r
 <script language="javascript" type="text/javascript">\r