]> source.dussan.org Git - archiva.git/commitdiff
move data-bind attribute in main-content cleanup in the more generic screenChange...
authorOlivier Lamy <olamy@apache.org>
Sun, 1 Jan 2012 19:38:35 +0000 (19:38 +0000)
committerOlivier Lamy <olamy@apache.org>
Sun, 1 Jan 2012 19:38:35 +0000 (19:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1226294 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/utils.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/roles.js

index 223968d1bee05f87f204359b132ca12630c9c0ed..ce15e801b5d3a931d677d7bbf252e8d2ce3cceb5 100644 (file)
@@ -78,6 +78,7 @@ displayWarningMessage=function(text,idToAppend){
   */
 screenChange=function(){
   $("#main-content").html("");
+  $("#main-content").removeAttr("data-bind");
   clearUserMessages();
 }
 
index bcbcf753357a0fe7fad82f86575161fc6dc0ba71..daabae10aea9f69ebe54db84023b5acf8892af50 100644 (file)
@@ -119,8 +119,7 @@ $(function() {
 
 
   displayRolesGrid = function(){
-    $("#user-messages").html("");
-    $("#main-content").removeAttr("data-bind");
+    screenChange();
     $("#main-content").html(mediumSpinnerImg());
     window.redbackModel.rolesViewModel = new RolesViewModel();
     window.redbackModel.rolesViewModel.loadRoles();