compass-jquery-plugin 0.2.4.3 → 0.2.4.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- :commit: 3
2
+ :commit: 4
3
3
  :patch: 4
4
4
  :minor: 2
5
5
  :major: 0
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{compass-jquery-plugin}
8
- s.version = "0.2.4.3"
8
+ s.version = "0.2.4.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kosmas Schuetz"]
data/lib/jquery/jqgrid.rb CHANGED
@@ -83,7 +83,7 @@ module ActionView
83
83
  multiselect = %Q/multiselect: true,/
84
84
  multihandler = %Q/
85
85
  jQuery("##{id}_select_button").click( function() {
86
- var s; s = jQuery("##{id}").getGridParam('selarrrow');
86
+ var s; s = jQuery("##{id}").jqGrid('getGridParam','selarrrow');
87
87
  #{options[:selection_handler]}(s);
88
88
  return false;
89
89
  });/
@@ -96,18 +96,18 @@ module ActionView
96
96
  onSelectRow: function(ids) {
97
97
  if(ids == null) {
98
98
  ids=0;
99
- if(jQuery("##{id}_details").getGridParam('records') >0 )
99
+ if(jQuery("##{id}_details").jqGrid('getGridParam','records') >0 )
100
100
  {
101
- jQuery("##{id}_details").setGridParam({url:"#{options[:details_url]}?q=1&id="+ids,page:1})
102
- .setCaption("#{options[:details_caption]}: "+ids)
103
- .trigger('reloadGrid');
101
+ jQuery("##{id}_details").jqGrid('setGridParam',{url:"#{options[:details_url]}?q=1&id="+ids,page:1})
102
+ jQuery("##{id}_details").jqGrid('setCaption',"#{options[:details_caption]}: "+ids)
103
+ jQuery("##{id}_details").trigger('reloadGrid');
104
104
  }
105
105
  }
106
106
  else
107
107
  {
108
- jQuery("##{id}_details").setGridParam({url:"#{options[:details_url]}?q=1&id="+ids,page:1})
109
- .setCaption("#{options[:details_caption]} : "+ids)
110
- .trigger('reloadGrid');
108
+ jQuery("##{id}_details").jqGrid('setGridParam',{url:"#{options[:details_url]}?q=1&id="+ids,page:1})
109
+ jQuery("##{id}_details").jqGrid('setCaption',"#{options[:details_caption]} : "+ids)
110
+ jQuery("##{id}_details").trigger('reloadGrid');
111
111
  }
112
112
  },/
113
113
  end
@@ -118,7 +118,7 @@ module ActionView
118
118
  if (options[:direct_selection].blank? || options[:direct_selection] == false) && options[:selection_handler].present? && (options[:multi_selection].blank? || options[:multi_selection] == false)
119
119
  selection_link = %Q/
120
120
  jQuery("##{id}_select_button").click( function(){
121
- var id = jQuery("##{id}").getGridParam('selrow');
121
+ var id = jQuery("##{id}").jqGrid('getGridParam','selrow');
122
122
  if (id) {
123
123
  #{options[:selection_handler]}(id);
124
124
  } else {
@@ -158,8 +158,8 @@ module ActionView
158
158
  editable = %Q/
159
159
  onSelectRow: function(id){
160
160
  if(id && id!==lastsel_#{id}){
161
- jQuery('##{id}').restoreRow(lastsel_#{id});
162
- jQuery('##{id}').editRow(id, true, #{options[:inline_edit_handler]}, #{options[:error_handler]});
161
+ jQuery('##{id}').jqGrid('restoreRow',lastsel_#{id});
162
+ jQuery('##{id}').jqGrid('editRow',id, true, #{options[:inline_edit_handler]}, #{options[:error_handler]});
163
163
  lastsel_#{id}=id;
164
164
  }
165
165
  },/
@@ -184,8 +184,8 @@ module ActionView
184
184
  subgrid_inline_edit = %Q/
185
185
  onSelectRow: function(id){
186
186
  if(id && id!==lastsel_#{id}){
187
- jQuery('#'+subgrid_table_id).restoreRow(lastsel_#{id});
188
- jQuery('#'+subgrid_table_id).editRow(id,true);
187
+ jQuery('#'+subgrid_table_id).jqGrid('restoreRow',lastsel_#{id});
188
+ jQuery('#'+subgrid_table_id).jqGrid('editRow',id,true);
189
189
  lastsel_#{id}=id;
190
190
  }
191
191
  },
@@ -279,10 +279,10 @@ module ActionView
279
279
  #{multihandler}
280
280
  #{selection_link}
281
281
  jQuery("##{id}").jqGrid('navGrid','##{id}_pager',{edit:#{edit_button},add:#{options[:add]},del:#{options[:delete]},search:false,refresh:true},
282
- {afterSubmit:function(r,data){return #{options[:error_handler_return_value]}(r,data,'edit');} #{edit_options}},
283
- {afterSubmit:function(r,data){return #{options[:error_handler_return_value]}(r,data,'add');} #{add_options}},
284
- {afterSubmit:function(r,data){return #{options[:error_handler_return_value]}(r,data,'delete');} #{del_options}},
285
- {#{search_options}}
282
+ {afterSubmit:function(r,data){return #{options[:error_handler_return_value]}(r,data,'edit');} #{edit_options}},
283
+ {afterSubmit:function(r,data){return #{options[:error_handler_return_value]}(r,data,'add');} #{add_options}},
284
+ {afterSubmit:function(r,data){return #{options[:error_handler_return_value]}(r,data,'delete');} #{del_options}},
285
+ {#{search_options}}
286
286
  );
287
287
 
288
288
  jQuery("##{id}").jqGrid('navButtonAdd',"##{id}_pager",{
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass-jquery-plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4.3
4
+ version: 0.2.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosmas Schuetz