merb-ui 0.4.7 → 0.4.8

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ spec = Gem::Specification.new do |s|
14
14
  s.name = 'merb-ui'
15
15
  s.rubyforge_project = 'uipoet'
16
16
  s.summary = 'User Interface Components for Merb'
17
- s.version = '0.4.7'
17
+ s.version = '0.4.8'
18
18
  end
19
19
 
20
20
  Rake::GemPackageTask.new(spec) do |pkg|
@@ -203,7 +203,6 @@ button.mui_button td {
203
203
  border: 1px solid <%= color(0.95, 0.95, 0.95) %>;
204
204
  border-bottom-color: <%= color(1, 1, 1) %>;
205
205
  border-top-color: <%= color(0.8, 0.8, 0.8) %>;
206
- display: inline-block;
207
206
  font-weight: bold;
208
207
  line-height: 1.7em;
209
208
  min-height: 1.7em;
@@ -44,7 +44,6 @@ function muiWindowOpen(url){
44
44
  }
45
45
  $('.mui_window_target').fadeIn();
46
46
  }
47
- $('.mui_focus:first').focus();
48
47
  $('.mui_click_window_close').click(function(){
49
48
  muiWindowClose(this.id);
50
49
  });
@@ -55,24 +54,10 @@ function muiWindowOpen(url){
55
54
  'containment': 'window',
56
55
  'handle': '.mui_window_bar'
57
56
  });
57
+ $('input.mui_focus:first').focus();
58
58
  });
59
59
  }
60
60
 
61
- $(document).ready(function(){
62
-
63
- // Buttons
64
- $('.mui_click').click(function(){
65
- window.location = this.id;
66
- });
67
- $('.mui_click_window_open').click(function(){
68
- muiWindowOpen(this.id);
69
- });
70
-
71
- // Focus
72
- $('.mui_focus:first').focus();
73
-
74
- });
75
-
76
61
  // Keys
77
62
  $(document).keybind('ctrl+shift+P', function(){
78
63
  muiWindowOpen('/password/read');
@@ -95,3 +80,17 @@ $(document).keybind('right', function(){
95
80
  $('[name=next]').click();
96
81
  });
97
82
 
83
+ // Buttons
84
+ $(document).ready(function(){
85
+ $('.mui_click').click(function(){
86
+ window.location = this.id;
87
+ });
88
+ $('.mui_click_window_open').click(function(){
89
+ muiWindowOpen(this.id);
90
+ });
91
+ });
92
+
93
+ // Focus
94
+ $(window).load(function(){
95
+ $('input.mui_focus:first').focus();
96
+ });
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - UiPoet