From f9ed723ae6d79c26fbf002cfe98ea401a209000f Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Sun, 1 Jan 2012 19:38:35 +0000 Subject: [PATCH] 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 --- .../archiva-webapp-js/src/main/webapp/js/archiva/utils.js | 1 + .../archiva-webapp-js/src/main/webapp/js/redback/roles.js | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.5