kosmas58-compass-jquery-plugin 0.2.2.0 → 0.2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/jquery/jqgrid.rb CHANGED
@@ -6,7 +6,7 @@ module ActionView
6
6
  js << capture { javascript_include_tag 'jquery.jqGrid.min' }
7
7
  end
8
8
 
9
- def jquery_grid(name, opts={})
9
+ def jqgrid_from_xml(name, opts={})
10
10
  @@grid_name = name.to_s
11
11
  grid_data = YAML::load_file("#{RAILS_ROOT}/config/jquery/jqGrid/#{name}.yml")
12
12
 
@@ -53,7 +53,9 @@ module ActionView
53
53
  end
54
54
 
55
55
 
56
- def jqgrid(title, id, action, columns = {}, options = {}, edit_options = "", add_options = "", del_options = "", search_options = "")
56
+ def jqgrid(title, id, action, columns = {},
57
+ options = {}, edit_options = "", add_options = "", del_options = "", search_options = "",
58
+ custom1_button = nil, custom2_button = nil, custom3_button = nil, custom4_button = nil, custom5_button = nil )
57
59
  # Default options
58
60
  options[:autowidth] = false if options[:autowidth].blank?
59
61
  options[:hidegrid] = true if options[:hidegrid].nil?
@@ -206,7 +208,7 @@ module ActionView
206
208
  var subgrid_table_id, pager_id;
207
209
  subgrid_table_id = subgrid_id+"_t";
208
210
  pager_id = "p_"+subgrid_table_id;
209
- $("#"+subgrid_id).html("<table id='"+subgrid_table_id+"' class='scroll'></table><div id='"+pager_id+"' class='scroll'></div>");
211
+ jQuery("#"+subgrid_id).html("<table id='"+subgrid_table_id+"' class='scroll'></table><div id='"+pager_id+"' class='scroll'></div>");
210
212
  jQuery("#"+subgrid_table_id).jqGrid({
211
213
  url:"#{options[:subgrid][:url]}?q=2&id="+row_id,
212
214
  editurl:'#{options[:subgrid][:edit_url]}?parent_id='+row_id,
@@ -281,7 +283,11 @@ module ActionView
281
283
  {afterSubmit:function(r,data){return #{options[:error_handler_return_value]}(r,data,'delete');} #{del_options}},
282
284
  {#{search_options}}
283
285
  )
284
- .navButtonAdd("##{id}_pager",{caption:"Search",title:"Toggle Search",buttonimg:'/images/jquery/search.png',
286
+
287
+ .navButtonAdd("##{id}_pager",{
288
+ caption:"#{I18n.t('jquery.jqgrid.search')}",
289
+ title:"#{I18n.t('jquery.jqgrid.toogle_search')}",
290
+ buttonicon:"ui-icon-search",
285
291
  onClickButton:function(){
286
292
  if(jQuery("#t_#{id}").css("display")=="none") {
287
293
  jQuery("#t_#{id}").css("display","");
data/lib/jquery/jrails.rb CHANGED
@@ -5,7 +5,7 @@ module ActionView
5
5
  if locale != :en
6
6
  js = capture { javascript_include_tag "i18n/jquery.ui/datepicker-#{locale}.min.js" }
7
7
  js << capture { '<script type="text/javascript">' }
8
- js << capture { " $.datepicker.setDefaults($.datepicker.regional['#{locale}']);" }
8
+ js << capture { " jQuery.datepicker.setDefaults(jQuery.datepicker.regional['#{locale}']);" }
9
9
  js << capture { '</script>' }
10
10
  end
11
11
  end
@@ -8,7 +8,7 @@ module ActionController
8
8
  private
9
9
 
10
10
  def close_dialog(dialog_id)
11
- "$('##{dialog_id}').dialog('close');"
11
+ "jQuery('##{dialog_id}').dialog('close');"
12
12
  end
13
13
  end
14
14
  end
@@ -12,7 +12,7 @@ module ActionController
12
12
  private
13
13
 
14
14
  def refresh_grid(grid_id)
15
- "$('##{grid_id}').trigger('reloadGrid');"
15
+ "jQuery('##{grid_id}').trigger('reloadGrid');"
16
16
  end
17
17
  end
18
18
  end
@@ -2,7 +2,7 @@ module CompassJqueryPlugin#:nodoc:
2
2
 
3
3
  class VERSION #:nodoc:
4
4
 
5
- PATCH = 0 # Set to nil for official release
5
+ PATCH = 2 # Set to nil for official release
6
6
  TINY = 2
7
7
  MINOR = 2
8
8
  MAJOR = 0
@@ -0,0 +1,7 @@
1
+ ---
2
+ de:
3
+ jquery:
4
+ jqgrid:
5
+ search: Suche
6
+ toogle_search: Suche umschalten
7
+
@@ -0,0 +1,7 @@
1
+ ---
2
+ en:
3
+ jquery:
4
+ jqgrid:
5
+ search: Search
6
+ toogle_search: Toogle Search
7
+
@@ -2,6 +2,8 @@
2
2
  # Install with: compass -f jquery -p jqgrid
3
3
 
4
4
  file 'config/initializers/jqgrid.rb'
5
+ file 'config/locales/jquery/jqgrid/de.yml'
6
+ file 'config/locales/jquery/jqgrid/en.yml'
5
7
  javascript 'jquery.jqGrid.js'
6
8
  javascript 'jquery.jqGrid.min.js'
7
9
  javascript 'i18n/jqgrid/locale-bg.js'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kosmas58-compass-jquery-plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2.0
4
+ version: 0.2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosmas Schuetz
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-13 00:00:00 -07:00
12
+ date: 2009-09-17 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -205,6 +205,11 @@ files:
205
205
  - templates/jqgrid/config
206
206
  - templates/jqgrid/config/initializers
207
207
  - templates/jqgrid/config/initializers/jqgrid.rb
208
+ - templates/jqgrid/config/locales
209
+ - templates/jqgrid/config/locales/jquery
210
+ - templates/jqgrid/config/locales/jquery/jqgrid
211
+ - templates/jqgrid/config/locales/jquery/jqgrid/de.yml
212
+ - templates/jqgrid/config/locales/jquery/jqgrid/en.yml
208
213
  - templates/jqgrid/i18n
209
214
  - templates/jqgrid/i18n/jqgrid
210
215
  - templates/jqgrid/i18n/jqgrid/locale-bg.js
@@ -762,6 +767,7 @@ files:
762
767
  - templates/secret_sauce/secret_sauce.min.js
763
768
  has_rdoc: false
764
769
  homepage: http://github.com/kosmas58/compass-jquery-plugin
770
+ licenses:
765
771
  post_install_message:
766
772
  rdoc_options: []
767
773
 
@@ -782,7 +788,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
782
788
  requirements: []
783
789
 
784
790
  rubyforge_project:
785
- rubygems_version: 1.2.0
791
+ rubygems_version: 1.3.5
786
792
  signing_key:
787
793
  specification_version: 3
788
794
  summary: A compass plugin that integrates jRails, jQuery, jQuery UI and Themes, jqGrid and more into the Compass Sass framework.