RubyApp 0.0.44 → 0.0.45
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock
CHANGED
@@ -13,7 +13,10 @@
|
|
13
13
|
request
|
14
14
|
.success( function(event) {
|
15
15
|
$.each(event.statements, function(index, statement) {
|
16
|
-
|
16
|
+
$(window).queue( function() {
|
17
|
+
eval(statement);
|
18
|
+
$(window).dequeue();
|
19
|
+
} );
|
17
20
|
} );
|
18
21
|
} )
|
19
22
|
.error( function(request, message, exception) {
|
@@ -28,6 +31,7 @@
|
|
28
31
|
alert(message);
|
29
32
|
},
|
30
33
|
this.refresh = function() {
|
34
|
+
$(window).clearQueue();
|
31
35
|
location.assign(location.pathname);
|
32
36
|
},
|
33
37
|
this.confirm_refresh = function(message) {
|
@@ -37,11 +41,12 @@
|
|
37
41
|
}
|
38
42
|
},
|
39
43
|
this.go = function(url) {
|
44
|
+
$(window).clearQueue();
|
40
45
|
location.assign(url);
|
41
46
|
},
|
42
47
|
this.show = function(id) {
|
43
|
-
|
44
|
-
|
48
|
+
request = $.get('/#{RubyApp::Language.locale.code}/elements/' + id + '.html');
|
49
|
+
request
|
45
50
|
.success( function(dialog) {
|
46
51
|
var overlay = $('body div.overlay');
|
47
52
|
overlay.append(dialog);
|
@@ -80,8 +85,8 @@
|
|
80
85
|
RubyApp.queueEvent({_class:'RubyApp::Elements::Dialog::HiddenEvent', source_id:id});
|
81
86
|
},
|
82
87
|
this.updateElement = function(id) {
|
83
|
-
|
84
|
-
|
88
|
+
request = $.get('/#{RubyApp::Language.locale.code}/elements/' + id + '.html');
|
89
|
+
request
|
85
90
|
.success( function(content) {
|
86
91
|
$('#'+id).replaceWith(content);
|
87
92
|
} );
|
@@ -115,8 +120,8 @@
|
|
115
120
|
$(window).unload(function() {
|
116
121
|
if ( RubyApp.interval > 0 ) {
|
117
122
|
window.clearInterval(RubyApp._interval);
|
123
|
+
$(window).clearQueue();
|
118
124
|
}
|
119
|
-
// RubyApp.queueEvent({_class:'RubyApp::Elements::Page::UnloadedEvent', source_id:$('html').attr('id')});
|
120
125
|
});
|
121
126
|
|
122
127
|
= yield
|
@@ -29,21 +29,12 @@ module RubyApp
|
|
29
29
|
|
30
30
|
end
|
31
31
|
|
32
|
-
class UnloadedEvent < RubyApp::Element::Event
|
33
|
-
|
34
|
-
def initialize(data)
|
35
|
-
super(data)
|
36
|
-
end
|
37
|
-
|
38
|
-
end
|
39
|
-
|
40
32
|
template_path(:all, File.dirname(__FILE__))
|
41
33
|
|
42
34
|
attr_accessor :interval
|
43
35
|
|
44
36
|
event :loaded
|
45
37
|
event :triggered
|
46
|
-
event :unloaded
|
47
38
|
|
48
39
|
def initialize
|
49
40
|
super
|
@@ -55,7 +46,6 @@ module RubyApp
|
|
55
46
|
def on_event(event)
|
56
47
|
on_loaded(event) if event.is_a?(RubyApp::Elements::Base::BasePage::LoadedEvent)
|
57
48
|
on_triggered(event) if event.is_a?(RubyApp::Elements::Base::BasePage::TriggeredEvent)
|
58
|
-
on_unloaded(event) if event.is_a?(RubyApp::Elements::Base::BasePage::UnloadedEvent)
|
59
49
|
super(event)
|
60
50
|
end
|
61
51
|
|
@@ -67,10 +57,6 @@ module RubyApp
|
|
67
57
|
triggered(event)
|
68
58
|
end
|
69
59
|
|
70
|
-
def on_unloaded(event)
|
71
|
-
unloaded(event)
|
72
|
-
end
|
73
|
-
|
74
60
|
end
|
75
61
|
|
76
62
|
end
|
data/lib/ruby_app/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: RubyApp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 69
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 45
|
10
|
+
version: 0.0.45
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Frank G. Ficnar
|