thin_man 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38f182f3a00e87cfebc8513aa86d17cbe5a316c5
4
- data.tar.gz: a81905ebd66ad23747a333b883460a9cb24505d8
3
+ metadata.gz: 476da8551ed8ff3938c4ee555c1a5f61696140d1
4
+ data.tar.gz: f1bdad205589a43e239d5dfed7db932532c1d2b1
5
5
  SHA512:
6
- metadata.gz: 28bc4db71c82f3a23b61b8ccf6a7cf878bb842a064f5bc219039cf9b0b991f1834e820e3b36260c00a2af0402ae5dab20198617eccb6007d93a898fff4f7fb01
7
- data.tar.gz: b9a7858aa8479fac3509cac46392a6567055c6c1c78b4d2eb3ab68db1384c9a36dc9020768b2e01e4d49bb2494d9f72c94fbabfd80ba00043b60f2887947e380
6
+ metadata.gz: 07baa178ecd3ba6368e23faa1fe2108117f99dd7c4c25c287aa879550fa4eb1f2e3cadea899f6e4c757c188b099acd144acc9f429947f5754434dcd63cd0acf2
7
+ data.tar.gz: 847bf31b2724335c6d391c23ae2a9f5d7bdde70269473fb0411dba2c283da525b491e172bb7887d4875521f39ecab4851ee83f0ee7bff0052735582489bb3424
@@ -73,7 +73,11 @@ var AjaxSubmission = Class.extend({
73
73
  insertHtml: function(data) {
74
74
  if(this.target){
75
75
  this.target[this.insert_method](data);
76
- this.target.find('input:visible:first').focus();
76
+ this.target.find('input,select,textarea').filter(':visible:enabled:first').each(function(){
77
+ if(!$(this).data('date-picker')){
78
+ $(this).focus();
79
+ }
80
+ });
77
81
  }
78
82
  },
79
83
  ajaxSuccess: function(data,textStatus,jqXHR){
@@ -1,3 +1,3 @@
1
1
  module ThinMan
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thin_man
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut, Adam Bialek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-16 00:00:00.000000000 Z
11
+ date: 2015-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails