← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3700: removed unnecessary settings code in plugin

 

------------------------------------------------------------
revno: 3700
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2011-05-22 21:35:32 +0200
message:
  removed unnecessary settings code in plugin
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/jQuery/jquery.dhisPaging.js


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/jQuery/jquery.dhisPaging.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/jQuery/jquery.dhisPaging.js	2011-05-22 19:28:36 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/jQuery/jquery.dhisPaging.js	2011-05-22 19:35:32 +0000
@@ -96,9 +96,6 @@
             if(params.currentPage == params.numberOfPages) {
                 $next_button.attr("disabled", "disabled");
             }
-
-            settings.params = params;
-            $select.data("settings", settings);
          });
     },
     init: function(options) {
@@ -166,7 +163,6 @@
               }
 
               settings.params.currentPage = 1;
-              $select.data("settings", settings);
               methods.load(event.data.id);
           });
       }
@@ -211,17 +207,11 @@
 
       $next_button.click(function() {
           params.currentPage = +params.currentPage + 1;
-          settings.params = params;
-          $select.data("settings", settings);
-
           methods.load("" + id);
       });
 
       $previous_button.click(function() {
           params.currentPage = +params.currentPage - 1;
-          settings.params = params;
-          $select.data("settings", settings);
-
           methods.load("" + id);
       });
 
@@ -233,9 +223,6 @@
          }
 
          params.currentPage = 1;
-         settings.params = params;
-         $select.data("settings", settings);
-         
          methods.load("" + id);
       });
       
@@ -248,18 +235,12 @@
       
       $select_page.change(function() {
           params.currentPage = +$(this).find(":selected").val();
-          settings.params = params;
-          $select.data("settings", settings);
-
           methods.load("" + id);
       });
 
       $pagesize_input.change(function() {
          params.pageSize = +$(this).val();
          params.currentPage = 1;
-         settings.params = params;
-         $select.data("settings", settings);
-
          methods.load("" + id);
       });
     }