prime-rails 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/helpers/accordion_helper.rb +1 -1
- data/app/helpers/breadcrumb_helper.rb +1 -1
- data/app/helpers/context_menu_helper.rb +1 -1
- data/app/helpers/dialog_helper.rb +1 -1
- data/app/helpers/fieldset_helper.rb +1 -1
- data/app/helpers/galleria_helper.rb +1 -1
- data/app/helpers/growl_helper.rb +1 -1
- data/app/helpers/lightbox_helper.rb +1 -1
- data/app/helpers/menu_helper.rb +1 -1
- data/app/helpers/menubar_helper.rb +1 -1
- data/app/helpers/panel_helper.rb +1 -1
- data/app/helpers/progressbar_helper.rb +1 -1
- data/app/helpers/radiobutton_helper.rb +1 -1
- data/app/helpers/slide_menu_helper.rb +1 -1
- data/app/helpers/tabview_helper.rb +1 -1
- data/app/helpers/tiered_menu_helper.rb +1 -1
- data/app/helpers/tooltip_helper.rb +1 -1
- data/lib/prime/rails/engine.rb +1 -0
- data/lib/prime/rails/form_tag_helper.rb +5 -5
- data/lib/prime/rails/javascript_helper.rb +13 -0
- data/lib/prime/rails/tags/check_box.rb +1 -1
- data/lib/prime/rails/tags/select.rb +1 -1
- data/lib/prime/rails/tags/text_area.rb +1 -1
- data/lib/prime/rails/tags/text_field.rb +1 -1
- data/lib/prime/rails/url_helper.rb +1 -1
- data/lib/prime/rails/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjcyMjZiZmM3OGNkNmE2NWY3MmY4ZThhMjUzMTZjMjhjNmYwNWYyMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmUzNjJkYmUzMzc4MjMxOGVhMjYyZjJjNTM1Mjg0NjM3MjRhMWM0OQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTQ4MTg5YTNjYjY0MWY0MmU3NGRiMGE5MzRjMGUxNDg3Y2I4ZGYzMGI3ZWM4
|
10
|
+
ZTFmYjYzYTQzYzJjMDQzNGU4NzUwZDYxYWYzZGM3ZmQ3YjRmOWY3ZDlmNzYw
|
11
|
+
MmRhYjYzY2YwNjdjMGM2MTdhNDZhYzFmNDFjYmFjOWVmZjc5NDc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDdiNmI0OWYyZjQ0ZTVkOWJhMGY2N2E2YzBiZGQ5YTM5M2ZjZjAwY2I1YjBk
|
14
|
+
MzMwZGQ2NjY0ZDNmODMxMTg3ZWRhOWE2NGFhMTIxZjFkZWMyNDM2MmYyYzY3
|
15
|
+
ZDdmMTU0MmEzZDE5N2U3YzJjYWM1ZDJiNzhlYTA2MjQ3MTI0M2Y=
|
@@ -45,7 +45,7 @@ module BreadcrumbHelper
|
|
45
45
|
script = '$(function() {'
|
46
46
|
script += "PrimeFaces.cw('Breadcrumb','#{widgetvar}',#{options_ui})"
|
47
47
|
script += '});'
|
48
|
-
|
48
|
+
p_javascript_tag(script, "id" => clientid+"_s")
|
49
49
|
end
|
50
50
|
|
51
51
|
end
|
@@ -28,7 +28,7 @@ module ContextMenuHelper
|
|
28
28
|
script = '$(function() {'
|
29
29
|
script += "PrimeFaces.cw('ContextMenu','#{widgetvar}',#{options_ui})"
|
30
30
|
script += '});'
|
31
|
-
|
31
|
+
p_javascript_tag(script, "id" => clientid+"_s")
|
32
32
|
end
|
33
33
|
|
34
34
|
end
|
data/app/helpers/growl_helper.rb
CHANGED
data/app/helpers/menu_helper.rb
CHANGED
data/app/helpers/panel_helper.rb
CHANGED
@@ -25,7 +25,7 @@ module ProgressbarHelper
|
|
25
25
|
script = '$(function() {'
|
26
26
|
script += "PrimeFaces.cw('Progressbar','#{widgetvar}',#{options_ui})"
|
27
27
|
script += '});'
|
28
|
-
|
28
|
+
p_javascript_tag(script, "id" => clientid+"_s")
|
29
29
|
end
|
30
30
|
|
31
31
|
end
|
@@ -28,7 +28,7 @@ module RadiobuttonHelper
|
|
28
28
|
script = '$(function() {'
|
29
29
|
script += "PrimeFaces.cw('RadioButton','#{widgetvar}',#{options_ui})"
|
30
30
|
script += '});'
|
31
|
-
|
31
|
+
p_javascript_tag(script, "id" => clientid+"_s")
|
32
32
|
end
|
33
33
|
|
34
34
|
end
|
@@ -28,7 +28,7 @@ module TieredMenuHelper
|
|
28
28
|
script = '$(function() {'
|
29
29
|
script += "PrimeFaces.cw('TieredMenu','#{widgetvar}',#{options_ui})"
|
30
30
|
script += '});'
|
31
|
-
|
31
|
+
p_javascript_tag(script, "id" => clientid+"_s")
|
32
32
|
end
|
33
33
|
|
34
34
|
end
|
data/lib/prime/rails/engine.rb
CHANGED
@@ -3,6 +3,7 @@ require 'rails'
|
|
3
3
|
require File.dirname(__FILE__) + '/prime-rails-breadcrumbs.rb'
|
4
4
|
require File.dirname(__FILE__) + '/utils.rb'
|
5
5
|
require File.dirname(__FILE__) + '/form_tag_helper.rb'
|
6
|
+
require File.dirname(__FILE__) + '/javascript_helper.rb'
|
6
7
|
require File.dirname(__FILE__) + '/form_helper.rb'
|
7
8
|
require File.dirname(__FILE__) + '/url_helper.rb'
|
8
9
|
|
@@ -15,7 +15,7 @@ module ActionView::Helpers::FormTagHelper
|
|
15
15
|
script = '$(function() {'
|
16
16
|
script += "PrimeFaces.cw('#{widgetclass}','#{widgetvar}',#{options_ui})"
|
17
17
|
script += '});'
|
18
|
-
output +=
|
18
|
+
output += p_javascript_tag(script, "id" => clientid+"_s")
|
19
19
|
|
20
20
|
end
|
21
21
|
|
@@ -40,7 +40,7 @@ module ActionView::Helpers::FormTagHelper
|
|
40
40
|
script = '$(function() {'
|
41
41
|
script += "PrimeFaces.cw('InputTextarea','#{widgetvar}',#{options_ui})"
|
42
42
|
script += '});'
|
43
|
-
output +=
|
43
|
+
output += p_javascript_tag(script, "id" => clientid+"_s")
|
44
44
|
end
|
45
45
|
|
46
46
|
def p_check_box_tag(name, value = "1", checked = false, options = {})
|
@@ -58,7 +58,7 @@ module ActionView::Helpers::FormTagHelper
|
|
58
58
|
script = '$(function() {'
|
59
59
|
script += "PrimeFaces.cw('CheckBox','#{widgetvar}',#{options_ui})"
|
60
60
|
script += '});'
|
61
|
-
output +=
|
61
|
+
output += p_javascript_tag(script, "id" => clientid+"_s")
|
62
62
|
|
63
63
|
end
|
64
64
|
|
@@ -90,7 +90,7 @@ module ActionView::Helpers::FormTagHelper
|
|
90
90
|
script = '$(function() {'
|
91
91
|
script += "PrimeFaces.cw('Dropdown','#{widgetvar}',#{options_ui})"
|
92
92
|
script += '});'
|
93
|
-
output +=
|
93
|
+
output += p_javascript_tag(script, "id" => clientid+"_s")
|
94
94
|
end
|
95
95
|
|
96
96
|
def p_button_tag(content_or_options = nil, options = nil, &block)
|
@@ -134,7 +134,7 @@ module ActionView::Helpers::FormTagHelper
|
|
134
134
|
script = '$(function() {'
|
135
135
|
script += "PrimeFaces.cw('Button','#{widgetvar}',#{options_ui})"
|
136
136
|
script += '});'
|
137
|
-
output +=
|
137
|
+
output += p_javascript_tag(script, "id" => clientid+"_s")
|
138
138
|
end
|
139
139
|
|
140
140
|
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module ActionView::Helpers::JavaScriptHelper
|
2
|
+
def p_javascript_tag(content_or_options_with_block = nil, html_options = {}, &block)
|
3
|
+
content =
|
4
|
+
if block_given?
|
5
|
+
html_options = content_or_options_with_block if content_or_options_with_block.is_a?(Hash)
|
6
|
+
capture(&block)
|
7
|
+
else
|
8
|
+
content_or_options_with_block
|
9
|
+
end
|
10
|
+
|
11
|
+
content_tag(:script, content.html_safe, html_options)
|
12
|
+
end
|
13
|
+
end
|
@@ -36,7 +36,7 @@ module ActionView
|
|
36
36
|
script = '$(function() {'
|
37
37
|
script += "PrimeFaces.cw('CheckBox','#{widgetvar}',#{options_ui})"
|
38
38
|
script += '});'
|
39
|
-
output +=
|
39
|
+
output += p_javascript_tag(script, "id" => clientid+"_s")
|
40
40
|
|
41
41
|
end
|
42
42
|
end
|
@@ -41,7 +41,7 @@ module ActionView
|
|
41
41
|
script = '$(function() {'
|
42
42
|
script += "PrimeFaces.cw('Dropdown','#{widgetvar}',#{options_ui})"
|
43
43
|
script += '});'
|
44
|
-
output +=
|
44
|
+
output += p_javascript_tag(script, "id" => clientid+"_s")
|
45
45
|
end
|
46
46
|
|
47
47
|
end
|
@@ -23,7 +23,7 @@ module ActionView
|
|
23
23
|
script = '$(function() {'
|
24
24
|
script += "PrimeFaces.cw('InputTextarea','#{widgetvar}',#{options_ui})"
|
25
25
|
script += '});'
|
26
|
-
output +=
|
26
|
+
output += p_javascript_tag(script, "id" => clientid+"_s")
|
27
27
|
|
28
28
|
end
|
29
29
|
end
|
@@ -17,7 +17,7 @@ module ActionView
|
|
17
17
|
script = '$(function() {'
|
18
18
|
script += "PrimeFaces.cw('InputText','#{widgetvar}',{id: '#{clientid}' })"
|
19
19
|
script += '});'
|
20
|
-
output +=
|
20
|
+
output += p_javascript_tag(script, "id" => clientid+"_s")
|
21
21
|
|
22
22
|
end
|
23
23
|
end
|
@@ -48,7 +48,7 @@ module ActionView::Helpers::UrlHelper
|
|
48
48
|
script = '$(function() {'
|
49
49
|
script += "PrimeFaces.cw('Button','#{widgetvar}',#{options_ui})"
|
50
50
|
script += '});'
|
51
|
-
output +=
|
51
|
+
output += p_javascript_tag(script, "id" => clientid+"_s")
|
52
52
|
|
53
53
|
button = output
|
54
54
|
|
data/lib/prime/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prime-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lazaro Nixon
|
@@ -34,6 +34,7 @@ files:
|
|
34
34
|
- lib/prime/rails/engine.rb
|
35
35
|
- lib/prime/rails/form_helper.rb
|
36
36
|
- lib/prime/rails/form_tag_helper.rb
|
37
|
+
- lib/prime/rails/javascript_helper.rb
|
37
38
|
- lib/prime/rails/prime-rails-breadcrumbs.rb
|
38
39
|
- lib/prime/rails/primerails.rb
|
39
40
|
- lib/prime/rails/tags/check_box.rb
|