sooner 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/generators/sooner/install/install_generator.rb +16 -16
- data/lib/sooner/version.rb +1 -1
- data/test/dummy/config/application.rb +6 -1
- data/test/dummy/config/environments/production.rb +1 -1
- data/test/dummy/config/mongoid.yml +2 -11
- metadata +8 -90
- data/app/models/sooner/admin/subscriber.rb +0 -3
- data/lib/sooner/version.rb~ +0 -3
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/log/development.log +0 -13370
- data/test/dummy/tmp/cache/assets/C30/8B0/sprockets%2F6853748309a0fdd864824f56536d8023 +0 -9062
- data/test/dummy/tmp/cache/assets/C3F/0E0/sprockets%2F0e1cbc926773103d03774752e9108a00 +0 -335
- data/test/dummy/tmp/cache/assets/C66/FB0/sprockets%2F98a6552e0c72949d717178b5902e6f36 +0 -71
- data/test/dummy/tmp/cache/assets/C6D/F80/sprockets%2F44533615dbef3e810253094110825dac +0 -62
- data/test/dummy/tmp/cache/assets/C7A/910/sprockets%2F856f6b120c31d4622c49b3630219de68 +0 -9069
- data/test/dummy/tmp/cache/assets/C92/6A0/sprockets%2Fc5438348d868c777420d2e63fce56245 +0 -98
- data/test/dummy/tmp/cache/assets/C9C/A60/sprockets%2Fc6c3395667d18857f7f12369e53fa727 +0 -350
- data/test/dummy/tmp/cache/assets/CA7/430/sprockets%2F202cbe6f48604eb00549854f3053b58a +0 -25
- data/test/dummy/tmp/cache/assets/CB4/610/sprockets%2Ffeb1a7838d426857f0530993e420b60e +0 -115
- data/test/dummy/tmp/cache/assets/CE4/0D0/sprockets%2F439a9e8509403ac14ca356e5f2e9348b +0 -7
- data/test/dummy/tmp/cache/assets/CEB/DC0/sprockets%2F38536533e8e59a3fe0be483209c6d5c6 +0 -352
- data/test/dummy/tmp/cache/assets/CF6/900/sprockets%2F94575569edeb05737ebeaa60898940b6 +0 -26
- data/test/dummy/tmp/cache/assets/D07/4F0/sprockets%2Fe6091698b531dd271d5ac325b8b84ba0 +0 -10
- data/test/dummy/tmp/cache/assets/D19/BD0/sprockets%2F88636a6d051daca6365de6bd82096f48 +0 -2445
- data/test/dummy/tmp/cache/assets/D2B/3B0/sprockets%2F7de3b697dd206aa6eb292e301b140b60 +0 -88
- data/test/dummy/tmp/cache/assets/D39/410/sprockets%2Fa93af35d175ac7db006e63e91a0889b0 +0 -42
- data/test/dummy/tmp/cache/assets/D53/160/sprockets%2F8970dd07264d6eae78dd182d79df13c8 +0 -303
- data/test/dummy/tmp/cache/assets/D60/CE0/sprockets%2F06310f19d92bb4f40da80a37750ebdee +0 -9
- data/test/dummy/tmp/cache/assets/D65/620/sprockets%2F631e2801093d7a12aa6766bccaadfe88 +0 -422
- data/test/dummy/tmp/cache/assets/D7E/D20/sprockets%2Ff491cba4ec5176a691d9e5d7fc70892c +0 -9052
- data/test/dummy/tmp/cache/assets/D88/580/sprockets%2Ffef9b1c3b3b1b0316917a509cb1afb42 +0 -439
- data/test/dummy/tmp/cache/assets/D8E/B60/sprockets%2F1bc4810ecfe6a7b05c934eb3b0c2963a +0 -9064
- data/test/dummy/tmp/cache/assets/D99/D60/sprockets%2F29025313ddeaa1ff18cade1ed728949a +0 -41
- data/test/dummy/tmp/cache/assets/D9E/FD0/sprockets%2Ff8c955f36a2caa4039a66afc4c376e3a +0 -0
- data/test/dummy/tmp/cache/assets/DA5/1C0/sprockets%2Fec8cd61eddd7205e7c9c647f59413ac0 +0 -371
- data/test/dummy/tmp/cache/assets/DAF/6E0/sprockets%2F1b832fdf9fb97a8a7bcd2c907e652f47 +0 -2386
- data/test/dummy/tmp/cache/assets/DBC/650/sprockets%2Fd6da39f6f3f4a37c0db10cbc34ab0681 +0 -67
- data/test/dummy/tmp/cache/assets/DC2/150/sprockets%2F5cd685a35e3b593acade42a3b01def72 +0 -8
- data/test/dummy/tmp/cache/assets/DC7/530/sprockets%2Fea29d9af8aad9da0803062d3d7c06ac8 +0 -373
- data/test/dummy/tmp/cache/assets/DC9/2C0/sprockets%2Fbe1b3f07eb2f550c47c493a6f9a0de7b +0 -333
- data/test/dummy/tmp/cache/assets/DD6/820/sprockets%2Fb453f0fef899e0c6fe08aba14b94d09e +0 -45
- data/test/dummy/tmp/cache/assets/DD7/130/sprockets%2F6af271c6eec0698bc95224abf1ebf9f6 +0 -390
- data/test/dummy/tmp/cache/assets/E03/200/sprockets%2F8bd487cf65caa9fe453abd16be83e0a7 +0 -70
- data/test/dummy/tmp/cache/assets/E1D/680/sprockets%2Fc5c6b0ea20de8ef4d2f1eed00a35c93c +0 -25
- data/test/dummy/tmp/cache/assets/E49/440/sprockets%2Fbb92f156efb75bdda7bbacc04acb1425 +0 -27
- data/test/dummy/tmp/cache/assets/E59/430/sprockets%2Fb3073d96f7bcefcbdd3cdabe09a45a74 +0 -286
- data/test/dummy/tmp/cache/assets/E84/430/sprockets%2F61ffc0ed6338cebfdac2f1d3eaf0ae47 +0 -9420
@@ -1,45 +0,0 @@
|
|
1
|
-
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1320073491.8960638:@value{ I"length:EFi�I"digest;
|
2
|
-
F"%53edd0a1be32e94e2a89a08b98c1614dI"source;
|
3
|
-
FI"�/* tables */
|
4
|
-
|
5
|
-
table.tablesorter {
|
6
|
-
font-family:arial;
|
7
|
-
background-color:#CDCDCD;
|
8
|
-
margin:10px 0pt 15px;
|
9
|
-
font-size:8pt;
|
10
|
-
width:100%;
|
11
|
-
text-align:left;
|
12
|
-
}
|
13
|
-
table.tablesorter thead tr th, table.tablesorter tfoot tr th {
|
14
|
-
background-color:#e6EEEE;
|
15
|
-
border:1px solid #FFF;
|
16
|
-
font-size:8pt;
|
17
|
-
padding:4px;
|
18
|
-
}
|
19
|
-
table.tablesorter thead tr .header {
|
20
|
-
background-image:url(/assets/sooner/bg.gif);
|
21
|
-
background-repeat:no-repeat;
|
22
|
-
background-position:center right;
|
23
|
-
cursor:pointer;
|
24
|
-
}
|
25
|
-
table.tablesorter tbody td {
|
26
|
-
color:#3D3D3D;
|
27
|
-
padding:4px;
|
28
|
-
background-color:#FFF;
|
29
|
-
vertical-align:top;
|
30
|
-
}
|
31
|
-
table.tablesorter tbody tr.odd td {
|
32
|
-
background-color:#F0F0F6;
|
33
|
-
}
|
34
|
-
table.tablesorter thead tr .headerSortUp {
|
35
|
-
background-image:url(/assets/sooner/asc.gif);
|
36
|
-
}
|
37
|
-
table.tablesorter thead tr .headerSortDown {
|
38
|
-
background-image:url(/assets/sooner/desc.gif);
|
39
|
-
}
|
40
|
-
table.tablesorter thead tr .headerSortDown, table.tablesorter thead tr .headerSortUp {
|
41
|
-
background-color:#8dbdd8;
|
42
|
-
}
|
43
|
-
;
|
44
|
-
FI"
|
45
|
-
F"%e6db36bf1563026642ea2bf7d0409f93
|
@@ -1,390 +0,0 @@
|
|
1
|
-
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1320069165.6287963:@value{I"
|
2
|
-
class:EFI"BundledAsset;
|
3
|
-
FI"id;
|
4
|
-
F"%a073618aade3908bd9d0bb1433d6024eI"logical_path;
|
5
|
-
F"jquery_ujs.jsI"
|
6
|
-
F"k/home/sbertel/.rvm/gems/ruby-1.9.3-p0/gems/jquery-rails-1.0.16/vendor/assets/javascripts/jquery_ujs.jsI"content_type;
|
7
|
-
FI"application/javascript;
|
8
|
-
FI"
|
9
|
-
mtime;
|
10
|
-
FI"2011-10-31T13:53:46+02:00;
|
11
|
-
FI" body;
|
12
|
-
FI";/**
|
13
|
-
* Unobtrusive scripting adapter for jQuery
|
14
|
-
*
|
15
|
-
* Requires jQuery 1.6.0 or later.
|
16
|
-
* https://github.com/rails/jquery-ujs
|
17
|
-
|
18
|
-
* Uploading file using rails.js
|
19
|
-
* =============================
|
20
|
-
*
|
21
|
-
* By default, browsers do not allow files to be uploaded via AJAX. As a result, if there are any non-blank file fields
|
22
|
-
* in the remote form, this adapter aborts the AJAX submission and allows the form to submit through standard means.
|
23
|
-
*
|
24
|
-
* The `ajax:aborted:file` event allows you to bind your own handler to process the form submission however you wish.
|
25
|
-
*
|
26
|
-
* Ex:
|
27
|
-
* $('form').live('ajax:aborted:file', function(event, elements){
|
28
|
-
* // Implement own remote file-transfer handler here for non-blank file inputs passed in `elements`.
|
29
|
-
* // Returning false in this handler tells rails.js to disallow standard form submission
|
30
|
-
* return false;
|
31
|
-
* });
|
32
|
-
*
|
33
|
-
* The `ajax:aborted:file` event is fired when a file-type input is detected with a non-blank value.
|
34
|
-
*
|
35
|
-
* Third-party tools can use this hook to detect when an AJAX file upload is attempted, and then use
|
36
|
-
* techniques like the iframe method to upload the file instead.
|
37
|
-
*
|
38
|
-
* Required fields in rails.js
|
39
|
-
* ===========================
|
40
|
-
*
|
41
|
-
* If any blank required inputs (required="required") are detected in the remote form, the whole form submission
|
42
|
-
* is canceled. Note that this is unlike file inputs, which still allow standard (non-AJAX) form submission.
|
43
|
-
*
|
44
|
-
* The `ajax:aborted:required` event allows you to bind your own handler to inform the user of blank required inputs.
|
45
|
-
*
|
46
|
-
* !! Note that Opera does not fire the form's submit event if there are blank required inputs, so this event may never
|
47
|
-
* get fired in Opera. This event is what causes other browsers to exhibit the same submit-aborting behavior.
|
48
|
-
*
|
49
|
-
* Ex:
|
50
|
-
* $('form').live('ajax:aborted:required', function(event, elements){
|
51
|
-
* // Returning false in this handler tells rails.js to submit the form anyway.
|
52
|
-
* // The blank required inputs are passed to this function in `elements`.
|
53
|
-
* return ! confirm("Would you like to submit the form with missing info?");
|
54
|
-
* });
|
55
|
-
*/
|
56
|
-
|
57
|
-
|
58
|
-
(function($, undefined) {
|
59
|
-
// Shorthand to make it a little easier to call public rails functions from within rails.js
|
60
|
-
var rails;
|
61
|
-
|
62
|
-
$.rails = rails = {
|
63
|
-
// Link elements bound by jquery-ujs
|
64
|
-
linkClickSelector: 'a[data-confirm], a[data-method], a[data-remote], a[data-disable-with]',
|
65
|
-
|
66
|
-
// Select elements bound by jquery-ujs
|
67
|
-
inputChangeSelector: 'select[data-remote], input[data-remote], textarea[data-remote]',
|
68
|
-
|
69
|
-
// Form elements bound by jquery-ujs
|
70
|
-
formSubmitSelector: 'form',
|
71
|
-
|
72
|
-
// Form input elements bound by jquery-ujs
|
73
|
-
formInputClickSelector: 'form input[type=submit], form input[type=image], form button[type=submit], form button:not(button[type])',
|
74
|
-
|
75
|
-
// Form input elements disabled during form submission
|
76
|
-
disableSelector: 'input[data-disable-with], button[data-disable-with], textarea[data-disable-with]',
|
77
|
-
|
78
|
-
// Form input elements re-enabled after form submission
|
79
|
-
enableSelector: 'input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled',
|
80
|
-
|
81
|
-
// Form required input elements
|
82
|
-
requiredInputSelector: 'input[name][required]:not([disabled]),textarea[name][required]:not([disabled])',
|
83
|
-
|
84
|
-
// Form file input elements
|
85
|
-
fileInputSelector: 'input:file',
|
86
|
-
|
87
|
-
// Link onClick disable selector with possible reenable after remote submission
|
88
|
-
linkDisableSelector: 'a[data-disable-with]',
|
89
|
-
|
90
|
-
// Make sure that every Ajax request sends the CSRF token
|
91
|
-
CSRFProtection: function(xhr) {
|
92
|
-
var token = $('meta[name="csrf-token"]').attr('content');
|
93
|
-
if (token) xhr.setRequestHeader('X-CSRF-Token', token);
|
94
|
-
},
|
95
|
-
|
96
|
-
// Triggers an event on an element and returns false if the event result is false
|
97
|
-
fire: function(obj, name, data) {
|
98
|
-
var event = $.Event(name);
|
99
|
-
obj.trigger(event, data);
|
100
|
-
return event.result !== false;
|
101
|
-
},
|
102
|
-
|
103
|
-
// Default confirm dialog, may be overridden with custom confirm dialog in $.rails.confirm
|
104
|
-
confirm: function(message) {
|
105
|
-
return confirm(message);
|
106
|
-
},
|
107
|
-
|
108
|
-
// Default ajax function, may be overridden with custom function in $.rails.ajax
|
109
|
-
ajax: function(options) {
|
110
|
-
return $.ajax(options);
|
111
|
-
},
|
112
|
-
|
113
|
-
// Submits "remote" forms and links with ajax
|
114
|
-
handleRemote: function(element) {
|
115
|
-
var method, url, data,
|
116
|
-
crossDomain = element.data('cross-domain') || null,
|
117
|
-
dataType = element.data('type') || ($.ajaxSettings && $.ajaxSettings.dataType),
|
118
|
-
options;
|
119
|
-
|
120
|
-
if (rails.fire(element, 'ajax:before')) {
|
121
|
-
|
122
|
-
if (element.is('form')) {
|
123
|
-
method = element.attr('method');
|
124
|
-
url = element.attr('action');
|
125
|
-
data = element.serializeArray();
|
126
|
-
// memoized value from clicked submit button
|
127
|
-
var button = element.data('ujs:submit-button');
|
128
|
-
if (button) {
|
129
|
-
data.push(button);
|
130
|
-
element.data('ujs:submit-button', null);
|
131
|
-
}
|
132
|
-
} else if (element.is(rails.inputChangeSelector)) {
|
133
|
-
method = element.data('method');
|
134
|
-
url = element.data('url');
|
135
|
-
data = element.serialize();
|
136
|
-
if (element.data('params')) data = data + "&" + element.data('params');
|
137
|
-
} else {
|
138
|
-
method = element.data('method');
|
139
|
-
url = element.attr('href');
|
140
|
-
data = element.data('params') || null;
|
141
|
-
}
|
142
|
-
|
143
|
-
options = {
|
144
|
-
type: method || 'GET', data: data, dataType: dataType, crossDomain: crossDomain,
|
145
|
-
// stopping the "ajax:beforeSend" event will cancel the ajax request
|
146
|
-
beforeSend: function(xhr, settings) {
|
147
|
-
if (settings.dataType === undefined) {
|
148
|
-
xhr.setRequestHeader('accept', '*/*;q=0.5, ' + settings.accepts.script);
|
149
|
-
}
|
150
|
-
return rails.fire(element, 'ajax:beforeSend', [xhr, settings]);
|
151
|
-
},
|
152
|
-
success: function(data, status, xhr) {
|
153
|
-
element.trigger('ajax:success', [data, status, xhr]);
|
154
|
-
},
|
155
|
-
complete: function(xhr, status) {
|
156
|
-
element.trigger('ajax:complete', [xhr, status]);
|
157
|
-
},
|
158
|
-
error: function(xhr, status, error) {
|
159
|
-
element.trigger('ajax:error', [xhr, status, error]);
|
160
|
-
}
|
161
|
-
};
|
162
|
-
// Only pass url to `ajax` options if not blank
|
163
|
-
if (url) { options.url = url; }
|
164
|
-
|
165
|
-
rails.ajax(options);
|
166
|
-
}
|
167
|
-
},
|
168
|
-
|
169
|
-
// Handles "data-method" on links such as:
|
170
|
-
// <a href="/users/5" data-method="delete" rel="nofollow" data-confirm="Are you sure?">Delete</a>
|
171
|
-
handleMethod: function(link) {
|
172
|
-
var href = link.attr('href'),
|
173
|
-
method = link.data('method'),
|
174
|
-
target = link.attr('target'),
|
175
|
-
csrf_token = $('meta[name=csrf-token]').attr('content'),
|
176
|
-
csrf_param = $('meta[name=csrf-param]').attr('content'),
|
177
|
-
form = $('<form method="post" action="' + href + '"></form>'),
|
178
|
-
metadata_input = '<input name="_method" value="' + method + '" type="hidden" />';
|
179
|
-
|
180
|
-
if (csrf_param !== undefined && csrf_token !== undefined) {
|
181
|
-
metadata_input += '<input name="' + csrf_param + '" value="' + csrf_token + '" type="hidden" />';
|
182
|
-
}
|
183
|
-
|
184
|
-
if (target) { form.attr('target', target); }
|
185
|
-
|
186
|
-
form.hide().append(metadata_input).appendTo('body');
|
187
|
-
form.submit();
|
188
|
-
},
|
189
|
-
|
190
|
-
/* Disables form elements:
|
191
|
-
- Caches element value in 'ujs:enable-with' data store
|
192
|
-
- Replaces element text with value of 'data-disable-with' attribute
|
193
|
-
- Sets disabled property to true
|
194
|
-
*/
|
195
|
-
disableFormElements: function(form) {
|
196
|
-
form.find(rails.disableSelector).each(function() {
|
197
|
-
var element = $(this), method = element.is('button') ? 'html' : 'val';
|
198
|
-
element.data('ujs:enable-with', element[method]());
|
199
|
-
element[method](element.data('disable-with'));
|
200
|
-
element.prop('disabled', true);
|
201
|
-
});
|
202
|
-
},
|
203
|
-
|
204
|
-
/* Re-enables disabled form elements:
|
205
|
-
- Replaces element text with cached value from 'ujs:enable-with' data store (created in `disableFormElements`)
|
206
|
-
- Sets disabled property to false
|
207
|
-
*/
|
208
|
-
enableFormElements: function(form) {
|
209
|
-
form.find(rails.enableSelector).each(function() {
|
210
|
-
var element = $(this), method = element.is('button') ? 'html' : 'val';
|
211
|
-
if (element.data('ujs:enable-with')) element[method](element.data('ujs:enable-with'));
|
212
|
-
element.prop('disabled', false);
|
213
|
-
});
|
214
|
-
},
|
215
|
-
|
216
|
-
/* For 'data-confirm' attribute:
|
217
|
-
- Fires `confirm` event
|
218
|
-
- Shows the confirmation dialog
|
219
|
-
- Fires the `confirm:complete` event
|
220
|
-
|
221
|
-
Returns `true` if no function stops the chain and user chose yes; `false` otherwise.
|
222
|
-
Attaching a handler to the element's `confirm` event that returns a `falsy` value cancels the confirmation dialog.
|
223
|
-
Attaching a handler to the element's `confirm:complete` event that returns a `falsy` value makes this function
|
224
|
-
return false. The `confirm:complete` event is fired whether or not the user answered true or false to the dialog.
|
225
|
-
*/
|
226
|
-
allowAction: function(element) {
|
227
|
-
var message = element.data('confirm'),
|
228
|
-
answer = false, callback;
|
229
|
-
if (!message) { return true; }
|
230
|
-
|
231
|
-
if (rails.fire(element, 'confirm')) {
|
232
|
-
answer = rails.confirm(message);
|
233
|
-
callback = rails.fire(element, 'confirm:complete', [answer]);
|
234
|
-
}
|
235
|
-
return answer && callback;
|
236
|
-
},
|
237
|
-
|
238
|
-
// Helper function which checks for blank inputs in a form that match the specified CSS selector
|
239
|
-
blankInputs: function(form, specifiedSelector, nonBlank) {
|
240
|
-
var inputs = $(), input,
|
241
|
-
selector = specifiedSelector || 'input,textarea';
|
242
|
-
form.find(selector).each(function() {
|
243
|
-
input = $(this);
|
244
|
-
// Collect non-blank inputs if nonBlank option is true, otherwise, collect blank inputs
|
245
|
-
if (nonBlank ? input.val() : !input.val()) {
|
246
|
-
inputs = inputs.add(input);
|
247
|
-
}
|
248
|
-
});
|
249
|
-
return inputs.length ? inputs : false;
|
250
|
-
},
|
251
|
-
|
252
|
-
// Helper function which checks for non-blank inputs in a form that match the specified CSS selector
|
253
|
-
nonBlankInputs: function(form, specifiedSelector) {
|
254
|
-
return rails.blankInputs(form, specifiedSelector, true); // true specifies nonBlank
|
255
|
-
},
|
256
|
-
|
257
|
-
// Helper function, needed to provide consistent behavior in IE
|
258
|
-
stopEverything: function(e) {
|
259
|
-
$(e.target).trigger('ujs:everythingStopped');
|
260
|
-
e.stopImmediatePropagation();
|
261
|
-
return false;
|
262
|
-
},
|
263
|
-
|
264
|
-
// find all the submit events directly bound to the form and
|
265
|
-
// manually invoke them. If anyone returns false then stop the loop
|
266
|
-
callFormSubmitBindings: function(form) {
|
267
|
-
var events = form.data('events'), continuePropagation = true;
|
268
|
-
if (events !== undefined && events['submit'] !== undefined) {
|
269
|
-
$.each(events['submit'], function(i, obj){
|
270
|
-
if (typeof obj.handler === 'function') return continuePropagation = obj.handler(obj.data);
|
271
|
-
});
|
272
|
-
}
|
273
|
-
return continuePropagation;
|
274
|
-
},
|
275
|
-
|
276
|
-
// replace element's html with the 'data-disable-with' after storing original html
|
277
|
-
// and prevent clicking on it
|
278
|
-
disableElement: function(element) {
|
279
|
-
element.data('ujs:enable-with', element.html()); // store enabled state
|
280
|
-
element.html(element.data('disable-with')); // set to disabled state
|
281
|
-
element.bind('click.railsDisable', function(e) { // prevent further clicking
|
282
|
-
return rails.stopEverything(e)
|
283
|
-
});
|
284
|
-
},
|
285
|
-
|
286
|
-
// restore element to its original state which was disabled by 'disableElement' above
|
287
|
-
enableElement: function(element) {
|
288
|
-
if (element.data('ujs:enable-with') !== undefined) {
|
289
|
-
element.html(element.data('ujs:enable-with')); // set to old enabled state
|
290
|
-
// this should be element.removeData('ujs:enable-with')
|
291
|
-
// but, there is currently a bug in jquery which makes hyphenated data attributes not get removed
|
292
|
-
element.data('ujs:enable-with', false); // clean up cache
|
293
|
-
}
|
294
|
-
element.unbind('click.railsDisable'); // enable element
|
295
|
-
}
|
296
|
-
|
297
|
-
};
|
298
|
-
|
299
|
-
$.ajaxPrefilter(function(options, originalOptions, xhr){ if ( !options.crossDomain ) { rails.CSRFProtection(xhr); }});
|
300
|
-
|
301
|
-
$(rails.linkDisableSelector).live('ajax:complete', function() {
|
302
|
-
rails.enableElement($(this));
|
303
|
-
});
|
304
|
-
|
305
|
-
$(rails.linkClickSelector).live('click.rails', function(e) {
|
306
|
-
var link = $(this), method = link.data('method'), data = link.data('params');
|
307
|
-
if (!rails.allowAction(link)) return rails.stopEverything(e);
|
308
|
-
|
309
|
-
if (link.is(rails.linkDisableSelector)) rails.disableElement(link);
|
310
|
-
|
311
|
-
if (link.data('remote') !== undefined) {
|
312
|
-
if ( (e.metaKey || e.ctrlKey) && (!method || method === 'GET') && !data ) { return true; }
|
313
|
-
rails.handleRemote(link);
|
314
|
-
return false;
|
315
|
-
} else if (link.data('method')) {
|
316
|
-
rails.handleMethod(link);
|
317
|
-
return false;
|
318
|
-
}
|
319
|
-
});
|
320
|
-
|
321
|
-
$(rails.inputChangeSelector).live('change.rails', function(e) {
|
322
|
-
var link = $(this);
|
323
|
-
if (!rails.allowAction(link)) return rails.stopEverything(e);
|
324
|
-
|
325
|
-
rails.handleRemote(link);
|
326
|
-
return false;
|
327
|
-
});
|
328
|
-
|
329
|
-
$(rails.formSubmitSelector).live('submit.rails', function(e) {
|
330
|
-
var form = $(this),
|
331
|
-
remote = form.data('remote') !== undefined,
|
332
|
-
blankRequiredInputs = rails.blankInputs(form, rails.requiredInputSelector),
|
333
|
-
nonBlankFileInputs = rails.nonBlankInputs(form, rails.fileInputSelector);
|
334
|
-
|
335
|
-
if (!rails.allowAction(form)) return rails.stopEverything(e);
|
336
|
-
|
337
|
-
// skip other logic when required values are missing or file upload is present
|
338
|
-
if (blankRequiredInputs && form.attr("novalidate") == undefined && rails.fire(form, 'ajax:aborted:required', [blankRequiredInputs])) {
|
339
|
-
return rails.stopEverything(e);
|
340
|
-
}
|
341
|
-
|
342
|
-
if (remote) {
|
343
|
-
if (nonBlankFileInputs) {
|
344
|
-
return rails.fire(form, 'ajax:aborted:file', [nonBlankFileInputs]);
|
345
|
-
}
|
346
|
-
|
347
|
-
// If browser does not support submit bubbling, then this live-binding will be called before direct
|
348
|
-
// bindings. Therefore, we should directly call any direct bindings before remotely submitting form.
|
349
|
-
if (!$.support.submitBubbles && rails.callFormSubmitBindings(form) === false) return rails.stopEverything(e);
|
350
|
-
|
351
|
-
rails.handleRemote(form);
|
352
|
-
return false;
|
353
|
-
} else {
|
354
|
-
// slight timeout so that the submit button gets properly serialized
|
355
|
-
setTimeout(function(){ rails.disableFormElements(form); }, 13);
|
356
|
-
}
|
357
|
-
});
|
358
|
-
|
359
|
-
$(rails.formInputClickSelector).live('click.rails', function(event) {
|
360
|
-
var button = $(this);
|
361
|
-
|
362
|
-
if (!rails.allowAction(button)) return rails.stopEverything(event);
|
363
|
-
|
364
|
-
// register the pressed submit button
|
365
|
-
var name = button.attr('name'),
|
366
|
-
data = name ? {name:name, value:button.val()} : null;
|
367
|
-
|
368
|
-
button.closest('form').data('ujs:submit-button', data);
|
369
|
-
});
|
370
|
-
|
371
|
-
$(rails.formSubmitSelector).live('ajax:beforeSend.rails', function(event) {
|
372
|
-
if (this == event.target) rails.disableFormElements($(this));
|
373
|
-
});
|
374
|
-
|
375
|
-
$(rails.formSubmitSelector).live('ajax:complete.rails', function(event) {
|
376
|
-
if (this == event.target) rails.enableFormElements($(this));
|
377
|
-
});
|
378
|
-
|
379
|
-
})( jQuery );
|
380
|
-
;
|
381
|
-
FI"asset_paths;
|
382
|
-
F["k/home/sbertel/.rvm/gems/ruby-1.9.3-p0/gems/jquery-rails-1.0.16/vendor/assets/javascripts/jquery_ujs.jsI"dependency_paths;
|
383
|
-
F[{I" path;
|
384
|
-
F"k/home/sbertel/.rvm/gems/ruby-1.9.3-p0/gems/jquery-rails-1.0.16/vendor/assets/javascripts/jquery_ujs.jsI"
|
385
|
-
mtime;
|
386
|
-
FIu: Time
|
387
|
-
:@_zoneI"EET;
|
388
|
-
T:
|
389
|
-
F"%bff4d9f9bd40708015f5ae4e34621c2cI"
|
390
|
-
F"%46dde6621c301f4928e3b34efee9e3b5
|
@@ -1,70 +0,0 @@
|
|
1
|
-
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1320073491.8844433:@value{I"
|
2
|
-
class:EFI"BundledAsset;
|
3
|
-
FI"id;
|
4
|
-
F"%e3afa97257643b5731e85faddf2c049eI"logical_path;
|
5
|
-
F"!sooner/admin/subscribers.cssI"
|
6
|
-
F"W/home/sbertel/workspace/sooner/app/assets/stylesheets/sooner/admin/subscribers.cssI"content_type;
|
7
|
-
FI"
|
8
|
-
FI"
|
9
|
-
mtime;
|
10
|
-
FI"2011-10-31T17:04:48+02:00;
|
11
|
-
FI" body;
|
12
|
-
FI"�/*
|
13
|
-
*/
|
14
|
-
/* Override some defaults */
|
15
|
-
|
16
|
-
html, body {
|
17
|
-
background-color:#eee;
|
18
|
-
}
|
19
|
-
body {
|
20
|
-
padding-top:40px; /* 40px to make the container go all the way to the bottom of the topbar */
|
21
|
-
}
|
22
|
-
.container> footer p {
|
23
|
-
text-align:center; /* center align it with the container */
|
24
|
-
}
|
25
|
-
.container {
|
26
|
-
width:820px; /* downsize our container to make the content feel a bit tighter and more cohesive. NOTE: this removes two full columns from the grid, meaning you only go to 14 columns and not 16. */
|
27
|
-
}
|
28
|
-
.content {
|
29
|
-
background-color:white;
|
30
|
-
padding:20px;
|
31
|
-
margin:0 -20px;
|
32
|
-
-webkit-border-radius:6px 6px 6px 6px;
|
33
|
-
-moz-border-radius:6px 6px 6px 6px;
|
34
|
-
border-radius:6px 6px 6px 6px;
|
35
|
-
-webkit-box-shadow:0 1px 2px rgba(0,0,0,.15);
|
36
|
-
-moz-box-shadow:0 1px 2px rgba(0,0,0,.15);
|
37
|
-
box-shadow:0 1px 2px rgba(0,0,0,.15);
|
38
|
-
}
|
39
|
-
/* Page header tweaks */
|
40
|
-
.page-header {
|
41
|
-
-webkit-border-radius:6px 6px 0 0;
|
42
|
-
-moz-border-radius:6px 6px 0 0;
|
43
|
-
border-radius:6px 6px 0 0;
|
44
|
-
background-color:#f5f5f5;
|
45
|
-
padding:20px 20px 10px;
|
46
|
-
margin:-20px -20px 20px;
|
47
|
-
}
|
48
|
-
;
|
49
|
-
FI"asset_paths;
|
50
|
-
F["O/home/sbertel/workspace/sooner/app/assets/stylesheets/sooner/bootstrap.css"W/home/sbertel/workspace/sooner/app/assets/stylesheets/sooner/admin/tablesorter.css"W/home/sbertel/workspace/sooner/app/assets/stylesheets/sooner/admin/subscribers.cssI"dependency_paths;
|
51
|
-
F[{I" path;
|
52
|
-
F"W/home/sbertel/workspace/sooner/app/assets/stylesheets/sooner/admin/subscribers.cssI"
|
53
|
-
mtime;
|
54
|
-
FIu: Time
|
55
|
-
:@_zoneI"EET;
|
56
|
-
T:
|
57
|
-
F"%1cc0f6bf12a1563217e16c3f6bbfb3a4{I" path;
|
58
|
-
F"O/home/sbertel/workspace/sooner/app/assets/stylesheets/sooner/bootstrap.cssI"
|
59
|
-
mtime;
|
60
|
-
FIu;
|
61
|
-
;I"EET;
|
62
|
-
T;
|
63
|
-
F"%0fa819e4d8b384194946300f005ed706{I" path;
|
64
|
-
F"W/home/sbertel/workspace/sooner/app/assets/stylesheets/sooner/admin/tablesorter.cssI"
|
65
|
-
mtime;
|
66
|
-
FIu;
|
67
|
-
;I"EET;
|
68
|
-
T;
|
69
|
-
F"%1f7ba53e7b027af6f97aff9418992aebI"
|
70
|
-
F"%46dde6621c301f4928e3b34efee9e3b5
|