istart-rails 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog.md ADDED
@@ -0,0 +1,11 @@
1
+ ### Dev
2
+
3
+ [full changelog](http://github.com/ZenCocoon/istart-rails/compare/v0.0.2...master)
4
+
5
+ ### 0.0.2 / 2012-02-26
6
+
7
+ * Replace submit's inputs values with data-loading-text when submitted
8
+
9
+ ### 0.0.1 / 2012-02-25
10
+
11
+ * Initial release.
data/README.md CHANGED
@@ -4,7 +4,7 @@ iStart-Rails is a set of common helpers to improve your app and speed up it's de
4
4
 
5
5
  ## Helpers
6
6
 
7
- * Disable submit input after form submission
7
+ * Disable submit input after form submission (update value with `data-loading-text` if present)
8
8
  * Open external links in new window (links must have the class name `external`)
9
9
  * Consider element with `data-link-url` as links (also support opening in new window with the class name `external`)
10
10
  * Init [Chosen](http://harvesthq.github.com/chosen/) if in use
@@ -1,7 +1,9 @@
1
1
  jQuery ->
2
2
  # Disable submit input after form submission
3
3
  $(document).on "submit", 'form', (event) ->
4
- $('input[type=submit]', @).attr('disabled', 'disabled')
4
+ submit = $('input[type=submit]', @)
5
+ submit.attr('disabled', 'disabled')
6
+ submit.val(submit.data('loading-text')) if submit.data('loading-text')
5
7
 
6
8
  # External links
7
9
  $(document).on "click", 'a.external', (event) ->
@@ -1,5 +1,5 @@
1
1
  module Istart
2
2
  module Rails
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: istart-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-25 00:00:00.000000000Z
12
+ date: 2012-02-26 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jquery-rails
16
- requirement: &70222543396000 !ruby/object:Gem::Requirement
16
+ requirement: &70208807452200 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70222543396000
24
+ version_requirements: *70208807452200
25
25
  description: iStart-Rails is a set of common helpers to improve your app and speed
26
26
  up it's development
27
27
  email:
@@ -31,6 +31,7 @@ extensions: []
31
31
  extra_rdoc_files: []
32
32
  files:
33
33
  - .gitignore
34
+ - Changelog.md
34
35
  - Gemfile
35
36
  - License.txt
36
37
  - README.md