compass-jquery-plugin 0.3.0.beta.10 → 0.3.0.beta.13
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/.loadpath +5 -5
- data/.project +18 -17
- data/VERSION.yml +1 -1
- data/compass-jquery-plugin.gemspec +26 -2
- data/gem_tasks/dynatree.rake +1 -1
- data/gem_tasks/jqgrid.rake +15 -14
- data/gem_tasks/jrails.rake +3 -13
- data/lib/compiler.jar +0 -0
- data/lib/jquery/gridify/grid_column.rb +16 -9
- data/lib/jquery/gridify/grid_finder.rb +36 -17
- data/lib/jquery/gridify/grid_options.rb +10 -8
- data/lib/jquery/gridify/grid_view.rb +2 -1
- data/lib/jquery.ui.rb +5 -27
- data/templates/dynatree/jquery.dynatree.js +822 -243
- data/templates/dynatree/jquery.dynatree.min.js +71 -58
- data/templates/dynatree/jquery.ui/dynatree.aero/copy_here.png +0 -0
- data/templates/dynatree/jquery.ui/dynatree.aero/drop_accept.png +0 -0
- data/templates/dynatree/jquery.ui/dynatree.aero/drop_here.png +0 -0
- data/templates/dynatree/jquery.ui/dynatree.aero/drop_reject.png +0 -0
- data/templates/dynatree/jquery.ui/dynatree.aero/move_here.png +0 -0
- data/templates/dynatree/jquery.ui/dynatree.aero.scss +136 -52
- data/templates/dynatree/jquery.ui/dynatree.aqua/copy_here.png +0 -0
- data/templates/dynatree/jquery.ui/dynatree.aqua/drop_accept.png +0 -0
- data/templates/dynatree/jquery.ui/dynatree.aqua/drop_here.png +0 -0
- data/templates/dynatree/jquery.ui/dynatree.aqua/drop_reject.png +0 -0
- data/templates/dynatree/jquery.ui/dynatree.aqua/move_here.png +0 -0
- data/templates/dynatree/jquery.ui/dynatree.aqua.scss +136 -52
- data/templates/dynatree/jquery.ui/dynatree.crystal/copy_here.png +0 -0
- data/templates/dynatree/jquery.ui/dynatree.crystal/drop_accept.png +0 -0
- data/templates/dynatree/jquery.ui/dynatree.crystal/drop_here.png +0 -0
- data/templates/dynatree/jquery.ui/dynatree.crystal/drop_reject.png +0 -0
- data/templates/dynatree/jquery.ui/dynatree.crystal/move_here.png +0 -0
- data/templates/dynatree/jquery.ui/dynatree.crystal.scss +136 -52
- data/templates/dynatree/jquery.ui/dynatree.xp/copy_here.png +0 -0
- data/templates/dynatree/jquery.ui/dynatree.xp/drop_accept.png +0 -0
- data/templates/dynatree/jquery.ui/dynatree.xp/drop_here.png +0 -0
- data/templates/dynatree/jquery.ui/dynatree.xp/drop_reject.png +0 -0
- data/templates/dynatree/jquery.ui/dynatree.xp/move_here.png +0 -0
- data/templates/dynatree/jquery.ui/dynatree.xp.scss +229 -127
- data/templates/dynatree/manifest.rb +20 -0
- data/templates/jqgrid/i18n/jqgrid/locale-da.js +128 -0
- data/templates/jqgrid/i18n/jqgrid/locale-da.min.js +6 -0
- data/templates/jqgrid/i18n/jqgrid/locale-es.js +128 -0
- data/templates/jqgrid/i18n/jqgrid/locale-es.min.js +7 -0
- data/templates/jqgrid/jquery.jqGrid.js +6772 -6464
- data/templates/jqgrid/jquery.jqGrid.min.js +455 -441
- data/templates/jqgrid/jquery.ui/jqGrid.scss +24 -1
- data/templates/jqgrid/manifest.rb +4 -0
- data/templates/jqical/jquery.jqical.min.js +170 -171
- data/templates/jqical/jquery.ui/jqical.scss +2 -2
- data/templates/jqtouch/jqtouch/jqtouch.scss +1 -1
- data/templates/jrails/jquery-1.4.2.min.js +210 -210
- data/templates/jrails/jquery-ui-1.8.2.min.js +761 -759
- data/templates/jrails/jquery.compat-1.3.min.js +2 -2
- data/templates/jrails/jquery.contextMenu.min.js +1 -1
- data/templates/jrails/jquery.farbtastic.min.js +2 -2
- data/templates/jrails/jquery.haml.min.js +5 -5
- data/templates/jrails/jquery.metadata.min.js +2 -2
- data/templates/jrails/jquery.pngFix.min.js +1 -1
- data/templates/jrails/jquery.themeswitchertool.min.js +7 -8
- data/templates/jrails/jquery.ui/_theme.scss +6 -1
- data/templates/jrails/jquery.ui/base.scss +38 -43
- data/templates/jrails/jquery.ui/black-tie/ui-bg_highlight-hard_100_f9f9f9_1x100.png +0 -0
- data/templates/jrails/jquery.ui/black-tie/ui-bg_inset-hard_55_ffeb80_1x100.png +0 -0
- data/templates/jrails/jquery.ui/black-tie/ui-icons_4ca300_256x240.png +0 -0
- data/templates/jrails/jquery.ui/black-tie/ui-icons_bbbbbb_256x240.png +0 -0
- data/templates/jrails/jquery.ui/black-tie/ui-icons_ffcf29_256x240.png +0 -0
- data/templates/jrails/jquery.ui/black-tie.scss +38 -43
- data/templates/jrails/jquery.ui/blitzer/ui-bg_dots-small_65_a6a6a6_2x2.png +0 -0
- data/templates/jrails/jquery.ui/blitzer/ui-bg_glass_55_fbf8ee_1x400.png +0 -0
- data/templates/jrails/jquery.ui/blitzer.scss +38 -43
- data/templates/jrails/jquery.ui/cupertino/ui-bg_highlight-soft_25_ffef8f_1x100.png +0 -0
- data/templates/jrails/jquery.ui/cupertino.scss +38 -43
- data/templates/jrails/jquery.ui/dark-hive/ui-bg_highlight-soft_33_003147_1x100.png +0 -0
- data/templates/jrails/jquery.ui/dark-hive/ui-icons_a83300_256x240.png +0 -0
- data/templates/jrails/jquery.ui/dark-hive.scss +38 -43
- data/templates/jrails/jquery.ui/dot-luv/ui-bg_diagonals-thick_15_0b3e6f_40x40.png +0 -0
- data/templates/jrails/jquery.ui/dot-luv/ui-bg_dots-small_30_a32d00_2x2.png +0 -0
- data/templates/jrails/jquery.ui/dot-luv/ui-bg_dots-small_40_00498f_2x2.png +0 -0
- data/templates/jrails/jquery.ui/dot-luv/ui-icons_00498f_256x240.png +0 -0
- data/templates/jrails/jquery.ui/dot-luv.scss +38 -43
- data/templates/jrails/jquery.ui/eggplant/ui-bg_highlight-soft_45_5f5964_1x100.png +0 -0
- data/templates/jrails/jquery.ui/eggplant/ui-icons_ebccce_256x240.png +0 -0
- data/templates/jrails/jquery.ui/eggplant.scss +38 -43
- data/templates/jrails/jquery.ui/excite-bike/ui-bg_diagonals-thick_20_e69700_40x40.png +0 -0
- data/templates/jrails/jquery.ui/excite-bike/ui-bg_flat_0_e69700_40x100.png +0 -0
- data/templates/jrails/jquery.ui/excite-bike/ui-bg_highlight-soft_100_f9f9f9_1x100.png +0 -0
- data/templates/jrails/jquery.ui/excite-bike/ui-icons_0a82eb_256x240.png +0 -0
- data/templates/jrails/jquery.ui/excite-bike/ui-icons_0b54d5_256x240.png +0 -0
- data/templates/jrails/jquery.ui/excite-bike.scss +38 -43
- data/templates/jrails/jquery.ui/flick/ui-bg_highlight-soft_25_0073ea_1x100.png +0 -0
- data/templates/jrails/jquery.ui/flick.scss +38 -43
- data/templates/jrails/jquery.ui/hot-sneaks/ui-bg_diagonals-small_50_ff3853_40x40.png +0 -0
- data/templates/jrails/jquery.ui/hot-sneaks/ui-bg_diagonals-small_75_ccd232_40x40.png +0 -0
- data/templates/jrails/jquery.ui/hot-sneaks/ui-bg_flat_75_ba9217_40x100.png +0 -0
- data/templates/jrails/jquery.ui/hot-sneaks/ui-icons_e1e463_256x240.png +0 -0
- data/templates/jrails/jquery.ui/hot-sneaks.scss +38 -43
- data/templates/jrails/jquery.ui/humanity/ui-bg_glass_100_f5f0e5_1x400.png +0 -0
- data/templates/jrails/jquery.ui/humanity/ui-bg_highlight-hard_65_fee4bd_1x100.png +0 -0
- data/templates/jrails/jquery.ui/humanity/ui-bg_inset-soft_100_f4f0ec_1x100.png +0 -0
- data/templates/jrails/jquery.ui/humanity/ui-icons_f35f07_256x240.png +0 -0
- data/templates/jrails/jquery.ui/humanity/ui-icons_ff7519_256x240.png +0 -0
- data/templates/jrails/jquery.ui/humanity.scss +38 -43
- data/templates/jrails/jquery.ui/le-frog/ui-bg_glass_55_fbf5d0_1x400.png +0 -0
- data/templates/jrails/jquery.ui/le-frog/ui-bg_highlight-soft_33_3a8104_1x100.png +0 -0
- data/templates/jrails/jquery.ui/le-frog/ui-bg_highlight-soft_50_4eb305_1x100.png +0 -0
- data/templates/jrails/jquery.ui/le-frog/ui-bg_highlight-soft_60_4ca20b_1x100.png +0 -0
- data/templates/jrails/jquery.ui/le-frog/ui-icons_72b42d_256x240.png +0 -0
- data/templates/jrails/jquery.ui/le-frog.scss +38 -43
- data/templates/jrails/jquery.ui/mint-choc/ui-bg_glass_15_5f391b_1x400.png +0 -0
- data/templates/jrails/jquery.ui/mint-choc/ui-bg_gloss-wave_20_1c160d_500x100.png +0 -0
- data/templates/jrails/jquery.ui/mint-choc/ui-icons_9bcc60_256x240.png +0 -0
- data/templates/jrails/jquery.ui/mint-choc.scss +38 -43
- data/templates/jrails/jquery.ui/overcast/ui-bg_flat_55_c0402a_40x100.png +0 -0
- data/templates/jrails/jquery.ui/overcast/ui-bg_glass_100_f8f8f8_1x400.png +0 -0
- data/templates/jrails/jquery.ui/overcast/ui-icons_70b2e1_256x240.png +0 -0
- data/templates/jrails/jquery.ui/overcast/ui-icons_fbc856_256x240.png +0 -0
- data/templates/jrails/jquery.ui/overcast.scss +38 -43
- data/templates/jrails/jquery.ui/pepper-grinder/ui-bg_fine-grain_65_654b24_60x60.png +0 -0
- data/templates/jrails/jquery.ui/pepper-grinder/ui-icons_fbdb93_256x240.png +0 -0
- data/templates/jrails/jquery.ui/pepper-grinder.scss +38 -43
- data/templates/jrails/jquery.ui/redmond/ui-bg_flat_55_fbec88_40x100.png +0 -0
- data/templates/jrails/jquery.ui/redmond/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- data/templates/jrails/jquery.ui/redmond/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
- data/templates/jrails/jquery.ui/redmond/ui-icons_d8e7f3_256x240.png +0 -0
- data/templates/jrails/jquery.ui/redmond.scss +38 -43
- data/templates/jrails/jquery.ui/smoothness/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/templates/jrails/jquery.ui/smoothness/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/templates/jrails/jquery.ui/smoothness.scss +38 -43
- data/templates/jrails/jquery.ui/south-street/ui-bg_highlight-hard_100_f5f3e5_1x100.png +0 -0
- data/templates/jrails/jquery.ui/south-street/ui-bg_highlight-soft_25_67b021_1x100.png +0 -0
- data/templates/jrails/jquery.ui/south-street/ui-bg_highlight-soft_95_ffedad_1x100.png +0 -0
- data/templates/jrails/jquery.ui/south-street/ui-icons_847e71_256x240.png +0 -0
- data/templates/jrails/jquery.ui/south-street.scss +38 -43
- data/templates/jrails/jquery.ui/start/ui-bg_glass_55_f8da4e_1x400.png +0 -0
- data/templates/jrails/jquery.ui/start/ui-bg_gloss-wave_75_2191c0_500x100.png +0 -0
- data/templates/jrails/jquery.ui/start/ui-icons_056b93_256x240.png +0 -0
- data/templates/jrails/jquery.ui/start/ui-icons_d8e7f3_256x240.png +0 -0
- data/templates/jrails/jquery.ui/start/ui-icons_f7a50d_256x240.png +0 -0
- data/templates/jrails/jquery.ui/start/ui-icons_fcd113_256x240.png +0 -0
- data/templates/jrails/jquery.ui/start.scss +38 -43
- data/templates/jrails/jquery.ui/sunny/ui-bg_diagonals-medium_20_d34d17_40x40.png +0 -0
- data/templates/jrails/jquery.ui/sunny/ui-bg_gloss-wave_60_fece2f_500x100.png +0 -0
- data/templates/jrails/jquery.ui/sunny/ui-bg_gloss-wave_90_fff9e5_500x100.png +0 -0
- data/templates/jrails/jquery.ui/sunny/ui-bg_highlight-soft_100_feeebd_1x100.png +0 -0
- data/templates/jrails/jquery.ui/sunny/ui-icons_3d3d3d_256x240.png +0 -0
- data/templates/jrails/jquery.ui/sunny/ui-icons_d19405_256x240.png +0 -0
- data/templates/jrails/jquery.ui/sunny/ui-icons_eb990f_256x240.png +0 -0
- data/templates/jrails/jquery.ui/sunny/ui-icons_ffe180_256x240.png +0 -0
- data/templates/jrails/jquery.ui/sunny.scss +38 -43
- data/templates/jrails/jquery.ui/swanky-purse/ui-bg_diamond_10_4f4221_10x8.png +0 -0
- data/templates/jrails/jquery.ui/swanky-purse/ui-bg_diamond_8_443113_10x8.png +0 -0
- data/templates/jrails/jquery.ui/swanky-purse/ui-bg_highlight-hard_65_fee4bd_1x100.png +0 -0
- data/templates/jrails/jquery.ui/swanky-purse/ui-icons_e8e2b5_256x240.png +0 -0
- data/templates/jrails/jquery.ui/swanky-purse/ui-icons_f9f2bd_256x240.png +0 -0
- data/templates/jrails/jquery.ui/swanky-purse/ui-icons_ff7519_256x240.png +0 -0
- data/templates/jrails/jquery.ui/swanky-purse.scss +38 -43
- data/templates/jrails/jquery.ui/trontastic/ui-bg_diagonals-small_50_262626_40x40.png +0 -0
- data/templates/jrails/jquery.ui/trontastic/ui-bg_flat_0_4c4c4c_40x100.png +0 -0
- data/templates/jrails/jquery.ui/trontastic/ui-bg_gloss-wave_85_9fda58_500x100.png +0 -0
- data/templates/jrails/jquery.ui/trontastic/ui-bg_gloss-wave_95_f6ecd5_500x100.png +0 -0
- data/templates/jrails/jquery.ui/trontastic/ui-icons_9fda58_256x240.png +0 -0
- data/templates/jrails/jquery.ui/trontastic.scss +38 -43
- data/templates/jrails/jquery.ui/ui-darkness/ui-bg_glass_40_0078a3_1x400.png +0 -0
- data/templates/jrails/jquery.ui/ui-darkness/ui-icons_a83300_256x240.png +0 -0
- data/templates/jrails/jquery.ui/ui-darkness.scss +38 -43
- data/templates/jrails/jquery.ui/ui-lightness/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/templates/jrails/jquery.ui/ui-lightness/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/templates/jrails/jquery.ui/ui-lightness/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/templates/jrails/jquery.ui/ui-lightness/ui-icons_228ef1_256x240.png +0 -0
- data/templates/jrails/jquery.ui/ui-lightness.scss +38 -43
- data/templates/jrails/jquery.ui/vader/ui-bg_highlight-soft_35_adadad_1x100.png +0 -0
- data/templates/jrails/jquery.ui/vader/ui-icons_bbbbbb_256x240.png +0 -0
- data/templates/jrails/jquery.ui/vader.scss +38 -43
- data/templates/jrails/jrails.min.js +4 -4
- data/templates/jrails/manifest.rb +0 -1
- data/templates/ribbon/jquery.ribbon.min.js +12 -12
- metadata +28 -4
data/.loadpath
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<loadpath>
|
|
3
|
-
<pathentry path="" type="src"/>
|
|
4
|
-
<pathentry path="org.rubypeople.rdt.launching.RUBY_CONTAINER" type="con"/>
|
|
5
|
-
</loadpath>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<loadpath>
|
|
3
|
+
<pathentry path="" type="src"/>
|
|
4
|
+
<pathentry path="org.rubypeople.rdt.launching.RUBY_CONTAINER" type="con"/>
|
|
5
|
+
</loadpath>
|
data/.project
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<projectDescription>
|
|
3
|
-
<name>compass-jquery-plugin</name>
|
|
4
|
-
<comment></comment>
|
|
5
|
-
<projects>
|
|
6
|
-
</projects>
|
|
7
|
-
<buildSpec>
|
|
8
|
-
<buildCommand>
|
|
9
|
-
<name>org.rubypeople.rdt.core.rubybuilder</name>
|
|
10
|
-
<arguments>
|
|
11
|
-
</arguments>
|
|
12
|
-
</buildCommand>
|
|
13
|
-
</buildSpec>
|
|
14
|
-
<natures>
|
|
15
|
-
<nature>org.rubypeople.rdt.core.rubynature</nature>
|
|
16
|
-
|
|
17
|
-
</
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<projectDescription>
|
|
3
|
+
<name>compass-jquery-plugin</name>
|
|
4
|
+
<comment></comment>
|
|
5
|
+
<projects>
|
|
6
|
+
</projects>
|
|
7
|
+
<buildSpec>
|
|
8
|
+
<buildCommand>
|
|
9
|
+
<name>org.rubypeople.rdt.core.rubybuilder</name>
|
|
10
|
+
<arguments>
|
|
11
|
+
</arguments>
|
|
12
|
+
</buildCommand>
|
|
13
|
+
</buildSpec>
|
|
14
|
+
<natures>
|
|
15
|
+
<nature>org.rubypeople.rdt.core.rubynature</nature>
|
|
16
|
+
<nature>org.radrails.rails.core.railsnature</nature>
|
|
17
|
+
</natures>
|
|
18
|
+
</projectDescription>
|
data/VERSION.yml
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{compass-jquery-plugin}
|
|
8
|
-
s.version = "0.3.0.beta.
|
|
8
|
+
s.version = "0.3.0.beta.13"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Kosmas Schuetz"]
|
|
12
|
-
s.date = %q{2010-
|
|
12
|
+
s.date = %q{2010-08-14}
|
|
13
13
|
s.description = %q{A compass plugin that integrates jRails, jQuery, jQuery UI and Themes, jqGrid and more into the Compass Sass framework.}
|
|
14
14
|
s.email = %q{kosmas.schuetz@gmx.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
|
@@ -83,10 +83,14 @@ Gem::Specification.new do |s|
|
|
|
83
83
|
"templates/dynatree/jquery.ui/dynatree.aero/cbUnchecked_hover.png",
|
|
84
84
|
"templates/dynatree/jquery.ui/dynatree.aero/collapsed.png",
|
|
85
85
|
"templates/dynatree/jquery.ui/dynatree.aero/collapsed_hover.png",
|
|
86
|
+
"templates/dynatree/jquery.ui/dynatree.aero/copy_here.png",
|
|
86
87
|
"templates/dynatree/jquery.ui/dynatree.aero/customDoc1.png",
|
|
87
88
|
"templates/dynatree/jquery.ui/dynatree.aero/customFolder1.png",
|
|
88
89
|
"templates/dynatree/jquery.ui/dynatree.aero/doc_with_children.png",
|
|
89
90
|
"templates/dynatree/jquery.ui/dynatree.aero/document.png",
|
|
91
|
+
"templates/dynatree/jquery.ui/dynatree.aero/drop_accept.png",
|
|
92
|
+
"templates/dynatree/jquery.ui/dynatree.aero/drop_here.png",
|
|
93
|
+
"templates/dynatree/jquery.ui/dynatree.aero/drop_reject.png",
|
|
90
94
|
"templates/dynatree/jquery.ui/dynatree.aero/empty.png",
|
|
91
95
|
"templates/dynatree/jquery.ui/dynatree.aero/expanded.png",
|
|
92
96
|
"templates/dynatree/jquery.ui/dynatree.aero/expanded_hover.png",
|
|
@@ -98,6 +102,7 @@ Gem::Specification.new do |s|
|
|
|
98
102
|
"templates/dynatree/jquery.ui/dynatree.aero/ltError.png",
|
|
99
103
|
"templates/dynatree/jquery.ui/dynatree.aero/ltWait.ani",
|
|
100
104
|
"templates/dynatree/jquery.ui/dynatree.aero/ltWait.gif",
|
|
105
|
+
"templates/dynatree/jquery.ui/dynatree.aero/move_here.png",
|
|
101
106
|
"templates/dynatree/jquery.ui/dynatree.aero/rbChecked.png",
|
|
102
107
|
"templates/dynatree/jquery.ui/dynatree.aero/rbChecked_hover.png",
|
|
103
108
|
"templates/dynatree/jquery.ui/dynatree.aero/rbIntermediate.png",
|
|
@@ -113,10 +118,14 @@ Gem::Specification.new do |s|
|
|
|
113
118
|
"templates/dynatree/jquery.ui/dynatree.aqua/cbUnchecked_hover.png",
|
|
114
119
|
"templates/dynatree/jquery.ui/dynatree.aqua/collapsed.png",
|
|
115
120
|
"templates/dynatree/jquery.ui/dynatree.aqua/collapsed_hover.png",
|
|
121
|
+
"templates/dynatree/jquery.ui/dynatree.aqua/copy_here.png",
|
|
116
122
|
"templates/dynatree/jquery.ui/dynatree.aqua/customDoc1.png",
|
|
117
123
|
"templates/dynatree/jquery.ui/dynatree.aqua/customFolder1.png",
|
|
118
124
|
"templates/dynatree/jquery.ui/dynatree.aqua/doc_with_children.png",
|
|
119
125
|
"templates/dynatree/jquery.ui/dynatree.aqua/document.png",
|
|
126
|
+
"templates/dynatree/jquery.ui/dynatree.aqua/drop_accept.png",
|
|
127
|
+
"templates/dynatree/jquery.ui/dynatree.aqua/drop_here.png",
|
|
128
|
+
"templates/dynatree/jquery.ui/dynatree.aqua/drop_reject.png",
|
|
120
129
|
"templates/dynatree/jquery.ui/dynatree.aqua/empty.png",
|
|
121
130
|
"templates/dynatree/jquery.ui/dynatree.aqua/expanded.png",
|
|
122
131
|
"templates/dynatree/jquery.ui/dynatree.aqua/expanded_hover.png",
|
|
@@ -128,6 +137,7 @@ Gem::Specification.new do |s|
|
|
|
128
137
|
"templates/dynatree/jquery.ui/dynatree.aqua/ltDoc.png",
|
|
129
138
|
"templates/dynatree/jquery.ui/dynatree.aqua/ltError.png",
|
|
130
139
|
"templates/dynatree/jquery.ui/dynatree.aqua/ltWait.gif",
|
|
140
|
+
"templates/dynatree/jquery.ui/dynatree.aqua/move_here.png",
|
|
131
141
|
"templates/dynatree/jquery.ui/dynatree.aqua/rbChecked.png",
|
|
132
142
|
"templates/dynatree/jquery.ui/dynatree.aqua/rbChecked_hover.png",
|
|
133
143
|
"templates/dynatree/jquery.ui/dynatree.aqua/rbIntermediate.png",
|
|
@@ -143,10 +153,14 @@ Gem::Specification.new do |s|
|
|
|
143
153
|
"templates/dynatree/jquery.ui/dynatree.crystal/cbUnchecked_hover.png",
|
|
144
154
|
"templates/dynatree/jquery.ui/dynatree.crystal/collapsed.png",
|
|
145
155
|
"templates/dynatree/jquery.ui/dynatree.crystal/collapsed_hover.png",
|
|
156
|
+
"templates/dynatree/jquery.ui/dynatree.crystal/copy_here.png",
|
|
146
157
|
"templates/dynatree/jquery.ui/dynatree.crystal/customDoc1.png",
|
|
147
158
|
"templates/dynatree/jquery.ui/dynatree.crystal/customFolder1.png",
|
|
148
159
|
"templates/dynatree/jquery.ui/dynatree.crystal/doc_with_children.png",
|
|
149
160
|
"templates/dynatree/jquery.ui/dynatree.crystal/document.png",
|
|
161
|
+
"templates/dynatree/jquery.ui/dynatree.crystal/drop_accept.png",
|
|
162
|
+
"templates/dynatree/jquery.ui/dynatree.crystal/drop_here.png",
|
|
163
|
+
"templates/dynatree/jquery.ui/dynatree.crystal/drop_reject.png",
|
|
150
164
|
"templates/dynatree/jquery.ui/dynatree.crystal/empty.png",
|
|
151
165
|
"templates/dynatree/jquery.ui/dynatree.crystal/expanded.png",
|
|
152
166
|
"templates/dynatree/jquery.ui/dynatree.crystal/expanded_hover.png",
|
|
@@ -158,6 +172,7 @@ Gem::Specification.new do |s|
|
|
|
158
172
|
"templates/dynatree/jquery.ui/dynatree.crystal/ltDoc.png",
|
|
159
173
|
"templates/dynatree/jquery.ui/dynatree.crystal/ltError.png",
|
|
160
174
|
"templates/dynatree/jquery.ui/dynatree.crystal/ltWait.gif",
|
|
175
|
+
"templates/dynatree/jquery.ui/dynatree.crystal/move_here.png",
|
|
161
176
|
"templates/dynatree/jquery.ui/dynatree.crystal/rbChecked.png",
|
|
162
177
|
"templates/dynatree/jquery.ui/dynatree.crystal/rbChecked_hover.png",
|
|
163
178
|
"templates/dynatree/jquery.ui/dynatree.crystal/rbIntermediate.png",
|
|
@@ -171,8 +186,12 @@ Gem::Specification.new do |s|
|
|
|
171
186
|
"templates/dynatree/jquery.ui/dynatree.xp/cbIntermediate_hover.png",
|
|
172
187
|
"templates/dynatree/jquery.ui/dynatree.xp/cbUnchecked.png",
|
|
173
188
|
"templates/dynatree/jquery.ui/dynatree.xp/cbUnchecked_hover.png",
|
|
189
|
+
"templates/dynatree/jquery.ui/dynatree.xp/copy_here.png",
|
|
174
190
|
"templates/dynatree/jquery.ui/dynatree.xp/customDoc1.png",
|
|
175
191
|
"templates/dynatree/jquery.ui/dynatree.xp/customFolder1.png",
|
|
192
|
+
"templates/dynatree/jquery.ui/dynatree.xp/drop_accept.png",
|
|
193
|
+
"templates/dynatree/jquery.ui/dynatree.xp/drop_here.png",
|
|
194
|
+
"templates/dynatree/jquery.ui/dynatree.xp/drop_reject.png",
|
|
176
195
|
"templates/dynatree/jquery.ui/dynatree.xp/ltD_ne.png",
|
|
177
196
|
"templates/dynatree/jquery.ui/dynatree.xp/ltD_nes.png",
|
|
178
197
|
"templates/dynatree/jquery.ui/dynatree.xp/ltDoc.png",
|
|
@@ -188,6 +207,7 @@ Gem::Specification.new do |s|
|
|
|
188
207
|
"templates/dynatree/jquery.ui/dynatree.xp/ltP_ne.png",
|
|
189
208
|
"templates/dynatree/jquery.ui/dynatree.xp/ltP_nes.png",
|
|
190
209
|
"templates/dynatree/jquery.ui/dynatree.xp/ltWait.gif",
|
|
210
|
+
"templates/dynatree/jquery.ui/dynatree.xp/move_here.png",
|
|
191
211
|
"templates/dynatree/jquery.ui/dynatree.xp/rbChecked.png",
|
|
192
212
|
"templates/dynatree/jquery.ui/dynatree.xp/rbChecked_hover.png",
|
|
193
213
|
"templates/dynatree/jquery.ui/dynatree.xp/rbIntermediate.png",
|
|
@@ -209,6 +229,8 @@ Gem::Specification.new do |s|
|
|
|
209
229
|
"templates/jqgrid/i18n/jqgrid/locale-cn.min.js",
|
|
210
230
|
"templates/jqgrid/i18n/jqgrid/locale-cs.js",
|
|
211
231
|
"templates/jqgrid/i18n/jqgrid/locale-cs.min.js",
|
|
232
|
+
"templates/jqgrid/i18n/jqgrid/locale-da.js",
|
|
233
|
+
"templates/jqgrid/i18n/jqgrid/locale-da.min.js",
|
|
212
234
|
"templates/jqgrid/i18n/jqgrid/locale-de.js",
|
|
213
235
|
"templates/jqgrid/i18n/jqgrid/locale-de.min.js",
|
|
214
236
|
"templates/jqgrid/i18n/jqgrid/locale-dk.js",
|
|
@@ -217,6 +239,8 @@ Gem::Specification.new do |s|
|
|
|
217
239
|
"templates/jqgrid/i18n/jqgrid/locale-el.min.js",
|
|
218
240
|
"templates/jqgrid/i18n/jqgrid/locale-en.js",
|
|
219
241
|
"templates/jqgrid/i18n/jqgrid/locale-en.min.js",
|
|
242
|
+
"templates/jqgrid/i18n/jqgrid/locale-es.js",
|
|
243
|
+
"templates/jqgrid/i18n/jqgrid/locale-es.min.js",
|
|
220
244
|
"templates/jqgrid/i18n/jqgrid/locale-fa.js",
|
|
221
245
|
"templates/jqgrid/i18n/jqgrid/locale-fa.min.js",
|
|
222
246
|
"templates/jqgrid/i18n/jqgrid/locale-fi.js",
|
data/gem_tasks/dynatree.rake
CHANGED
|
@@ -2,7 +2,7 @@ require 'fileutils'
|
|
|
2
2
|
require 'lib/handle_js_files'
|
|
3
3
|
|
|
4
4
|
# Compass generator for DYNATREE_14
|
|
5
|
-
DYNATREE_SRC = File.join(GEM_ROOT, 'src', 'dynatree
|
|
5
|
+
DYNATREE_SRC = File.join(GEM_ROOT, 'src', 'dynatree')
|
|
6
6
|
DYNATREE_SRC_SKINS = File.join(DYNATREE_SRC, 'skins')
|
|
7
7
|
|
|
8
8
|
DYNATREE_DEST_TEMPLATES = File.join(GEM_ROOT, 'templates', 'dynatree')
|
data/gem_tasks/jqgrid.rake
CHANGED
|
@@ -2,7 +2,7 @@ require 'fileutils'
|
|
|
2
2
|
require 'lib/handle_js_files'
|
|
3
3
|
|
|
4
4
|
# Compass generator for jqGrid 3.5+
|
|
5
|
-
JQGRID_SRC = File.join(GEM_ROOT, 'src', 'jqgrid
|
|
5
|
+
JQGRID_SRC = File.join(GEM_ROOT, 'src', 'jqgrid')
|
|
6
6
|
JQGRID_SRC_LOCALES = File.join(JQGRID_SRC, 'config', 'locales')
|
|
7
7
|
JQGRID_SRC_TRANSLATIONS = File.join(JQGRID_SRC, 'js', 'i18n') + "/*.js"
|
|
8
8
|
|
|
@@ -18,25 +18,26 @@ JQGRID_MESSAGE2 = "// Generated by compass-jquery-plugin/gem-tasks/jqgrid.rake\n
|
|
|
18
18
|
all_scripts = [
|
|
19
19
|
#'plugins/jquery.contextmenu.js',
|
|
20
20
|
'plugins/jquery.tablednd.js',
|
|
21
|
-
'plugins/ui.multiselect.js',
|
|
21
|
+
'plugins/ui.multiselect.js',
|
|
22
22
|
'js/grid.base.js',
|
|
23
|
-
'js/grid.celledit.js',
|
|
24
23
|
'js/grid.common.js',
|
|
25
|
-
'js/grid.custom.js',
|
|
26
24
|
'js/grid.formedit.js',
|
|
27
|
-
'js/grid.
|
|
28
|
-
'js/grid.
|
|
29
|
-
'js/grid.jqueryui.js',
|
|
30
|
-
'js/grid.postext.js',
|
|
31
|
-
'js/grid.setcolumns.js',
|
|
25
|
+
'js/grid.inlinedit.js',
|
|
26
|
+
'js/grid.celledit.js',
|
|
32
27
|
'js/grid.subgrid.js',
|
|
28
|
+
'js/grid.treegrid.js',
|
|
29
|
+
'js/grid.custom.js',
|
|
30
|
+
'js/grid.postext.js',
|
|
33
31
|
'js/grid.tbltogrid.js',
|
|
34
|
-
'js/grid.
|
|
35
|
-
'js/
|
|
32
|
+
'js/grid.setcolumns.js',
|
|
33
|
+
'js/grid.import.js',
|
|
34
|
+
'js/jquery.fmatter.js',
|
|
35
|
+
'js/grid.grouping.js',
|
|
36
36
|
'js/jqModal.js',
|
|
37
|
-
'js/
|
|
38
|
-
'js/
|
|
39
|
-
'js/
|
|
37
|
+
'js/jqDnR.js',
|
|
38
|
+
'js/JsonXml.js',
|
|
39
|
+
'js/grid.jqueryui.js',
|
|
40
|
+
'js/jquery.searchFilter.js'
|
|
40
41
|
].collect {|filename| File.read(File.join(JQGRID_SRC, filename))}.join "\n\n"
|
|
41
42
|
|
|
42
43
|
all_stylesheets = [
|
data/gem_tasks/jrails.rake
CHANGED
|
@@ -186,7 +186,6 @@ namespace :build do
|
|
|
186
186
|
'jquery.ui.accordion.js',
|
|
187
187
|
'jquery.ui.autocomplete.js',
|
|
188
188
|
'jquery.ui.button.js',
|
|
189
|
-
#'jquery.ui.checkbox.js',
|
|
190
189
|
'jquery.ui.core.js',
|
|
191
190
|
'jquery.ui.datepicker.js',
|
|
192
191
|
'jquery.ui.dialog.js',
|
|
@@ -220,8 +219,6 @@ namespace :build do
|
|
|
220
219
|
Dir.foreach JQUERY_UI_18_SRC_TRANSLATIONS do |file|
|
|
221
220
|
next unless /^jquery.ui\.datepicker-(.+)\.js$/ =~ file
|
|
222
221
|
lang = file
|
|
223
|
-
#lang.gsub!(/^ui\.datepicker-(.+)\.js$/, '')
|
|
224
|
-
#puts lang
|
|
225
222
|
js = File.read File.join(JQUERY_UI_18_SRC_TRANSLATIONS, file)
|
|
226
223
|
file.gsub!(/^jquery.ui\./,'')
|
|
227
224
|
manifest.print "javascript '#{File.join(path, 'jquery.ui', file)}'\n"
|
|
@@ -238,7 +235,7 @@ namespace :build do
|
|
|
238
235
|
|
|
239
236
|
# jQuery UI Themes
|
|
240
237
|
|
|
241
|
-
ui = JqueryUiTheme.new(
|
|
238
|
+
ui = JqueryUiTheme.new(File.join(JQUERY_UI_18_SRC_THEMES, 'base'))
|
|
242
239
|
ui.convert_css(File.join(JRAILS_DEST_THEMES, '_partials'))
|
|
243
240
|
|
|
244
241
|
all_jquery_ui_stylesheets = [
|
|
@@ -246,11 +243,11 @@ namespace :build do
|
|
|
246
243
|
'_accordion.scss',
|
|
247
244
|
'_autocomplete.scss',
|
|
248
245
|
'_button.scss',
|
|
249
|
-
#'_checkbox.scss',
|
|
250
246
|
'_datepicker.scss',
|
|
251
247
|
'_dialog.scss',
|
|
252
248
|
'_progressbar.scss',
|
|
253
249
|
'_resizable.scss',
|
|
250
|
+
'_selectable.scss',
|
|
254
251
|
'_slider.scss',
|
|
255
252
|
'_tabs.scss',
|
|
256
253
|
'_theme.scss'
|
|
@@ -276,14 +273,7 @@ namespace :build do
|
|
|
276
273
|
src_dir = File.join(JQUERY_UI_18_SRC_THEMES, theme, 'images')
|
|
277
274
|
dest_dir = File.join(JRAILS_DEST_IMAGES, theme)
|
|
278
275
|
FileUtils.mkdir_p dest_dir
|
|
279
|
-
|
|
280
|
-
# Fix for Autocomplete
|
|
281
|
-
if theme != :base
|
|
282
|
-
image = 'ui-anim_basic_16x16.gif'
|
|
283
|
-
FileUtils.cp(File.join(JQUERY_UI_18_SRC_THEMES, 'base/images', image), dest_dir)
|
|
284
|
-
manifest.print "image 'jquery.ui/#{theme}/#{image}'\n"
|
|
285
|
-
end
|
|
286
|
-
|
|
276
|
+
|
|
287
277
|
Dir.foreach(src_dir) do |image|
|
|
288
278
|
next if /^\./ =~ image
|
|
289
279
|
FileUtils.cp(File.join(src_dir, image), dest_dir)
|
data/lib/compiler.jar
CHANGED
|
Binary file
|
|
@@ -31,6 +31,9 @@ module Gridify
|
|
|
31
31
|
|
|
32
32
|
# visiblity
|
|
33
33
|
#:always_hidden, # (false)
|
|
34
|
+
:sorttype,
|
|
35
|
+
:summary_type,
|
|
36
|
+
:summary_tpl,
|
|
34
37
|
:hidden # initial hide state (false)
|
|
35
38
|
|
|
36
39
|
def initialize(options)
|
|
@@ -107,15 +110,19 @@ module Gridify
|
|
|
107
110
|
vals[:formatter] = 'date'
|
|
108
111
|
vals[:formatoptions] = { :srcformat => 'UniversalSortableDateTime', :newformat => 'FullDateTime' }
|
|
109
112
|
end
|
|
110
|
-
vals[:hidden]
|
|
111
|
-
vals[:width]
|
|
112
|
-
vals[:formatter]
|
|
113
|
-
vals[:formatoptions]
|
|
114
|
-
vals[:edittype]
|
|
115
|
-
vals[:formoptions]
|
|
116
|
-
vals[:editoptions]
|
|
117
|
-
vals[:editrules]
|
|
118
|
-
|
|
113
|
+
vals[:hidden] = true if hidden
|
|
114
|
+
vals[:width] = width if width
|
|
115
|
+
vals[:formatter] = formatter if formatter
|
|
116
|
+
vals[:formatoptions] = format_options if format_options
|
|
117
|
+
vals[:edittype] = edit_type if editable && edit_type
|
|
118
|
+
vals[:formoptions] = form_options if editable && form_options
|
|
119
|
+
vals[:editoptions] = edit_options if editable && edit_options
|
|
120
|
+
vals[:editrules] = validations if editable && validations
|
|
121
|
+
|
|
122
|
+
vals[:sorttype] = sorttype if sorttype
|
|
123
|
+
vals[:summaryType] = summary_type if summary_type
|
|
124
|
+
vals[:summaryTpl] = summary_tpl if summary_tpl
|
|
125
|
+
# and more...
|
|
119
126
|
|
|
120
127
|
vals
|
|
121
128
|
end
|
|
@@ -21,12 +21,14 @@ module Gridify
|
|
|
21
21
|
self.sort_order = params[:sord] if params[:sord]
|
|
22
22
|
self.current_page = params[:page].to_i if params[:page]
|
|
23
23
|
self.rows_per_page = params[:rows].to_i if params[:rows]
|
|
24
|
+
self.total_rows = params[:total_rows].to_i if params[:total_rows]
|
|
24
25
|
end
|
|
25
26
|
|
|
26
27
|
# return find args (scope) for current settings
|
|
27
28
|
def current_scope
|
|
28
29
|
#debugger
|
|
29
30
|
find_args = {}
|
|
31
|
+
find_args[:include] = colInclude if colInclude
|
|
30
32
|
if sort_by.present? && col = columns_hash[sort_by]
|
|
31
33
|
if case_sensitive || !([:string, :text].include?(col.value_type))
|
|
32
34
|
find_args[:order] = "#{sort_by} #{sort_order}"
|
|
@@ -34,7 +36,11 @@ module Gridify
|
|
|
34
36
|
find_args[:order] = "upper(#{sort_by}) #{sort_order}"
|
|
35
37
|
end
|
|
36
38
|
end
|
|
37
|
-
if
|
|
39
|
+
if total_rows.present? && total_rows > 0
|
|
40
|
+
find_args[:limit] = total_rows
|
|
41
|
+
offset = (current_page.to_i-1) * rows_per_page if current_page.present?
|
|
42
|
+
find_args[:offset] = offset if offset && offset > 0
|
|
43
|
+
elsif rows_per_page.present? && rows_per_page > 0
|
|
38
44
|
find_args[:limit] = rows_per_page
|
|
39
45
|
offset = (current_page.to_i-1) * rows_per_page if current_page.present?
|
|
40
46
|
find_args[:offset] = offset if offset && offset > 0
|
|
@@ -60,28 +66,41 @@ module Gridify
|
|
|
60
66
|
#TODO: :only => [attributes], :methods => [virtual attributes]
|
|
61
67
|
case data_type
|
|
62
68
|
when :xml
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
69
|
+
# if colInclude
|
|
70
|
+
# xml = records.to_xml( :include => [ colInclude ], :skip_types => true, :dasherize => false ) do |xml|
|
|
71
|
+
# if rows_per_page > 0
|
|
72
|
+
# xml.page current_page
|
|
73
|
+
# xml.total_pages total_pages
|
|
74
|
+
# xml.total_records total_count
|
|
75
|
+
# end
|
|
76
|
+
# end
|
|
77
|
+
# else
|
|
78
|
+
xml = records.to_xml( :skip_types => true, :dasherize => false ) do |xml|
|
|
79
|
+
if rows_per_page > 0
|
|
80
|
+
xml.page current_page
|
|
81
|
+
xml.total total_pages
|
|
82
|
+
xml.records total_count
|
|
83
|
+
end
|
|
68
84
|
end
|
|
69
|
-
end
|
|
70
|
-
|
|
85
|
+
# end
|
|
86
|
+
|
|
71
87
|
when :json
|
|
72
88
|
#debugger
|
|
73
|
-
data = { resource => records }
|
|
89
|
+
data = { resource => records }
|
|
74
90
|
if rows_per_page > 0
|
|
75
91
|
data.merge!(
|
|
76
|
-
:page
|
|
77
|
-
:
|
|
78
|
-
:
|
|
92
|
+
:page => current_page,
|
|
93
|
+
:total => total_pages,
|
|
94
|
+
:records => total_count
|
|
79
95
|
)
|
|
80
|
-
end
|
|
81
|
-
|
|
96
|
+
end
|
|
82
97
|
save = ActiveRecord::Base.include_root_in_json
|
|
83
|
-
ActiveRecord::Base.include_root_in_json = false
|
|
84
|
-
|
|
98
|
+
ActiveRecord::Base.include_root_in_json = false
|
|
99
|
+
if colInclude
|
|
100
|
+
json = data.to_json(:include => colInclude)
|
|
101
|
+
else
|
|
102
|
+
json = data.to_json
|
|
103
|
+
end
|
|
85
104
|
ActiveRecord::Base.include_root_in_json = save
|
|
86
105
|
json
|
|
87
106
|
|
|
@@ -148,7 +167,7 @@ module Gridify
|
|
|
148
167
|
# toolbar search
|
|
149
168
|
self.search_rules = []
|
|
150
169
|
self.search_rules_op = :and
|
|
151
|
-
|
|
170
|
+
colModel.each do |col|
|
|
152
171
|
name = col.name
|
|
153
172
|
data = params[name.to_sym]
|
|
154
173
|
self.search_rules << { "field" => name, "op" => "cn", "data" => data } if data
|
|
@@ -12,6 +12,7 @@ module Gridify
|
|
|
12
12
|
:colModel, # incoming: hash of presets (native jqGrid); internally: array of GridColumn objects
|
|
13
13
|
# { :body => { "title" => {"width" => 98} }}
|
|
14
14
|
:colNames, # Column names
|
|
15
|
+
:colInclude, # included submodels
|
|
15
16
|
#:widths, # hash of column width (key = data type)
|
|
16
17
|
:searchable, # default: true (used in generating columns, changing has no effect on existing cols)
|
|
17
18
|
:sortable, # default: true (used in generating columns, changing has no effect on existing cols)
|
|
@@ -84,6 +85,7 @@ module Gridify
|
|
|
84
85
|
:case_sensitive, # sort and search are case sensitive (false)
|
|
85
86
|
:current_page, # current page requested
|
|
86
87
|
:rows_per_page, # number of items to be requested in the next request (paging_choices.first or -1 if pager false)
|
|
88
|
+
:total_rows, # number of rows to read
|
|
87
89
|
:table_to_grid, # when true generates tableToGrid (false) from html table, then use as local data
|
|
88
90
|
# note, we assume table rows are not selectable.
|
|
89
91
|
# (tableToGrid sets multiselect when first col has checkboxes or radio buttons,
|
|
@@ -204,15 +206,15 @@ module Gridify
|
|
|
204
206
|
@paging_choices || [10,25,50,100]
|
|
205
207
|
end
|
|
206
208
|
|
|
209
|
+
def restful
|
|
210
|
+
@restful==false ? false : true
|
|
211
|
+
end
|
|
212
|
+
|
|
207
213
|
# data
|
|
208
214
|
def url
|
|
209
215
|
@url || "/#{resource}"
|
|
210
216
|
end
|
|
211
217
|
|
|
212
|
-
def restful
|
|
213
|
-
@restful==false ? false : true
|
|
214
|
-
end
|
|
215
|
-
|
|
216
218
|
def rows_per_page
|
|
217
219
|
#debugger
|
|
218
220
|
# all rows when pager controls or rows per page are off
|
|
@@ -236,8 +238,8 @@ module Gridify
|
|
|
236
238
|
{
|
|
237
239
|
:root => resource,
|
|
238
240
|
:page => resource+'>page',
|
|
239
|
-
:total => resource+'>
|
|
240
|
-
:records => resource+'>
|
|
241
|
+
:total => resource+'>total',
|
|
242
|
+
:records => resource+'>records',
|
|
241
243
|
:row => resource.singularize,
|
|
242
244
|
:repeatitems => false,
|
|
243
245
|
:id => :id
|
|
@@ -246,8 +248,8 @@ module Gridify
|
|
|
246
248
|
{
|
|
247
249
|
:root => resource,
|
|
248
250
|
:page => 'page',
|
|
249
|
-
:total => '
|
|
250
|
-
:records => '
|
|
251
|
+
:total => 'total',
|
|
252
|
+
:records => 'records',
|
|
251
253
|
:row => resource.singularize,
|
|
252
254
|
:repeatitems => false,
|
|
253
255
|
:id => :id
|
|
@@ -42,7 +42,6 @@ module Gridify
|
|
|
42
42
|
s
|
|
43
43
|
end
|
|
44
44
|
|
|
45
|
-
|
|
46
45
|
def to_json
|
|
47
46
|
jqgrid_properties.to_json_with_js
|
|
48
47
|
end
|
|
@@ -116,6 +115,7 @@ module Gridify
|
|
|
116
115
|
vals[:postData] = { :grid => name, :datatype => data_type } #identify which grid making the request
|
|
117
116
|
vals[:colNames] = colNames if colNames.present?
|
|
118
117
|
vals[:colModel] = column_model if colModel.present?
|
|
118
|
+
#vals[:colModel] = colModel if colModel.present?
|
|
119
119
|
vals[:datatype] = data_type if data_type
|
|
120
120
|
if data_format.present?
|
|
121
121
|
case data_type
|
|
@@ -131,6 +131,7 @@ module Gridify
|
|
|
131
131
|
vals[:sortname] = sort_by if sort_by
|
|
132
132
|
vals[:sortorder] = sort_order if sort_order && sort_by
|
|
133
133
|
vals[:rowNum] = rows_per_page if rows_per_page
|
|
134
|
+
vals[:rowTotal] = total_rows if total_rows
|
|
134
135
|
vals[:page] = current_page if current_page
|
|
135
136
|
|
|
136
137
|
# grid options
|
data/lib/jquery.ui.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
JRAILS_MESSAGE1 = "# Generated by compass-jquery-plugin/gem-tasks/jrailsxx.rake\n# Install with: compass -f jquery -p jrails\n\n"
|
|
2
|
-
JRAILS_MESSAGE2 = "// Generated by compass-jquery-plugin/gem-tasks/jrailsxx.rake\n
|
|
2
|
+
JRAILS_MESSAGE2 = "// Generated by compass-jquery-plugin/gem-tasks/jrailsxx.rake\n"
|
|
3
3
|
AUTOCOMPLETE_FIX = "\n\n/* Fix Autocomplete */\n\n.ui-autocomplete-loading { background: white/*{bgColorLoading}*/ url(images/ui-anim_basic_16x16.gif)/*{bgImgUrlLoading}*/ right/*{bgLoadingXPos}*/ center/*{bgLoadingYPos}*/ no-repeat/*{bgLoadingRepeat}*/; }"
|
|
4
4
|
|
|
5
5
|
class JqueryUiTheme
|
|
@@ -10,25 +10,11 @@ class JqueryUiTheme
|
|
|
10
10
|
attr_accessor :base_theme
|
|
11
11
|
|
|
12
12
|
# Initialize with the base theme
|
|
13
|
-
def initialize(
|
|
14
|
-
|
|
15
|
-
@prefix = 'jquery.ui'
|
|
16
|
-
@version = 14
|
|
17
|
-
else
|
|
18
|
-
@prefix = 'ui'
|
|
19
|
-
@version = 13
|
|
20
|
-
end
|
|
13
|
+
def initialize(base_theme_directory)
|
|
14
|
+
@prefix = 'jquery.ui'
|
|
21
15
|
@theme_filename = "#{@prefix}.theme.css"
|
|
22
16
|
@base_theme_directory = base_theme_directory
|
|
23
17
|
@base_theme = File.read(File.join(@base_theme_directory, @theme_filename))
|
|
24
|
-
if @base_theme[3775..3794] == "#363636/*{fcError}*/"
|
|
25
|
-
print "Fixing up bug in 1.7.1 template\n"
|
|
26
|
-
@base_theme[3775..3794] == "#cd0a0a/*{fcError}*/"
|
|
27
|
-
end
|
|
28
|
-
if @base_theme[416,16] == ".ui-widget input"
|
|
29
|
-
print "Fixing up bug in 1.7.3 template\n"
|
|
30
|
-
@base_theme[416,0] = ".ui-widget .ui-widget { font-size: 1em; }\n"
|
|
31
|
-
end
|
|
32
18
|
|
|
33
19
|
# Fix opacity issue
|
|
34
20
|
print "Fixing overlays\n"
|
|
@@ -38,9 +24,7 @@ class JqueryUiTheme
|
|
|
38
24
|
@base_theme.sub!(/\{opacityShadow\}/, '{bgShadowFilter}')
|
|
39
25
|
|
|
40
26
|
# Fix AutoComplete
|
|
41
|
-
|
|
42
|
-
@base_theme += AUTOCOMPLETE_FIX
|
|
43
|
-
end
|
|
27
|
+
@base_theme += AUTOCOMPLETE_FIX
|
|
44
28
|
end
|
|
45
29
|
|
|
46
30
|
# This sets up the Regexp that will extract the variables from a theme
|
|
@@ -108,10 +92,7 @@ class JqueryUiTheme
|
|
|
108
92
|
|
|
109
93
|
# Fix Overlay stuff
|
|
110
94
|
theme.gsub!(/\;filter:Alpha/, "; filter: Alpha")
|
|
111
|
-
|
|
112
|
-
if @version == 14
|
|
113
|
-
theme += AUTOCOMPLETE_FIX
|
|
114
|
-
end
|
|
95
|
+
theme += AUTOCOMPLETE_FIX
|
|
115
96
|
end
|
|
116
97
|
FileUtils.mkdir_p stylesheets
|
|
117
98
|
# Figure out the variables with the regexp
|
|
@@ -128,9 +109,6 @@ class JqueryUiTheme
|
|
|
128
109
|
# Write out the theme sass
|
|
129
110
|
open File.join(stylesheets, "#{name}.scss"), 'w' do |f|
|
|
130
111
|
f.print JRAILS_MESSAGE2
|
|
131
|
-
# Preserve header comment (css2sass currently doesn't convert comments)
|
|
132
|
-
theme =~ /\/\*\s*(.*)^\*\//m
|
|
133
|
-
$1.each {|line| f.print line.gsub(/^(\s*\*\s*)/,'// ')}
|
|
134
112
|
f.print "\n"
|
|
135
113
|
vars.each do |variable_name, value|
|
|
136
114
|
f.print "$#{variable_name}: #{value} !default;\n"
|