simple_update_field 2.4.1 → 2.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.creole +2 -0
- data/VERSION +1 -1
- data/simple_update_field.gemspec +1 -1
- data/vendor/assets/javascripts/simple_update_field.js +14 -1
- metadata +10 -10
data/README.creole
CHANGED
@@ -169,6 +169,8 @@ $(document).ready(function() {
|
|
169
169
|
* error handling of ajax call
|
170
170
|
|
171
171
|
== Recent Changes
|
172
|
+
* IE789 bug : focus() doesn't work unless it is wrapped in a timeout :(
|
173
|
+
* IE8 bug : $.trim() jquery helper must be used instead of String.trim()
|
172
174
|
* Only one active simple update field at a time, even across select groups
|
173
175
|
* before_update callback - return true to continue , false to stop
|
174
176
|
* Only commit changed fields to the remote-resource-uri
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.4.
|
1
|
+
2.4.2
|
data/simple_update_field.gemspec
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
//1
|
2
2
|
SimpleUpdateField = function(selector, options) {
|
3
|
+
var focus_node = function(node) {
|
4
|
+
/*
|
5
|
+
* IE8,7,9 needs to breath for focus to work
|
6
|
+
*/
|
7
|
+
if (navigator.appName == 'Microsoft Internet Explorer') {
|
8
|
+
setTimeout(function() {
|
9
|
+
node.focus()
|
10
|
+
},100)
|
11
|
+
}
|
12
|
+
else {
|
13
|
+
node.focus()
|
14
|
+
}
|
15
|
+
}
|
3
16
|
SimpleUpdateField.current_active = ( SimpleUpdateField.current_active || null )
|
4
17
|
SimpleUpdateField.TAB_KEY = 9 // tab is #9
|
5
18
|
SimpleUpdateField.ENTER_KEY = 13 // enter is #13
|
@@ -55,7 +68,7 @@ SimpleUpdateField = function(selector, options) {
|
|
55
68
|
clicked_node.append(input_node)
|
56
69
|
install_edit_complete_notions(input_node)
|
57
70
|
uninstall_edit_notions(clicked_node)
|
58
|
-
input_node
|
71
|
+
focus_node(input_node)
|
59
72
|
}
|
60
73
|
var is_rollback_changes = function() {
|
61
74
|
if (self.last_keydown_event) {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_update_field
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-06-05 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70270719654000 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 2.8.0
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70270719654000
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rdoc
|
27
|
-
requirement: &
|
27
|
+
requirement: &70270719652000 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '3.12'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70270719652000
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: bundler
|
38
|
-
requirement: &
|
38
|
+
requirement: &70270719646320 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.1.0
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70270719646320
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: jeweler
|
49
|
-
requirement: &
|
49
|
+
requirement: &70270719639780 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: 1.8.3
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70270719639780
|
58
58
|
description: Your resources text attributes will gain inplace update ability with
|
59
59
|
keybindings for quick editing
|
60
60
|
email: curtis@ram9.cc
|
@@ -92,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
92
92
|
version: '0'
|
93
93
|
segments:
|
94
94
|
- 0
|
95
|
-
hash:
|
95
|
+
hash: 1473284989047257229
|
96
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
97
|
none: false
|
98
98
|
requirements:
|