]> source.dussan.org Git - archiva.git/commitdiff
no need to apply binding twice
authorOlivier Lamy <olamy@apache.org>
Mon, 6 Feb 2012 09:13:35 +0000 (09:13 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 6 Feb 2012 09:13:35 +0000 (09:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1240938 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/repositories.html

index de0467f2f5a38feaa44dc458035eae47018eeb70..19d30d19e7ad59e662ef393a44919ee78b9cf626 100644 (file)
@@ -815,8 +815,8 @@ $(function() {
               $("#main-content #managed-repositories-table [title]").tooltip();
             }
           });
-          ko.applyBindings(managedRepositoriesViewModel,$("#main-content #managed-repositories-table").get(0));
-          ko.applyBindings(managedRepositoriesViewModel,$("#main-content #managed-repositories-bulk-save-btn").get(0));
+          ko.applyBindings(managedRepositoriesViewModel,$("#main-content #managed-repositories-view").get(0));
+
           $("#main-content #managed-repositories-pills a:first").tab('show');
           removeMediumSpinnerImg("#main-content #managed-repositories-content");
           activateManagedRepositoriesGridTab();
index 38a2fce9b2ffb92b84ef9f36c4040f67bcc8e751..f9cc304d57720ebb1516a54fe33de995d770aee9 100644 (file)
               </li>
             </ul>
             <div id="managed-repositories-tabs-content" class="pill-content">
-              <div id="managed-repositories-bulk-save-btn" data-bind='template:{name:"managed-repositories-bulk-save-tmpl"}'></div>
               <div id="managed-repositories-view" class="pill-pane active">
-                  <table class="table table-striped table-bordered" id="managed-repositories-table"
-                         data-bind="simpleGrid: gridViewModel,simpleGridTemplate:'ko_managed-repositoriesGrid',pageLinksId:'managed-repositoriesPagination',data:'managedRepositories'">
-                  </table>
-                  <div id="managed-repositoriesPagination"></div>
-                  <div id="managed-repositories-pom-snippet"></div>
+                <div id="managed-repositories-bulk-save-btn" data-bind='template:{name:"managed-repositories-bulk-save-tmpl"}'></div>
+                <table class="table table-striped table-bordered" id="managed-repositories-table"
+                       data-bind="simpleGrid: gridViewModel,simpleGridTemplate:'ko_managed-repositoriesGrid',pageLinksId:'managed-repositoriesPagination',data:'managedRepositories'">
+                </table>
+                <div id="managed-repositoriesPagination"></div>
+                <div id="managed-repositories-pom-snippet"></div>
               </div>
               <div id="managed-repository-edit" class="pill-pane" data-bind='template: {name:"managed-repository-edit-tmpl"}'>
               </div>