RubyApp 0.6.44 → 0.6.45
Sign up to get free protection for your applications and to get access to all the features.
@@ -40,12 +40,14 @@
|
|
40
40
|
$('div.overlay').css('display', 'none');
|
41
41
|
}
|
42
42
|
},
|
43
|
-
this.sendEvent = function(event) {
|
43
|
+
this.sendEvent = function(event, wait) {
|
44
44
|
RubyApp.log('ENQUEUE event.class=' + event._class);
|
45
45
|
event.now = new Date().toString();
|
46
46
|
event.session = RubyApp.getData('session', null);
|
47
|
+
var _wait = wait == undefined ? true : wait;
|
47
48
|
RubyApp.enQueue ( function() {
|
48
|
-
|
49
|
+
if (_wait)
|
50
|
+
RubyApp.showWait();
|
49
51
|
RubyApp.log('DEQUEUE event.class=' + event._class);
|
50
52
|
request = $.ajax({type:'POST', url:location.href, data:event});
|
51
53
|
request
|
@@ -62,7 +64,8 @@
|
|
62
64
|
} )
|
63
65
|
.complete( function() {
|
64
66
|
RubyApp.deQueue();
|
65
|
-
|
67
|
+
if (_wait)
|
68
|
+
RubyApp.hideWait();
|
66
69
|
} )
|
67
70
|
} );
|
68
71
|
},
|
@@ -4,7 +4,7 @@
|
|
4
4
|
$(document).on('change', 'input', function(event) {
|
5
5
|
event.preventDefault();
|
6
6
|
if ($(this).attr('id'))
|
7
|
-
RubyApp.sendEvent({_class:'RubyApp::Elements::Mobile::Input::ChangedEvent', source:$(this).attr('id'), value:$(this).val()});
|
7
|
+
RubyApp.sendEvent({_class:'RubyApp::Elements::Mobile::Input::ChangedEvent', source:$(this).attr('id'), value:$(this).val()}, false);
|
8
8
|
});
|
9
9
|
});
|
10
10
|
= yield
|
@@ -3,7 +3,7 @@
|
|
3
3
|
$(document).ready( function() {
|
4
4
|
$(document).on('change', 'textarea', function(event) {
|
5
5
|
event.preventDefault();
|
6
|
-
RubyApp.sendEvent({_class:'RubyApp::Elements::Mobile::Inputs::MultilineInput::ChangedEvent', source:$(this).attr('id'), value:$(this).val()});
|
6
|
+
RubyApp.sendEvent({_class:'RubyApp::Elements::Mobile::Inputs::MultilineInput::ChangedEvent', source:$(this).attr('id'), value:$(this).val()}, false);
|
7
7
|
});
|
8
8
|
});
|
9
9
|
= yield
|
@@ -3,7 +3,7 @@
|
|
3
3
|
$(document).ready( function() {
|
4
4
|
$(document).on('change', 'select[data-role="slider"]', function(event) {
|
5
5
|
event.preventDefault();
|
6
|
-
RubyApp.sendEvent({_class:'RubyApp::Elements::Mobile::Inputs::ToggleInput::ChangedEvent', source:$(this).attr('id'), value:$(this).val()});
|
6
|
+
RubyApp.sendEvent({_class:'RubyApp::Elements::Mobile::Inputs::ToggleInput::ChangedEvent', source:$(this).attr('id'), value:$(this).val()}, false);
|
7
7
|
});
|
8
8
|
});
|
9
9
|
= yield
|
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: 93
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 45
|
10
|
+
version: 0.6.45
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Frank G. Ficnar
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-10-
|
18
|
+
date: 2012-10-31 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|