casey_jones 0.0.111 → 0.0.112
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ajax_loading/ajax_loading.rb +1 -1
- data/lib/ajax_loading/application_helpers.rb +1 -1
- data/lib/generators/loadbehind/loadbehind_generator.rb +1 -1
- data/lib/generators/loadbehind/templates/destroy.js.haml +1 -2
- data/lib/generators/loadbehind/templates/edit.js.haml +1 -3
- data/lib/generators/loadbehind/templates/loadbehind.js +0 -33
- data/lib/generators/loadbehind/templates/view.js.haml +1 -4
- data/lib/generators/loadbehind_templates/USAGE +8 -0
- data/lib/generators/loadbehind_templates/loadbehind_templates_generator.rb +14 -0
- metadata +6 -5
- data/lib/generators/loadbehind/templates/_errors.html.haml +0 -5
@@ -7,7 +7,7 @@ module AjaxLoading
|
|
7
7
|
"'"+escape_javascript(render(options))+"'"
|
8
8
|
end
|
9
9
|
def growl(title, msg, type=:info)
|
10
|
-
"$.growl('#{title}', '#{msg}', 'images/growl/#{type}.png');"
|
10
|
+
"$.growl('#{title}', '#{msg}', '/images/growl/#{type}.png');"
|
11
11
|
end
|
12
12
|
|
13
13
|
# For loading associated objects.
|
@@ -28,7 +28,7 @@ class LoadbehindGenerator < Rails::Generators::NamedBase
|
|
28
28
|
template "edit.js.haml", "#{view_dir}/#{act}.js.haml"
|
29
29
|
end
|
30
30
|
|
31
|
-
["destroy.js"
|
31
|
+
["destroy.js"].each do |file|
|
32
32
|
template "#{file}.haml", "#{view_dir}/#{file}.haml"
|
33
33
|
end
|
34
34
|
|
@@ -1,33 +0,0 @@
|
|
1
|
-
$(function () {
|
2
|
-
$('[data-submit]').click(function() {
|
3
|
-
$('#'+$(this).attr('data-submit')).submit();
|
4
|
-
return false;
|
5
|
-
});
|
6
|
-
|
7
|
-
$.growl.settings.dockCss.width = '225px';
|
8
|
-
$.growl.settings.noticeTemplate = ''
|
9
|
-
+ '<table width="225" border="0" cellpadding="0" cellspacing="0">'
|
10
|
-
+ ' <tr>'
|
11
|
-
+ ' <td style="background-image: url(images/growl/growl_top.png); width: 225px; height: 49px; background-repeat: no-repeat; color: #fff;">'
|
12
|
-
+ ' <img src="%image%" style="max-width: 25px; max-height: 25px; text-align: center; margin-left: 19px; margin-top: 19px;" />'
|
13
|
-
+ ' <h1 style="font-size: 18px; margin: 0pt; margin-left: 5px; margin-bottom: 10px; display: inline;">%title%</h1>'
|
14
|
-
+ ' </td>'
|
15
|
-
+ ' </tr>'
|
16
|
-
+ ' <tr>'
|
17
|
-
+ ' <td style="background-image: url(images/growl/growl_repeat.png); width: 225px; background-repeat: repeat-y; color: #ddd;">'
|
18
|
-
+ ' <p style="margin: 20px;">%message%</p>'
|
19
|
-
+ ' </td>'
|
20
|
-
+ ' </tr>'
|
21
|
-
+ ' <tr>'
|
22
|
-
+ ' <td style="background-image: url(images/growl/growl_bottom.png); background-repeat: no-repeat; width: 225px; height: 27px;" valign="top" align="right" >'
|
23
|
-
+ ' <a style="margin-right: 25px; font-size: 10px; color: #fff; text-align: right;" href="" onclick="return false;" rel="close">Close</a>'
|
24
|
-
+ ' </td>'
|
25
|
-
+ ' </tr>'
|
26
|
-
'+ </table>';
|
27
|
-
$.growl.settings.noticeCss = {
|
28
|
-
position: 'relative'
|
29
|
-
};
|
30
|
-
|
31
|
-
|
32
|
-
});
|
33
|
-
|
@@ -0,0 +1,14 @@
|
|
1
|
+
class LoadbehindTemplatesGenerator < Rails::Generators::Base
|
2
|
+
source_root File.expand_path('../../../../app/views/loadbehind', __FILE__)
|
3
|
+
|
4
|
+
FILES = ["_edit.js.haml", "_errors.html.haml", "_view.js.haml","_show_box.html.haml"]
|
5
|
+
def generate_loadbehind_templates
|
6
|
+
view_dir = "app/views/loadbehind"
|
7
|
+
|
8
|
+
FILES.each do |f|
|
9
|
+
copy_file f, "#{view_dir}/#{f}"
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: casey_jones
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 255
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 112
|
10
|
+
version: 0.0.112
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tyler Gannon
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-08-06 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -47,7 +47,6 @@ files:
|
|
47
47
|
- lib/generators/anaf_habtm/assets/nested_attributes.js
|
48
48
|
- lib/generators/loadbehind/USAGE
|
49
49
|
- lib/generators/loadbehind/loadbehind_generator.rb
|
50
|
-
- lib/generators/loadbehind/templates/_errors.html.haml
|
51
50
|
- lib/generators/loadbehind/templates/destroy.js.haml
|
52
51
|
- lib/generators/loadbehind/templates/edit.js.haml
|
53
52
|
- lib/generators/loadbehind/templates/images/error.png
|
@@ -62,6 +61,8 @@ files:
|
|
62
61
|
- lib/generators/loadbehind/templates/showHide_hide_box.gif
|
63
62
|
- lib/generators/loadbehind/templates/showHide_show_box.gif
|
64
63
|
- lib/generators/loadbehind/templates/view.js.haml
|
64
|
+
- lib/generators/loadbehind_templates/USAGE
|
65
|
+
- lib/generators/loadbehind_templates/loadbehind_templates_generator.rb
|
65
66
|
- test/anaf_habtm_test.rb
|
66
67
|
- test/test_helper.rb
|
67
68
|
- uninstall.rb
|