You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by re...@apache.org on 2014/05/12 15:33:47 UTC

svn commit: r1593964 - /stanbol/trunk/commons/security/usermanagement/src/main/resources/templates/html/org/apache/stanbol/commons/usermanagement/webConsole.ftl

Author: reto
Date: Mon May 12 13:33:46 2014
New Revision: 1593964

URL: http://svn.apache.org/r1593964
Log:
STANBOL-1338: using $.ajax instead $.get. The problem with $.get occurs on all felix webconsole pages.

Modified:
    stanbol/trunk/commons/security/usermanagement/src/main/resources/templates/html/org/apache/stanbol/commons/usermanagement/webConsole.ftl

Modified: stanbol/trunk/commons/security/usermanagement/src/main/resources/templates/html/org/apache/stanbol/commons/usermanagement/webConsole.ftl
URL: http://svn.apache.org/viewvc/stanbol/trunk/commons/security/usermanagement/src/main/resources/templates/html/org/apache/stanbol/commons/usermanagement/webConsole.ftl?rev=1593964&r1=1593963&r2=1593964&view=diff
==============================================================================
--- stanbol/trunk/commons/security/usermanagement/src/main/resources/templates/html/org/apache/stanbol/commons/usermanagement/webConsole.ftl (original)
+++ stanbol/trunk/commons/security/usermanagement/src/main/resources/templates/html/org/apache/stanbol/commons/usermanagement/webConsole.ftl Mon May 12 13:33:46 2014
@@ -328,14 +328,20 @@ limitations under the License.
                 $("#editUserForm").html(data);
                 $("#password-label").html("<label for='password' id='password-label'>Password (leave blank to retain existing password)</label>");
                 
+
+                $.ajax({url: "/user-management/users/"+userName+"/rolesCheckboxes"}).done(
+                            function(data){
+                                $("#roles-checkboxes").html(data);
+                            });
+                /* for some reason this cause: Error: cannot call methods on dialog prior to initialization; attempted to call method 'destroy'
                 $.get("/user-management/users/"+userName+"/rolesCheckboxes",
-                function(data){
+                            function(data){
                     $("#roles-checkboxes").html(data);
-                }, "text/html");
+                }, "text/html");*/
                 
                 $("#editUserForm").dialog("open");
-            }
-        });
+                }
+            });
 
         
     }