archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1233121 - in /archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js: TODO.TXT src/main/webapp/js/archiva/repositories.js src/main/webapp/js/knockout.simpleGrid.js
Date Wed, 18 Jan 2012 23:30:02 GMT
Author: olamy
Date: Wed Jan 18 23:30:02 2012
New Revision: 1233121

URL: http://svn.apache.org/viewvc?rev=1233121&view=rev
Log:
call simpleGrid callback on first rendering

Modified:
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/TODO.TXT
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js
    archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/knockout.simpleGrid.js

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/TODO.TXT
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/TODO.TXT?rev=1233121&r1=1233120&r2=1233121&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/TODO.TXT (original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/TODO.TXT Wed Jan 18 23:30:02
2012
@@ -7,3 +7,4 @@ documentation:
 * page to describe general architecture (jquery, knockout, jquery tmpl etc)
 * page for rest services (redback karma)
 * page for template loading (i18n etc...)
+* page for simpleGrid binding and various options

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js?rev=1233121&r1=1233120&r2=1233121&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js
Wed Jan 18 23:30:02 2012
@@ -301,7 +301,6 @@ $(function() {
             ],
             pageSize: 5,
             gridUpdateCallBack: function(){
-              $.log("gridUpdateCallBack");
               $("#main-content #managed-repositories-table [title]").twipsy();
             }
           });

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/knockout.simpleGrid.js
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/knockout.simpleGrid.js?rev=1233121&r1=1233120&r2=1233121&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/knockout.simpleGrid.js
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/knockout.simpleGrid.js
Wed Jan 18 23:30:02 2012
@@ -59,10 +59,13 @@
           ko.renderTemplate(gridTemplateName, viewModel, { templateEngine: templateEngine
}, gridContainer, "replaceNode")
               .subscribe(viewModel.gridUpdateCallBack?viewModel.gridUpdateCallBack:function(){});
 
+          if (viewModel.gridUpdateCallBack) viewModel.gridUpdateCallBack();
+
           // Render the page links
           var pageLinksContainer = $("#"+allBindings.pageLinksId).get(0);
           ko.renderTemplate(pageLinksTemplateName, viewModel, { templateEngine: templateEngine
}, pageLinksContainer, "replaceNode")
               .subscribe(viewModel.pageLinksUpdateCallBack?viewModel.pageLinksUpdateCallBack:function(){});
+          if (viewModel.pageLinksUpdateCallBack) viewModel.pageLinksUpdateCallBack();
         }
     };
 })();
\ No newline at end of file



Mime
View raw message