RubyApp 0.0.70 → 0.0.71
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/features/elements/dialog.feature +3 -6
- data/lib/ruby_app/application.rb +51 -0
- data/lib/ruby_app/elements/.cache/button.js +8 -0
- data/lib/ruby_app/elements/.cache/click.js +8 -0
- data/lib/ruby_app/elements/.cache/dialog.css +5 -0
- data/lib/ruby_app/elements/.cache/input.js +8 -0
- data/lib/ruby_app/elements/.cache/link.js +1 -0
- data/lib/ruby_app/elements/.cache/list.js +8 -0
- data/lib/ruby_app/elements/.cache/markdown.js +8 -0
- data/lib/ruby_app/elements/.cache/page.css +27 -0
- data/lib/ruby_app/elements/base/.cache/base_dialog.css +5 -0
- data/lib/ruby_app/elements/base/.cache/base_page.css +27 -0
- data/lib/ruby_app/elements/calendars/.cache/month.css +5 -0
- data/lib/ruby_app/elements/calendars/.cache/month.js +16 -0
- data/lib/ruby_app/elements/calendars/base/.cache/base_month.css +5 -0
- data/lib/ruby_app/elements/calendars/base/.cache/base_month.js +16 -0
- data/lib/ruby_app/elements/dialogs/.cache/acknowledgement_dialog.css +8 -0
- data/lib/ruby_app/elements/dialogs/.cache/acknowledgement_dialog.js +8 -0
- data/lib/ruby_app/elements/dialogs/.cache/blank_dialog.css +5 -0
- data/lib/ruby_app/elements/dialogs/.cache/close_dialog.css +8 -0
- data/lib/ruby_app/elements/dialogs/.cache/close_dialog.js +8 -0
- data/lib/ruby_app/elements/dialogs/.cache/confirmation_dialog.css +8 -0
- data/lib/ruby_app/elements/dialogs/.cache/confirmation_dialog.js +2 -0
- data/lib/ruby_app/elements/dialogs/.cache/exception_dialog.css +8 -0
- data/lib/ruby_app/elements/dialogs/.cache/exception_dialog.js +8 -0
- data/lib/ruby_app/elements/dialogs/.cache/message_dialog.css +1 -0
- data/lib/ruby_app/elements/dialogs/.cache/message_dialog.js +2 -0
- data/lib/ruby_app/elements/dialogs/.cache/ok_dialog.css +8 -0
- data/lib/ruby_app/elements/dialogs/.cache/ok_dialog.js +8 -0
- data/lib/ruby_app/elements/dialogs/.cache/yes_no_dialog.css +12 -0
- data/lib/ruby_app/elements/dialogs/.cache/yes_no_dialog.js +8 -0
- data/lib/ruby_app/elements/dialogs/base/.cache/base_close_dialog.css +8 -0
- data/lib/ruby_app/elements/dialogs/base/.cache/base_close_dialog.js +8 -0
- data/lib/ruby_app/elements/dialogs/base/.cache/base_ok_dialog.css +8 -0
- data/lib/ruby_app/elements/dialogs/base/.cache/base_ok_dialog.js +8 -0
- data/lib/ruby_app/elements/dialogs/base/.cache/base_yes_no_dialog.css +12 -0
- data/lib/ruby_app/elements/dialogs/base/.cache/base_yes_no_dialog.js +8 -0
- data/lib/ruby_app/elements/dialogs/calendars/.cache/month_dialog.css +14 -0
- data/lib/ruby_app/elements/dialogs/calendars/.cache/month_dialog.js +17 -0
- data/lib/ruby_app/elements/inputs/.cache/duration_input.js +1 -0
- data/lib/ruby_app/elements/inputs/.cache/email_input.js +8 -0
- data/lib/ruby_app/elements/inputs/.cache/multiline_input.js +8 -0
- data/lib/ruby_app/elements/inputs/.cache/toggle_input.js +8 -0
- data/lib/ruby_app/elements/lists/.cache/select.js +8 -0
- data/lib/ruby_app/elements/navigation/.cache/back_button.js +8 -0
- data/lib/ruby_app/elements/navigation/.cache/breadcrumbs.js +8 -0
- data/lib/ruby_app/elements/navigation/.cache/page_link.js +8 -0
- data/lib/ruby_app/elements/navigation/base/.cache/base_breadcrumbs.js +8 -0
- data/lib/ruby_app/elements/pages/.cache/blank_page.css +37 -0
- data/lib/ruby_app/elements/pages/.cache/default_page.css +37 -0
- data/lib/ruby_app/elements/pages/.cache/settings_page.css +37 -0
- data/lib/ruby_app/elements/pages/authentication/open_id/.cache/authentication_page.css +27 -0
- data/lib/ruby_app/elements/pages/authentication/open_id/.cache/ax_authentication_page.css +27 -0
- data/lib/ruby_app/elements/pages/authentication/open_id/.cache/email_authentication_page.css +27 -0
- data/lib/ruby_app/elements/pages/authentication/open_id/.cache/google_authentication_page.css +27 -0
- data/lib/ruby_app/elements/pages/authentication/open_id/.cache/my_open_id_authentication_page.css +27 -0
- data/lib/ruby_app/elements/pages/authentication/open_id/.cache/sreg_authentication_page.css +27 -0
- data/lib/ruby_app/elements/pages/authentication/open_id/.cache/yahoo_authentication_page.css +27 -0
- data/lib/ruby_app/elements/pages/authentication/open_id/authentication_page.rb +2 -2
- data/lib/ruby_app/elements/pages/authentication/open_id/ax_authentication_page.rb +5 -5
- data/lib/ruby_app/elements/pages/authentication/open_id/base/.cache/base_authentication_page.css +27 -0
- data/lib/ruby_app/elements/pages/authentication/open_id/base/base_authentication_page.rb +5 -5
- data/lib/ruby_app/elements/pages/authentication/open_id/email_authentication_page.rb +2 -2
- data/lib/ruby_app/elements/pages/authentication/open_id/google_authentication_page.rb +2 -2
- data/lib/ruby_app/elements/pages/authentication/open_id/my_open_id_authentication_page.rb +2 -2
- data/lib/ruby_app/elements/pages/authentication/open_id/sreg_authentication_page.rb +4 -4
- data/lib/ruby_app/elements/pages/authentication/open_id/yahoo_authentication_page.rb +2 -2
- data/lib/ruby_app/elements/pages/base/.cache/base_blank_page.css +37 -0
- data/lib/ruby_app/elements/pages/test_pages/.cache/button_test_page.css +37 -0
- data/lib/ruby_app/elements/pages/test_pages/.cache/default_test_page.css +47 -0
- data/lib/ruby_app/elements/pages/test_pages/.cache/dialog_test_page.css +75 -0
- data/lib/ruby_app/elements/pages/test_pages/.cache/input_test_page.css +47 -0
- data/lib/ruby_app/elements/pages/test_pages/.cache/link_test_page.css +37 -0
- data/lib/ruby_app/elements/pages/test_pages/.cache/linked_test_page.css +37 -0
- data/lib/ruby_app/elements/pages/test_pages/.cache/list_test_page.css +47 -0
- data/lib/ruby_app/elements/pages/test_pages/.cache/markdown_test_page.css +37 -0
- data/lib/ruby_app/elements/pages/test_pages/.cache/select_test_page.css +37 -0
- data/lib/ruby_app/elements/pages/test_pages/.cache/test_page.css +47 -0
- data/lib/ruby_app/log.rb +4 -0
- data/lib/ruby_app/mixins/render_mixin.rb +15 -0
- data/lib/ruby_app/mixins/template_mixin.rb +3 -2
- data/lib/ruby_app/request.rb +6 -0
- data/lib/ruby_app/themes/mobile.rb +1 -1
- data/lib/ruby_app/translations/en.yml +4 -4
- data/lib/ruby_app/version.rb +1 -1
- data/rakefile +19 -8
- metadata +71 -3
data/Gemfile.lock
CHANGED
@@ -40,14 +40,11 @@ Feature: Dialog Test Page
|
|
40
40
|
Given I go to the test pages
|
41
41
|
When I click "DialogTestPage"
|
42
42
|
And I click "MonthDialog"
|
43
|
-
|
44
|
-
|
45
|
-
Then I should not see "Wed"
|
46
|
-
And I should see "You clicked"
|
43
|
+
And I click "15"
|
44
|
+
Then I should see "You clicked"
|
47
45
|
And I should see "15/"
|
48
46
|
When I click "Close"
|
49
|
-
Then I should not see "
|
50
|
-
And I should not see "15/"
|
47
|
+
Then I should not see "15/"
|
51
48
|
And I should see "-15"
|
52
49
|
Then I quit
|
53
50
|
|
data/lib/ruby_app/application.rb
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler/setup'
|
3
|
+
|
4
|
+
require 'fileutils'
|
5
|
+
|
1
6
|
module RubyApp
|
2
7
|
require 'ruby_app/configuration'
|
3
8
|
require 'ruby_app/log'
|
@@ -50,6 +55,52 @@ module RubyApp
|
|
50
55
|
@@_application = nil
|
51
56
|
end
|
52
57
|
|
58
|
+
def self.create_cache(path, root, *formats)
|
59
|
+
RubyApp::Application.destroy_cache(path)
|
60
|
+
RubyApp::Application.create!
|
61
|
+
begin
|
62
|
+
Dir.glob(File.join(path, %w[** *.rb])).each do |element_file|
|
63
|
+
RubyApp::Request.create!
|
64
|
+
begin
|
65
|
+
RubyApp::Request.cache = true
|
66
|
+
require element_file
|
67
|
+
element_class = element_file.gsub(root, '')
|
68
|
+
element_class = element_class.gsub(/^\//, '')
|
69
|
+
element_class = element_class.gsub(/\.rb$/, '')
|
70
|
+
element_class = RubyApp::Application.upcode(element_class)
|
71
|
+
begin
|
72
|
+
element_class = eval(element_class)
|
73
|
+
(formats.empty? ? [:css, :js] : formats).each do |format|
|
74
|
+
begin
|
75
|
+
element_class.render(format)
|
76
|
+
rescue Exception => exception
|
77
|
+
puts "#{element_class}.render(#{format.inspect}) exception=#{exception.message}"
|
78
|
+
end
|
79
|
+
end
|
80
|
+
rescue Exception => exception
|
81
|
+
puts exception.message
|
82
|
+
end
|
83
|
+
ensure
|
84
|
+
RubyApp::Request.destroy!
|
85
|
+
end
|
86
|
+
end
|
87
|
+
ensure
|
88
|
+
RubyApp::Application.destroy!
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
def self.destroy_cache(path)
|
93
|
+
Dir.glob(File.join(path, %w[** .cache *])).each do |file|
|
94
|
+
puts "Removing #{file.inspect}"
|
95
|
+
FileUtils.rm(file)
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
def self.upcode(value)
|
100
|
+
value = value.gsub(/\/(.?)/) { "::#{$1.upcase}" }
|
101
|
+
value.gsub(/(?:^|_)(.)/) { $1.upcase }
|
102
|
+
end
|
103
|
+
|
53
104
|
end
|
54
105
|
|
55
106
|
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
// /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/click.js.haml
|
2
|
+
$(document).ready(function() {
|
3
|
+
$('.click').live('click', function(event) {
|
4
|
+
event.preventDefault();
|
5
|
+
RubyApp.queueEvent({_class:'RubyApp::Elements::Click::ClickedEvent', source_id:$(this).attr('id')}, true);
|
6
|
+
});
|
7
|
+
});
|
8
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
// /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/click.js.haml
|
2
|
+
$(document).ready(function() {
|
3
|
+
$('.click').live('click', function(event) {
|
4
|
+
event.preventDefault();
|
5
|
+
RubyApp.queueEvent({_class:'RubyApp::Elements::Click::ClickedEvent', source_id:$(this).attr('id')}, true);
|
6
|
+
});
|
7
|
+
});
|
8
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
// /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/input.js.haml
|
2
|
+
$(document).ready(function() {
|
3
|
+
$('input[type="text"]').live('change', function(event) {
|
4
|
+
event.preventDefault();
|
5
|
+
RubyApp.queueEvent({_class:'RubyApp::Elements::Input::ChangedEvent', source_id:$(this).attr('id'), value:$(this).val()}, false);
|
6
|
+
});
|
7
|
+
});
|
8
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
// /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/list.js.haml
|
2
|
+
$(document).ready(function() {
|
3
|
+
$('ul.list > li.item > a.item').live('click', function(event) {
|
4
|
+
event.preventDefault();
|
5
|
+
RubyApp.queueEvent({_class:'RubyApp::Elements::List::ClickedEvent', source_id:$(this).parents('ul.list').attr('id'), index:$(this).attr('index')}, true);
|
6
|
+
});
|
7
|
+
});
|
8
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
// /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/markdown.js.haml
|
2
|
+
$(document).ready(function() {
|
3
|
+
$('div.markdown a').live('click', function(event) {
|
4
|
+
event.preventDefault();
|
5
|
+
RubyApp.queueEvent({_class:'RubyApp::Elements::Markdown::ClickedEvent', source_id:$(this).parents('div.markdown').attr('id'), name:$(this).attr('href')}, true);
|
6
|
+
});
|
7
|
+
});
|
8
|
+
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/* /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/base/base_page.css.haml */
|
2
|
+
body > div.overlay {
|
3
|
+
display: none;
|
4
|
+
height: 100%;
|
5
|
+
left: 0px;
|
6
|
+
position: absolute;
|
7
|
+
top: 0px;
|
8
|
+
width: 100%;
|
9
|
+
z-index: 1; }
|
10
|
+
body > div.wait {
|
11
|
+
display: none;
|
12
|
+
height: 100%;
|
13
|
+
left: 0px;
|
14
|
+
position: absolute;
|
15
|
+
top: 0px;
|
16
|
+
width: 100%;
|
17
|
+
z-index: 2; }
|
18
|
+
body > div.wait > div.image {
|
19
|
+
background-image: url("/ruby_app/resources/elements/base/base_page.gif");
|
20
|
+
background-position: center center;
|
21
|
+
background-repeat: no-repeat;
|
22
|
+
height: 48px;
|
23
|
+
position: absolute;
|
24
|
+
width: 48px; }
|
25
|
+
body > ul.log {
|
26
|
+
display: none; }
|
27
|
+
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/* /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/base/base_page.css.haml */
|
2
|
+
body > div.overlay {
|
3
|
+
display: none;
|
4
|
+
height: 100%;
|
5
|
+
left: 0px;
|
6
|
+
position: absolute;
|
7
|
+
top: 0px;
|
8
|
+
width: 100%;
|
9
|
+
z-index: 1; }
|
10
|
+
body > div.wait {
|
11
|
+
display: none;
|
12
|
+
height: 100%;
|
13
|
+
left: 0px;
|
14
|
+
position: absolute;
|
15
|
+
top: 0px;
|
16
|
+
width: 100%;
|
17
|
+
z-index: 2; }
|
18
|
+
body > div.wait > div.image {
|
19
|
+
background-image: url("/ruby_app/resources/elements/base/base_page.gif");
|
20
|
+
background-position: center center;
|
21
|
+
background-repeat: no-repeat;
|
22
|
+
height: 48px;
|
23
|
+
position: absolute;
|
24
|
+
width: 48px; }
|
25
|
+
body > ul.log {
|
26
|
+
display: none; }
|
27
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
// /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/calendars/base/base_month.js.haml
|
2
|
+
$(document).ready(function() {
|
3
|
+
$('div.month > table > thead > tr > td.left > a.previous').live('click', function(event) {
|
4
|
+
event.preventDefault();
|
5
|
+
RubyApp.queueEvent({_class:'RubyApp::Elements::Calendars::Month::MovedEvent', source_id:$(this).parents('div.month').attr('id'), unit:'month', amount:-1}, true);
|
6
|
+
});
|
7
|
+
$('div.month > table > thead > tr > td.right > a.next').live('click', function(event) {
|
8
|
+
event.preventDefault();
|
9
|
+
RubyApp.queueEvent({_class:'RubyApp::Elements::Calendars::Month::MovedEvent', source_id:$(this).parents('div.month').attr('id'), unit:'month', amount:1}, true);
|
10
|
+
});
|
11
|
+
$('div.month > table > tbody > tr > td > a.day').live('click', function(event) {
|
12
|
+
event.preventDefault();
|
13
|
+
RubyApp.queueEvent({_class:'RubyApp::Elements::Calendars::Month::ChangedEvent', source_id:$(this).parents('div.month').attr('id'), date:$(this).attr('date')}, true);
|
14
|
+
});
|
15
|
+
});
|
16
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
// /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/calendars/base/base_month.js.haml
|
2
|
+
$(document).ready(function() {
|
3
|
+
$('div.month > table > thead > tr > td.left > a.previous').live('click', function(event) {
|
4
|
+
event.preventDefault();
|
5
|
+
RubyApp.queueEvent({_class:'RubyApp::Elements::Calendars::Month::MovedEvent', source_id:$(this).parents('div.month').attr('id'), unit:'month', amount:-1}, true);
|
6
|
+
});
|
7
|
+
$('div.month > table > thead > tr > td.right > a.next').live('click', function(event) {
|
8
|
+
event.preventDefault();
|
9
|
+
RubyApp.queueEvent({_class:'RubyApp::Elements::Calendars::Month::MovedEvent', source_id:$(this).parents('div.month').attr('id'), unit:'month', amount:1}, true);
|
10
|
+
});
|
11
|
+
$('div.month > table > tbody > tr > td > a.day').live('click', function(event) {
|
12
|
+
event.preventDefault();
|
13
|
+
RubyApp.queueEvent({_class:'RubyApp::Elements::Calendars::Month::ChangedEvent', source_id:$(this).parents('div.month').attr('id'), date:$(this).attr('date')}, true);
|
14
|
+
});
|
15
|
+
});
|
16
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/* /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/base/base_dialog.css.haml */
|
2
|
+
body > div.overlay > div.dialog {
|
3
|
+
position: absolute;
|
4
|
+
width: 40%; }
|
5
|
+
/* /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/dialogs/base/base_ok_dialog.css.haml */
|
6
|
+
body > div.overlay > div.dialog > div.footer {
|
7
|
+
text-align: right;
|
8
|
+
width: 100%; }
|
@@ -0,0 +1,8 @@
|
|
1
|
+
// /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/click.js.haml
|
2
|
+
$(document).ready(function() {
|
3
|
+
$('.click').live('click', function(event) {
|
4
|
+
event.preventDefault();
|
5
|
+
RubyApp.queueEvent({_class:'RubyApp::Elements::Click::ClickedEvent', source_id:$(this).attr('id')}, true);
|
6
|
+
});
|
7
|
+
});
|
8
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/* /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/base/base_dialog.css.haml */
|
2
|
+
body > div.overlay > div.dialog {
|
3
|
+
position: absolute;
|
4
|
+
width: 40%; }
|
5
|
+
/* /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/dialogs/base/base_close_dialog.css.haml */
|
6
|
+
body > div.overlay > div.dialog > div.footer {
|
7
|
+
text-align: right;
|
8
|
+
width: 100%; }
|
@@ -0,0 +1,8 @@
|
|
1
|
+
// /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/click.js.haml
|
2
|
+
$(document).ready(function() {
|
3
|
+
$('.click').live('click', function(event) {
|
4
|
+
event.preventDefault();
|
5
|
+
RubyApp.queueEvent({_class:'RubyApp::Elements::Click::ClickedEvent', source_id:$(this).attr('id')}, true);
|
6
|
+
});
|
7
|
+
});
|
8
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/* /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/dialogs/base/base_yes_no_dialog.css.haml */
|
2
|
+
body > div.overlay > div.dialog > div.footer {
|
3
|
+
text-align: right;
|
4
|
+
width: 100%; }
|
5
|
+
body > div.overlay > div.dialog > div.footer > a:first-child {
|
6
|
+
padding-left: 0px; }
|
7
|
+
body > div.overlay > div.dialog > div.footer > a {
|
8
|
+
padding-left: 10px; }
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/* /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/base/base_dialog.css.haml */
|
2
|
+
body > div.overlay > div.dialog {
|
3
|
+
position: absolute;
|
4
|
+
width: 40%; }
|
5
|
+
/* /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/dialogs/base/base_close_dialog.css.haml */
|
6
|
+
body > div.overlay > div.dialog > div.footer {
|
7
|
+
text-align: right;
|
8
|
+
width: 100%; }
|
@@ -0,0 +1,8 @@
|
|
1
|
+
// /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/click.js.haml
|
2
|
+
$(document).ready(function() {
|
3
|
+
$('.click').live('click', function(event) {
|
4
|
+
event.preventDefault();
|
5
|
+
RubyApp.queueEvent({_class:'RubyApp::Elements::Click::ClickedEvent', source_id:$(this).attr('id')}, true);
|
6
|
+
});
|
7
|
+
});
|
8
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/* /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/base/base_dialog.css.haml */
|
2
|
+
body > div.overlay > div.dialog {
|
3
|
+
position: absolute;
|
4
|
+
width: 40%; }
|
5
|
+
/* /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/dialogs/base/base_ok_dialog.css.haml */
|
6
|
+
body > div.overlay > div.dialog > div.footer {
|
7
|
+
text-align: right;
|
8
|
+
width: 100%; }
|
@@ -0,0 +1,8 @@
|
|
1
|
+
// /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/click.js.haml
|
2
|
+
$(document).ready(function() {
|
3
|
+
$('.click').live('click', function(event) {
|
4
|
+
event.preventDefault();
|
5
|
+
RubyApp.queueEvent({_class:'RubyApp::Elements::Click::ClickedEvent', source_id:$(this).attr('id')}, true);
|
6
|
+
});
|
7
|
+
});
|
8
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/* /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/base/base_dialog.css.haml */
|
2
|
+
body > div.overlay > div.dialog {
|
3
|
+
position: absolute;
|
4
|
+
width: 40%; }
|
5
|
+
/* /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/dialogs/base/base_yes_no_dialog.css.haml */
|
6
|
+
body > div.overlay > div.dialog > div.footer {
|
7
|
+
text-align: right;
|
8
|
+
width: 100%; }
|
9
|
+
body > div.overlay > div.dialog > div.footer > a:first-child {
|
10
|
+
padding-left: 0px; }
|
11
|
+
body > div.overlay > div.dialog > div.footer > a {
|
12
|
+
padding-left: 10px; }
|
@@ -0,0 +1,8 @@
|
|
1
|
+
// /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/click.js.haml
|
2
|
+
$(document).ready(function() {
|
3
|
+
$('.click').live('click', function(event) {
|
4
|
+
event.preventDefault();
|
5
|
+
RubyApp.queueEvent({_class:'RubyApp::Elements::Click::ClickedEvent', source_id:$(this).attr('id')}, true);
|
6
|
+
});
|
7
|
+
});
|
8
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/* /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/base/base_dialog.css.haml */
|
2
|
+
body > div.overlay > div.dialog {
|
3
|
+
position: absolute;
|
4
|
+
width: 40%; }
|
5
|
+
/* /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/dialogs/base/base_close_dialog.css.haml */
|
6
|
+
body > div.overlay > div.dialog > div.footer {
|
7
|
+
text-align: right;
|
8
|
+
width: 100%; }
|
@@ -0,0 +1,8 @@
|
|
1
|
+
// /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/click.js.haml
|
2
|
+
$(document).ready(function() {
|
3
|
+
$('.click').live('click', function(event) {
|
4
|
+
event.preventDefault();
|
5
|
+
RubyApp.queueEvent({_class:'RubyApp::Elements::Click::ClickedEvent', source_id:$(this).attr('id')}, true);
|
6
|
+
});
|
7
|
+
});
|
8
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/* /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/base/base_dialog.css.haml */
|
2
|
+
body > div.overlay > div.dialog {
|
3
|
+
position: absolute;
|
4
|
+
width: 40%; }
|
5
|
+
/* /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/dialogs/base/base_ok_dialog.css.haml */
|
6
|
+
body > div.overlay > div.dialog > div.footer {
|
7
|
+
text-align: right;
|
8
|
+
width: 100%; }
|
@@ -0,0 +1,8 @@
|
|
1
|
+
// /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/click.js.haml
|
2
|
+
$(document).ready(function() {
|
3
|
+
$('.click').live('click', function(event) {
|
4
|
+
event.preventDefault();
|
5
|
+
RubyApp.queueEvent({_class:'RubyApp::Elements::Click::ClickedEvent', source_id:$(this).attr('id')}, true);
|
6
|
+
});
|
7
|
+
});
|
8
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/* /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/base/base_dialog.css.haml */
|
2
|
+
body > div.overlay > div.dialog {
|
3
|
+
position: absolute;
|
4
|
+
width: 40%; }
|
5
|
+
/* /Users/fficnar/Dropbox/Projects/gems/ruby_app/lib/ruby_app/elements/dialogs/base/base_yes_no_dialog.css.haml */
|
6
|
+
body > div.overlay > div.dialog > div.footer {
|
7
|
+
text-align: right;
|
8
|
+
width: 100%; }
|
9
|
+
body > div.overlay > div.dialog > div.footer > a:first-child {
|
10
|
+
padding-left: 0px; }
|
11
|
+
body > div.overlay > div.dialog > div.footer > a {
|
12
|
+
padding-left: 10px; }
|