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 +11 -0
- data/README.md +1 -1
- data/app/assets/javascripts/istart.js.coffee +3 -1
- data/lib/istart/rails/version.rb +1 -1
- metadata +5 -4
data/Changelog.md
ADDED
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]', @)
|
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) ->
|
data/lib/istart/rails/version.rb
CHANGED
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.
|
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-
|
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: &
|
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: *
|
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
|