moksha/public/javascript/ui/moksha.ui.grid.js | 58 +++++++++++++-------------
1 file changed, 29 insertions(+), 29 deletions(-)
New commits:
commit c75ee9141a1813fba55f9af8b086bbabeda02121
Author: John (J5) Palmieri <johnp(a)redhat.com>
Date: Tue Mar 30 15:33:32 2010 -0400
updated for the new jQuery UI widget class
* s/_init/_create
* s/defaults/options
diff --git a/moksha/public/javascript/ui/moksha.ui.grid.js b/moksha/public/javascript/ui/moksha.ui.grid.js
index 2a54af5..ecbc64f 100644
--- a/moksha/public/javascript/ui/moksha.ui.grid.js
+++ b/moksha/public/javascript/ui/moksha.ui.grid.js
@@ -18,8 +18,35 @@
$.widget("ui.mokshagrid",{
controls: function(){},
/* methods */
+ options: {
+ event: 'click',
+ rows_per_page: 10,
+ page_num: 1,
+ total_rows: 0,
+ first_visible_row: 1, // 1 based index
+ last_visible_row: 1, // 1 based index
+ visible_rows: 0,
+ filters: {},
+ unique_key: undefined,
+ sort_key: undefined,
+ sort_order: -1,
+ row_template: null,
+ resource: null,
+ resource_path: null,
+ blankRowClass: 'moksha-grid-blank-row',
+ rowClass: 'moksha-grid-row',
+ pagerPageLimit: 5,
+ alphaPager: false,
+ numericPager: false,
+ filterControls: false,
+ more_link: null,
+ loading_throbber: ["Loading", // list of img urls or text
+ "Loading.",
+ "Loading..",
+ "Loading..."]
+ },
- _init: function() {
+ _create: function() {
var self = this;
var o = self.options;
@@ -538,34 +565,7 @@
$.extend($.ui.mokshagrid, {
version: '@VERSION',
- getters: 'visible_row_count',
- defaults: {
- event: 'click',
- rows_per_page: 10,
- page_num: 1,
- total_rows: 0,
- first_visible_row: 1, // 1 based index
- last_visible_row: 1, // 1 based index
- visible_rows: 0,
- filters: {},
- unique_key: undefined,
- sort_key: undefined,
- sort_order: -1,
- row_template: null,
- resource: null,
- resource_path: null,
- blankRowClass: 'moksha-grid-blank-row',
- rowClass: 'moksha-grid-row',
- pagerPageLimit: 5,
- alphaPager: false,
- numericPager: false,
- filterControls: false,
- more_link: null,
- loading_throbber: ["Loading", // list of img urls or text
- "Loading.",
- "Loading..",
- "Loading..."]
- }
+ getters: 'visible_row_count'
});
$.ui.mokshagrid.prototype.controls.filter = {