flexa_lib 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
data/flexa_lib.gemspec CHANGED
@@ -7,7 +7,7 @@ require 'flexa_lib/version'
7
7
  Gem::Specification.new do |s|
8
8
  s.name = 'flexa_lib'
9
9
  # s.version = FlexaLib::VERSION
10
- s.version = '0.2.7'
10
+ s.version = '0.2.8'
11
11
  s.platform = Gem::Platform::RUBY
12
12
 
13
13
  s.authors = ['Allan Freitas','Marcio Sfalsin']
@@ -23,13 +23,6 @@ $(document).ready(function(){
23
23
  $(this).attr("id","short");
24
24
  });
25
25
 
26
-
27
-
28
- if ($("input:text:visible:first").get(0).tagName) {
29
- $("input:text:visible:first").focus();
30
- } else {
31
- $(document).focus();
32
- }
33
26
  var pressedCtrl = false;
34
27
  $(document).keyup(function (e) {
35
28
  if(e.which == 17)
@@ -62,6 +55,12 @@ $(document).ready(function(){
62
55
  }
63
56
  });
64
57
 
58
+ try {
59
+ $("input:text:visible:first").focus();
60
+ } catch(err) {
61
+ nil;
62
+ }
63
+
65
64
  try {
66
65
  $('input.ui-datepicker').datepicker();
67
66
  $('.datePicker').datepicker();
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: flexa_lib
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.7
5
+ version: 0.2.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - Allan Freitas