From: Olivier Lamy Date: Sun, 1 Jan 2012 19:38:35 +0000 (+0000) Subject: move data-bind attribute in main-content cleanup in the more generic screenChange... X-Git-Tag: archiva-1.4-M3~1655 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f9ed723ae6d79c26fbf002cfe98ea401a209000f;p=archiva.git move data-bind attribute in main-content cleanup in the more generic screenChange method git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1226294 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/utils.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/utils.js index 223968d1b..ce15e801b 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/utils.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/utils.js @@ -78,6 +78,7 @@ displayWarningMessage=function(text,idToAppend){ */ screenChange=function(){ $("#main-content").html(""); + $("#main-content").removeAttr("data-bind"); clearUserMessages(); } diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/roles.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/roles.js index bcbcf7533..daabae10a 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/roles.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/roles.js @@ -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();