imperavi-rails 0.0.2.beta → 0.0.3.beta
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +16 -4
- data/app/assets/javascripts/imperavi-rails/imperavi/dd_upload.js +100 -0
- data/app/assets/javascripts/imperavi-rails/imperavi/linkify.js +30 -0
- data/app/assets/javascripts/imperavi-rails/imperavi/redactor.js +104 -364
- data/app/assets/javascripts/imperavi-rails/imperavi/textselect.js +14 -0
- data/app/assets/javascripts/imperavi-rails/imperavi.js +4 -0
- data/app/helpers/imperavi_rails/imperavi_helper.rb +2 -2
- data/lib/imperavi-rails/version.rb +1 -1
- data/spec/dummy/app/assets/stylesheets/application.css.scss +1 -9
- data/spec/dummy/app/views/pages/index.html.erb +7 -17
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/log/development.log +1197 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/03/10_10_05_126_6.jpg +0 -0
- data/spec/dummy/public/system/dragonfly/development/2012/02/03/10_10_05_126_6.jpg.meta +4 -0
- data/spec/dummy/tmp/cache/assets/C41/5B0/sprockets%2F095415e1141a435237aa9464752d21fd +242 -0
- data/spec/dummy/tmp/cache/assets/CBE/FC0/sprockets%2Ff5431a64e341b062b7530132a5c1ea5a +1726 -0
- data/spec/dummy/tmp/cache/assets/CC0/310/sprockets%2Fb372e5f868e8a8801e126262f66c9c08 +16 -0
- data/spec/dummy/tmp/cache/assets/CC5/C10/sprockets%2F7c81f5c40dc9b87819488e127f487a04 +513 -0
- data/spec/dummy/tmp/cache/assets/CE5/650/sprockets%2F8ab512c9b33ac90e699b73469d71f061 +269 -0
- data/spec/dummy/tmp/cache/assets/CF0/1D0/sprockets%2F6fc757c2c8329244ca95d6909865bbc2 +81 -0
- data/spec/dummy/tmp/cache/assets/D02/F90/sprockets%2Ff029f33d65d53d13d3c0fd29e0c08133 +10 -0
- data/spec/dummy/tmp/cache/assets/D06/850/sprockets%2F9027c767fa3c09c1a605eae10b43d549 +9272 -0
- data/spec/dummy/tmp/cache/assets/D0C/0C0/sprockets%2F106b7f622fb804e4248c862abe73a4c8 +16 -0
- data/spec/dummy/{app/assets/stylesheets/scaffold.css → tmp/cache/assets/D11/D20/sprockets%2Fcac21eac42152981882bf9e489316af4} +6 -1
- data/spec/dummy/tmp/cache/assets/D24/8E0/sprockets%2F47f976dc55ebc7889e349067c9ba01b2 +16 -0
- data/spec/dummy/tmp/cache/assets/D2A/450/sprockets%2F58e369b37e5157ea746a485eea17e9f7 +28 -0
- data/spec/dummy/tmp/cache/assets/D34/D90/sprockets%2Fac3fb880b6bb140d16d5b4a6916e5067 +52 -0
- data/spec/dummy/tmp/cache/assets/D38/C80/sprockets%2Fb7152c93aa41253e9ed17d71a5c0eb88 +16 -0
- data/spec/dummy/tmp/cache/assets/D58/6D0/sprockets%2Fd2a3ab2b5401861dcd2e343ca6e4923e +37 -0
- data/spec/dummy/tmp/cache/assets/D59/260/sprockets%2Fd513a46ce8d83f003a733cb306dfe01a +1598 -0
- data/spec/dummy/tmp/cache/assets/D64/190/sprockets%2Ffdfa1bbf71247a2b9ef0b97732603e02 +0 -0
- data/spec/dummy/tmp/cache/assets/D6D/7C0/sprockets%2Fa4b9caa51f636e2b2db868c480e2a487 +8 -0
- data/spec/dummy/tmp/cache/assets/D73/170/sprockets%2Ffe70d93b5d3398dd8d0c6a3d701290ef +123 -0
- data/spec/dummy/tmp/cache/assets/D76/B30/sprockets%2Fce979145545abbfd4ca50fea3489554c +395 -0
- data/spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +9655 -0
- data/spec/dummy/tmp/cache/assets/D9B/E30/sprockets%2Fd87c8ca46743542cace533cfe91ae1d0 +495 -0
- data/spec/dummy/tmp/cache/assets/DA2/EA0/sprockets%2F9e95d2e1a4da7fafb60b9b782a53b753 +378 -0
- data/spec/dummy/tmp/cache/assets/DA8/F60/sprockets%2Fbb2cd57d63160c94d622ef9d91ccef68 +16 -0
- data/spec/dummy/tmp/cache/assets/DAC/DC0/sprockets%2Fe8cdb03f780ff87851dd459dc844ad1b +246 -0
- data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +61 -0
- data/spec/dummy/tmp/cache/assets/E05/F10/sprockets%2Fb3d9b0e88cdded276ebdce333e338a85 +30 -0
- data/spec/dummy/tmp/cache/assets/E22/CE0/sprockets%2F6fe70d27fda81ea53c8bdaeb1b112dd7 +9289 -0
- data/spec/dummy/tmp/cache/assets/E26/210/sprockets%2Fbb3accabff7037e93dc9a3373f4a5b7a +1580 -0
- data/spec/dummy/tmp/cache/assets/E66/AE0/sprockets%2Ffcb98ed9ac3e15f6d9e59fd00cbb2d3d +16 -0
- data/spec/dummy/tmp/cache/sass/9bd7199bacdbfc23c47b913698aa7195d1e0f382/application.css.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/bc54e898614d486bf9338d646e8cd056915d4779/imperavi-base.css.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/bc54e898614d486bf9338d646e8cd056915d4779/redactor.css.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/bc54e898614d486bf9338d646e8cd056915d4779/wym.css.scssc +0 -0
- data/spec/dummy/tmp/dragonfly/cache/body/00/4aecc0c59254723e83737f8928702ffd7bb98b +373 -0
- data/spec/dummy/tmp/dragonfly/cache/body/16/c5ea89574eb557096b3fefd758954e84a34381 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/body/21/199c9bdb6c7f65200a15ca0934612bcae4204c +242 -0
- data/spec/dummy/tmp/dragonfly/cache/body/42/bb515c02767a37104eca97f75df3b4a49e1759 +242 -0
- data/spec/dummy/tmp/dragonfly/cache/body/48/cf4eb3ec838cdab2af24f4603e7954ab5012ee +0 -0
- data/spec/dummy/tmp/dragonfly/cache/body/4a/72b5c050f6e3702f880e19fcf37793c135cd3d +0 -0
- data/spec/dummy/tmp/dragonfly/cache/body/61/e9711fd55eccdf62882cb8d127b22664f7023f +3 -0
- data/spec/dummy/tmp/dragonfly/cache/body/74/98c8a3bb6ee03af2b6952e797e632938d84649 +237 -0
- data/spec/dummy/tmp/dragonfly/cache/body/77/78d2df49ed1274a18f2c479b5747a91417458f +490 -0
- data/spec/dummy/tmp/dragonfly/cache/body/8e/46450213e0599dab4f0033c16b21731ca5e19c +242 -0
- data/spec/dummy/tmp/dragonfly/cache/body/a4/2e62d48de5370a8402707dd02fcf64039923b4 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/body/a8/85ba08a1465f458ec2e999aecc73ba6b885520 +1575 -0
- data/spec/dummy/tmp/dragonfly/cache/body/ab/c30526420462e4081de3dcbc7598a7930bbc51 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/body/b2/f1d81a83ca37d428780d1d9deb87cf0312cb62 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/body/bb/cf048304dee182fc21ba43f408d8623c2f65b1 +1721 -0
- data/{app/assets/javascripts/imperavi-rails/application.js → spec/dummy/tmp/dragonfly/cache/body/c2/d1fe276d6e527c155855e99dc19d239b6d71f3} +1 -3
- data/spec/dummy/tmp/dragonfly/cache/body/d6/1d64e39570cd647cee3d3a62efa17ab2290d1e +0 -0
- data/spec/dummy/tmp/dragonfly/cache/body/ef/f130cc312268f0864d651bb53d4f83189b925a +9267 -0
- data/spec/dummy/tmp/dragonfly/cache/body/fb/54a1604f6c72b35d8b9c3da9f3899d77db70dd +1834 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/1d/f723c27427056dd58a506f1e4f15020442098e +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/23/4f7740cb6118c7c530ce379339a99828a75ef3 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/2d/fe381b58b48b16278672bd61db736e4e920955 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/39/b52b68255f54efe8cb853fd153088f94a7661a +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/55/32c60f25996b8e8a9fdf7125956c5204fa8792 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/66/b6e26427e56a9f9ade00d4cf5d615679f0f7a7 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/66/f44aba1428593600ff0e47ea6aa54362e39a59 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/78/d74c0cd05a77c0c06acb622761d30c9ea00bb3 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/80/5841ac20acdd8dd41460c8346294abc5c4dd8f +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/e7/6d1dc2d45d19440e781f6c5d00f39d8aeb4da1 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/ee/fe74949a8c2a0bbc077385a12944d9f98a12e0 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/ef/d71b44567b90c7f85e9bd0576e4b7e55bd3565 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/f4/2f71b4755920b57e574c91123765511a8f0b25 +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/f5/b1288f6769945a2de532e359e061896e1197df +0 -0
- data/spec/dummy/tmp/dragonfly/cache/meta/f9/67ac04386c59253bd80f4034d18af166cc5691 +0 -0
- data/spec/dummy/tmp/pids/server.pid +1 -0
- metadata +260 -122
- data/app/assets/stylesheets/imperavi-rails/imperavi/imperavi.css.scss +0 -150
- data/spec/dummy/app/assets/stylesheets/pages.css +0 -4
- data/spec/dummy/db/test.sqlite3 +0 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1328243717.3781602:@value{I"
|
2
|
+
class:EFI"StaticAsset;
|
3
|
+
FI"id;
|
4
|
+
F"%8bd6baf41787542f9670a1c823c1ad3dI"logical_path;
|
5
|
+
FI")imperavi_rails/imperavi/bg_modal.png;
|
6
|
+
TI"
|
7
|
+
F"`/home/tanraya/sandbox/imperavi-rails/app/assets/images/imperavi_rails/imperavi/bg_modal.pngI"content_type;
|
8
|
+
FI"image/png;
|
9
|
+
FI"
|
10
|
+
mtime;
|
11
|
+
FI"2011-11-18T01:30:29+06:00;
|
12
|
+
FI"length;
|
13
|
+
FI"318;
|
14
|
+
FI"digest;
|
15
|
+
F"%830a8077e439a9b067684ff43c134369I"
|
16
|
+
F"%46dde6621c301f4928e3b34efee9e3b5
|
Binary file
|
data/spec/dummy/tmp/cache/sass/bc54e898614d486bf9338d646e8cd056915d4779/imperavi-base.css.scssc
ADDED
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,373 @@
|
|
1
|
+
(function($, undefined) {
|
2
|
+
|
3
|
+
/**
|
4
|
+
* Unobtrusive scripting adapter for jQuery
|
5
|
+
*
|
6
|
+
* Requires jQuery 1.6.0 or later.
|
7
|
+
* https://github.com/rails/jquery-ujs
|
8
|
+
|
9
|
+
* Uploading file using rails.js
|
10
|
+
* =============================
|
11
|
+
*
|
12
|
+
* By default, browsers do not allow files to be uploaded via AJAX. As a result, if there are any non-blank file fields
|
13
|
+
* in the remote form, this adapter aborts the AJAX submission and allows the form to submit through standard means.
|
14
|
+
*
|
15
|
+
* The `ajax:aborted:file` event allows you to bind your own handler to process the form submission however you wish.
|
16
|
+
*
|
17
|
+
* Ex:
|
18
|
+
* $('form').live('ajax:aborted:file', function(event, elements){
|
19
|
+
* // Implement own remote file-transfer handler here for non-blank file inputs passed in `elements`.
|
20
|
+
* // Returning false in this handler tells rails.js to disallow standard form submission
|
21
|
+
* return false;
|
22
|
+
* });
|
23
|
+
*
|
24
|
+
* The `ajax:aborted:file` event is fired when a file-type input is detected with a non-blank value.
|
25
|
+
*
|
26
|
+
* Third-party tools can use this hook to detect when an AJAX file upload is attempted, and then use
|
27
|
+
* techniques like the iframe method to upload the file instead.
|
28
|
+
*
|
29
|
+
* Required fields in rails.js
|
30
|
+
* ===========================
|
31
|
+
*
|
32
|
+
* If any blank required inputs (required="required") are detected in the remote form, the whole form submission
|
33
|
+
* is canceled. Note that this is unlike file inputs, which still allow standard (non-AJAX) form submission.
|
34
|
+
*
|
35
|
+
* The `ajax:aborted:required` event allows you to bind your own handler to inform the user of blank required inputs.
|
36
|
+
*
|
37
|
+
* !! Note that Opera does not fire the form's submit event if there are blank required inputs, so this event may never
|
38
|
+
* get fired in Opera. This event is what causes other browsers to exhibit the same submit-aborting behavior.
|
39
|
+
*
|
40
|
+
* Ex:
|
41
|
+
* $('form').live('ajax:aborted:required', function(event, elements){
|
42
|
+
* // Returning false in this handler tells rails.js to submit the form anyway.
|
43
|
+
* // The blank required inputs are passed to this function in `elements`.
|
44
|
+
* return ! confirm("Would you like to submit the form with missing info?");
|
45
|
+
* });
|
46
|
+
*/
|
47
|
+
|
48
|
+
// Shorthand to make it a little easier to call public rails functions from within rails.js
|
49
|
+
var rails;
|
50
|
+
|
51
|
+
$.rails = rails = {
|
52
|
+
// Link elements bound by jquery-ujs
|
53
|
+
linkClickSelector: 'a[data-confirm], a[data-method], a[data-remote], a[data-disable-with]',
|
54
|
+
|
55
|
+
// Select elements bound by jquery-ujs
|
56
|
+
inputChangeSelector: 'select[data-remote], input[data-remote], textarea[data-remote]',
|
57
|
+
|
58
|
+
// Form elements bound by jquery-ujs
|
59
|
+
formSubmitSelector: 'form',
|
60
|
+
|
61
|
+
// Form input elements bound by jquery-ujs
|
62
|
+
formInputClickSelector: 'form input[type=submit], form input[type=image], form button[type=submit], form button:not(button[type])',
|
63
|
+
|
64
|
+
// Form input elements disabled during form submission
|
65
|
+
disableSelector: 'input[data-disable-with], button[data-disable-with], textarea[data-disable-with]',
|
66
|
+
|
67
|
+
// Form input elements re-enabled after form submission
|
68
|
+
enableSelector: 'input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled',
|
69
|
+
|
70
|
+
// Form required input elements
|
71
|
+
requiredInputSelector: 'input[name][required]:not([disabled]),textarea[name][required]:not([disabled])',
|
72
|
+
|
73
|
+
// Form file input elements
|
74
|
+
fileInputSelector: 'input:file',
|
75
|
+
|
76
|
+
// Link onClick disable selector with possible reenable after remote submission
|
77
|
+
linkDisableSelector: 'a[data-disable-with]',
|
78
|
+
|
79
|
+
// Make sure that every Ajax request sends the CSRF token
|
80
|
+
CSRFProtection: function(xhr) {
|
81
|
+
var token = $('meta[name="csrf-token"]').attr('content');
|
82
|
+
if (token) xhr.setRequestHeader('X-CSRF-Token', token);
|
83
|
+
},
|
84
|
+
|
85
|
+
// Triggers an event on an element and returns false if the event result is false
|
86
|
+
fire: function(obj, name, data) {
|
87
|
+
var event = $.Event(name);
|
88
|
+
obj.trigger(event, data);
|
89
|
+
return event.result !== false;
|
90
|
+
},
|
91
|
+
|
92
|
+
// Default confirm dialog, may be overridden with custom confirm dialog in $.rails.confirm
|
93
|
+
confirm: function(message) {
|
94
|
+
return confirm(message);
|
95
|
+
},
|
96
|
+
|
97
|
+
// Default ajax function, may be overridden with custom function in $.rails.ajax
|
98
|
+
ajax: function(options) {
|
99
|
+
return $.ajax(options);
|
100
|
+
},
|
101
|
+
|
102
|
+
// Submits "remote" forms and links with ajax
|
103
|
+
handleRemote: function(element) {
|
104
|
+
var method, url, data,
|
105
|
+
crossDomain = element.data('cross-domain') || null,
|
106
|
+
dataType = element.data('type') || ($.ajaxSettings && $.ajaxSettings.dataType),
|
107
|
+
options;
|
108
|
+
|
109
|
+
if (rails.fire(element, 'ajax:before')) {
|
110
|
+
|
111
|
+
if (element.is('form')) {
|
112
|
+
method = element.attr('method');
|
113
|
+
url = element.attr('action');
|
114
|
+
data = element.serializeArray();
|
115
|
+
// memoized value from clicked submit button
|
116
|
+
var button = element.data('ujs:submit-button');
|
117
|
+
if (button) {
|
118
|
+
data.push(button);
|
119
|
+
element.data('ujs:submit-button', null);
|
120
|
+
}
|
121
|
+
} else if (element.is(rails.inputChangeSelector)) {
|
122
|
+
method = element.data('method');
|
123
|
+
url = element.data('url');
|
124
|
+
data = element.serialize();
|
125
|
+
if (element.data('params')) data = data + "&" + element.data('params');
|
126
|
+
} else {
|
127
|
+
method = element.data('method');
|
128
|
+
url = element.attr('href');
|
129
|
+
data = element.data('params') || null;
|
130
|
+
}
|
131
|
+
|
132
|
+
options = {
|
133
|
+
type: method || 'GET', data: data, dataType: dataType, crossDomain: crossDomain,
|
134
|
+
// stopping the "ajax:beforeSend" event will cancel the ajax request
|
135
|
+
beforeSend: function(xhr, settings) {
|
136
|
+
if (settings.dataType === undefined) {
|
137
|
+
xhr.setRequestHeader('accept', '*/*;q=0.5, ' + settings.accepts.script);
|
138
|
+
}
|
139
|
+
return rails.fire(element, 'ajax:beforeSend', [xhr, settings]);
|
140
|
+
},
|
141
|
+
success: function(data, status, xhr) {
|
142
|
+
element.trigger('ajax:success', [data, status, xhr]);
|
143
|
+
},
|
144
|
+
complete: function(xhr, status) {
|
145
|
+
element.trigger('ajax:complete', [xhr, status]);
|
146
|
+
},
|
147
|
+
error: function(xhr, status, error) {
|
148
|
+
element.trigger('ajax:error', [xhr, status, error]);
|
149
|
+
}
|
150
|
+
};
|
151
|
+
// Only pass url to `ajax` options if not blank
|
152
|
+
if (url) { options.url = url; }
|
153
|
+
|
154
|
+
return rails.ajax(options);
|
155
|
+
} else {
|
156
|
+
return false;
|
157
|
+
}
|
158
|
+
},
|
159
|
+
|
160
|
+
// Handles "data-method" on links such as:
|
161
|
+
// <a href="/users/5" data-method="delete" rel="nofollow" data-confirm="Are you sure?">Delete</a>
|
162
|
+
handleMethod: function(link) {
|
163
|
+
var href = link.attr('href'),
|
164
|
+
method = link.data('method'),
|
165
|
+
target = link.attr('target'),
|
166
|
+
csrf_token = $('meta[name=csrf-token]').attr('content'),
|
167
|
+
csrf_param = $('meta[name=csrf-param]').attr('content'),
|
168
|
+
form = $('<form method="post" action="' + href + '"></form>'),
|
169
|
+
metadata_input = '<input name="_method" value="' + method + '" type="hidden" />';
|
170
|
+
|
171
|
+
if (csrf_param !== undefined && csrf_token !== undefined) {
|
172
|
+
metadata_input += '<input name="' + csrf_param + '" value="' + csrf_token + '" type="hidden" />';
|
173
|
+
}
|
174
|
+
|
175
|
+
if (target) { form.attr('target', target); }
|
176
|
+
|
177
|
+
form.hide().append(metadata_input).appendTo('body');
|
178
|
+
form.submit();
|
179
|
+
},
|
180
|
+
|
181
|
+
/* Disables form elements:
|
182
|
+
- Caches element value in 'ujs:enable-with' data store
|
183
|
+
- Replaces element text with value of 'data-disable-with' attribute
|
184
|
+
- Sets disabled property to true
|
185
|
+
*/
|
186
|
+
disableFormElements: function(form) {
|
187
|
+
form.find(rails.disableSelector).each(function() {
|
188
|
+
var element = $(this), method = element.is('button') ? 'html' : 'val';
|
189
|
+
element.data('ujs:enable-with', element[method]());
|
190
|
+
element[method](element.data('disable-with'));
|
191
|
+
element.prop('disabled', true);
|
192
|
+
});
|
193
|
+
},
|
194
|
+
|
195
|
+
/* Re-enables disabled form elements:
|
196
|
+
- Replaces element text with cached value from 'ujs:enable-with' data store (created in `disableFormElements`)
|
197
|
+
- Sets disabled property to false
|
198
|
+
*/
|
199
|
+
enableFormElements: function(form) {
|
200
|
+
form.find(rails.enableSelector).each(function() {
|
201
|
+
var element = $(this), method = element.is('button') ? 'html' : 'val';
|
202
|
+
if (element.data('ujs:enable-with')) element[method](element.data('ujs:enable-with'));
|
203
|
+
element.prop('disabled', false);
|
204
|
+
});
|
205
|
+
},
|
206
|
+
|
207
|
+
/* For 'data-confirm' attribute:
|
208
|
+
- Fires `confirm` event
|
209
|
+
- Shows the confirmation dialog
|
210
|
+
- Fires the `confirm:complete` event
|
211
|
+
|
212
|
+
Returns `true` if no function stops the chain and user chose yes; `false` otherwise.
|
213
|
+
Attaching a handler to the element's `confirm` event that returns a `falsy` value cancels the confirmation dialog.
|
214
|
+
Attaching a handler to the element's `confirm:complete` event that returns a `falsy` value makes this function
|
215
|
+
return false. The `confirm:complete` event is fired whether or not the user answered true or false to the dialog.
|
216
|
+
*/
|
217
|
+
allowAction: function(element) {
|
218
|
+
var message = element.data('confirm'),
|
219
|
+
answer = false, callback;
|
220
|
+
if (!message) { return true; }
|
221
|
+
|
222
|
+
if (rails.fire(element, 'confirm')) {
|
223
|
+
answer = rails.confirm(message);
|
224
|
+
callback = rails.fire(element, 'confirm:complete', [answer]);
|
225
|
+
}
|
226
|
+
return answer && callback;
|
227
|
+
},
|
228
|
+
|
229
|
+
// Helper function which checks for blank inputs in a form that match the specified CSS selector
|
230
|
+
blankInputs: function(form, specifiedSelector, nonBlank) {
|
231
|
+
var inputs = $(), input,
|
232
|
+
selector = specifiedSelector || 'input,textarea';
|
233
|
+
form.find(selector).each(function() {
|
234
|
+
input = $(this);
|
235
|
+
// Collect non-blank inputs if nonBlank option is true, otherwise, collect blank inputs
|
236
|
+
if (nonBlank ? input.val() : !input.val()) {
|
237
|
+
inputs = inputs.add(input);
|
238
|
+
}
|
239
|
+
});
|
240
|
+
return inputs.length ? inputs : false;
|
241
|
+
},
|
242
|
+
|
243
|
+
// Helper function which checks for non-blank inputs in a form that match the specified CSS selector
|
244
|
+
nonBlankInputs: function(form, specifiedSelector) {
|
245
|
+
return rails.blankInputs(form, specifiedSelector, true); // true specifies nonBlank
|
246
|
+
},
|
247
|
+
|
248
|
+
// Helper function, needed to provide consistent behavior in IE
|
249
|
+
stopEverything: function(e) {
|
250
|
+
$(e.target).trigger('ujs:everythingStopped');
|
251
|
+
e.stopImmediatePropagation();
|
252
|
+
return false;
|
253
|
+
},
|
254
|
+
|
255
|
+
// find all the submit events directly bound to the form and
|
256
|
+
// manually invoke them. If anyone returns false then stop the loop
|
257
|
+
callFormSubmitBindings: function(form, event) {
|
258
|
+
var events = form.data('events'), continuePropagation = true;
|
259
|
+
if (events !== undefined && events['submit'] !== undefined) {
|
260
|
+
$.each(events['submit'], function(i, obj){
|
261
|
+
if (typeof obj.handler === 'function') return continuePropagation = obj.handler(event);
|
262
|
+
});
|
263
|
+
}
|
264
|
+
return continuePropagation;
|
265
|
+
},
|
266
|
+
|
267
|
+
// replace element's html with the 'data-disable-with' after storing original html
|
268
|
+
// and prevent clicking on it
|
269
|
+
disableElement: function(element) {
|
270
|
+
element.data('ujs:enable-with', element.html()); // store enabled state
|
271
|
+
element.html(element.data('disable-with')); // set to disabled state
|
272
|
+
element.bind('click.railsDisable', function(e) { // prevent further clicking
|
273
|
+
return rails.stopEverything(e)
|
274
|
+
});
|
275
|
+
},
|
276
|
+
|
277
|
+
// restore element to its original state which was disabled by 'disableElement' above
|
278
|
+
enableElement: function(element) {
|
279
|
+
if (element.data('ujs:enable-with') !== undefined) {
|
280
|
+
element.html(element.data('ujs:enable-with')); // set to old enabled state
|
281
|
+
// this should be element.removeData('ujs:enable-with')
|
282
|
+
// but, there is currently a bug in jquery which makes hyphenated data attributes not get removed
|
283
|
+
element.data('ujs:enable-with', false); // clean up cache
|
284
|
+
}
|
285
|
+
element.unbind('click.railsDisable'); // enable element
|
286
|
+
}
|
287
|
+
|
288
|
+
};
|
289
|
+
|
290
|
+
$.ajaxPrefilter(function(options, originalOptions, xhr){ if ( !options.crossDomain ) { rails.CSRFProtection(xhr); }});
|
291
|
+
|
292
|
+
$(document).delegate(rails.linkDisableSelector, 'ajax:complete', function() {
|
293
|
+
rails.enableElement($(this));
|
294
|
+
});
|
295
|
+
|
296
|
+
$(document).delegate(rails.linkClickSelector, 'click.rails', function(e) {
|
297
|
+
var link = $(this), method = link.data('method'), data = link.data('params');
|
298
|
+
if (!rails.allowAction(link)) return rails.stopEverything(e);
|
299
|
+
|
300
|
+
if (link.is(rails.linkDisableSelector)) rails.disableElement(link);
|
301
|
+
|
302
|
+
if (link.data('remote') !== undefined) {
|
303
|
+
if ( (e.metaKey || e.ctrlKey) && (!method || method === 'GET') && !data ) { return true; }
|
304
|
+
|
305
|
+
if (rails.handleRemote(link) === false) { rails.enableElement(link); }
|
306
|
+
return false;
|
307
|
+
|
308
|
+
} else if (link.data('method')) {
|
309
|
+
rails.handleMethod(link);
|
310
|
+
return false;
|
311
|
+
}
|
312
|
+
});
|
313
|
+
|
314
|
+
$(document).delegate(rails.inputChangeSelector, 'change.rails', function(e) {
|
315
|
+
var link = $(this);
|
316
|
+
if (!rails.allowAction(link)) return rails.stopEverything(e);
|
317
|
+
|
318
|
+
rails.handleRemote(link);
|
319
|
+
return false;
|
320
|
+
});
|
321
|
+
|
322
|
+
$(document).delegate(rails.formSubmitSelector, 'submit.rails', function(e) {
|
323
|
+
var form = $(this),
|
324
|
+
remote = form.data('remote') !== undefined,
|
325
|
+
blankRequiredInputs = rails.blankInputs(form, rails.requiredInputSelector),
|
326
|
+
nonBlankFileInputs = rails.nonBlankInputs(form, rails.fileInputSelector);
|
327
|
+
|
328
|
+
if (!rails.allowAction(form)) return rails.stopEverything(e);
|
329
|
+
|
330
|
+
// skip other logic when required values are missing or file upload is present
|
331
|
+
if (blankRequiredInputs && form.attr("novalidate") == undefined && rails.fire(form, 'ajax:aborted:required', [blankRequiredInputs])) {
|
332
|
+
return rails.stopEverything(e);
|
333
|
+
}
|
334
|
+
|
335
|
+
if (remote) {
|
336
|
+
if (nonBlankFileInputs) {
|
337
|
+
return rails.fire(form, 'ajax:aborted:file', [nonBlankFileInputs]);
|
338
|
+
}
|
339
|
+
|
340
|
+
// If browser does not support submit bubbling, then this live-binding will be called before direct
|
341
|
+
// bindings. Therefore, we should directly call any direct bindings before remotely submitting form.
|
342
|
+
if (!$.support.submitBubbles && $().jquery < '1.7' && rails.callFormSubmitBindings(form, e) === false) return rails.stopEverything(e);
|
343
|
+
|
344
|
+
rails.handleRemote(form);
|
345
|
+
return false;
|
346
|
+
|
347
|
+
} else {
|
348
|
+
// slight timeout so that the submit button gets properly serialized
|
349
|
+
setTimeout(function(){ rails.disableFormElements(form); }, 13);
|
350
|
+
}
|
351
|
+
});
|
352
|
+
|
353
|
+
$(document).delegate(rails.formInputClickSelector, 'click.rails', function(event) {
|
354
|
+
var button = $(this);
|
355
|
+
|
356
|
+
if (!rails.allowAction(button)) return rails.stopEverything(event);
|
357
|
+
|
358
|
+
// register the pressed submit button
|
359
|
+
var name = button.attr('name'),
|
360
|
+
data = name ? {name:name, value:button.val()} : null;
|
361
|
+
|
362
|
+
button.closest('form').data('ujs:submit-button', data);
|
363
|
+
});
|
364
|
+
|
365
|
+
$(document).delegate(rails.formSubmitSelector, 'ajax:beforeSend.rails', function(event) {
|
366
|
+
if (this == event.target) rails.disableFormElements($(this));
|
367
|
+
});
|
368
|
+
|
369
|
+
$(document).delegate(rails.formSubmitSelector, 'ajax:complete.rails', function(event) {
|
370
|
+
if (this == event.target) rails.enableFormElements($(this));
|
371
|
+
});
|
372
|
+
|
373
|
+
})( jQuery );
|
Binary file
|
@@ -0,0 +1,242 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll automatically include all the stylesheets available in this directory
|
3
|
+
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
4
|
+
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
5
|
+
*/
|
6
|
+
/* line 10, /home/tanraya/sandbox/imperavi-rails/spec/dummy/app/assets/stylesheets/application.css.scss */
|
7
|
+
body {
|
8
|
+
width: 700px;
|
9
|
+
margin: 0 auto;
|
10
|
+
}
|
11
|
+
/* line 14, /home/tanraya/sandbox/imperavi-rails/spec/dummy/app/assets/stylesheets/application.css.scss */
|
12
|
+
body article {
|
13
|
+
overflow: hidden;
|
14
|
+
font-family: "Trebuchet MS", Verdana, Arial, Tahoma, sans-serif;
|
15
|
+
font-size: 90%;
|
16
|
+
margin: 0;
|
17
|
+
padding: 0;
|
18
|
+
background-color: #fff;
|
19
|
+
}
|
20
|
+
/* line 8, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
21
|
+
body article blockquote {
|
22
|
+
margin: 10px;
|
23
|
+
margin-left: 3em;
|
24
|
+
background-color: #fff;
|
25
|
+
border: 1px solid #ebebeb;
|
26
|
+
padding: 10px;
|
27
|
+
line-height: 1.5em;
|
28
|
+
font-style: italic;
|
29
|
+
color: #777;
|
30
|
+
}
|
31
|
+
/* line 19, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
32
|
+
body article div {
|
33
|
+
line-height: 1.5em;
|
34
|
+
background-color: #fff;
|
35
|
+
border: 1px solid #ebebeb;
|
36
|
+
padding: 10px;
|
37
|
+
margin: 10px;
|
38
|
+
}
|
39
|
+
/* line 27, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
40
|
+
body article p {
|
41
|
+
margin: 10px;
|
42
|
+
line-height: 1.5em;
|
43
|
+
background-color: #fff;
|
44
|
+
border: 1px solid #ebebeb;
|
45
|
+
padding: 10px;
|
46
|
+
overflow: hidden;
|
47
|
+
}
|
48
|
+
/* line 35, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
49
|
+
body article p .img_left {
|
50
|
+
float: left;
|
51
|
+
margin: 0 10px 0 0;
|
52
|
+
}
|
53
|
+
/* line 40, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
54
|
+
body article p .img_right {
|
55
|
+
float: right;
|
56
|
+
margin: 0 0 0 10px;
|
57
|
+
}
|
58
|
+
/* line 46, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
59
|
+
body article ul, body article ol {
|
60
|
+
background-color: #fff;
|
61
|
+
border: 1px solid #ebebeb;
|
62
|
+
padding: 10px;
|
63
|
+
line-height: 1.5em;
|
64
|
+
margin: 10px;
|
65
|
+
padding-left: 2em;
|
66
|
+
}
|
67
|
+
/* line 55, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
68
|
+
body article ul li ul, body article ol li ol, body article ul li ol, body article ol li ul {
|
69
|
+
border: none;
|
70
|
+
margin: 2px !important;
|
71
|
+
padding: 0;
|
72
|
+
padding-left: 2em;
|
73
|
+
}
|
74
|
+
/* line 62, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
75
|
+
body article dl {
|
76
|
+
background-color: #fff;
|
77
|
+
border: 1px solid #ebebeb;
|
78
|
+
padding: 10px;
|
79
|
+
margin: 10px;
|
80
|
+
}
|
81
|
+
/* line 68, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
82
|
+
body article dl dt {
|
83
|
+
font-weight: bold;
|
84
|
+
}
|
85
|
+
/* line 69, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
86
|
+
body article dl dd {
|
87
|
+
margin-left: 1.5em;
|
88
|
+
}
|
89
|
+
/* line 72, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
90
|
+
body article table {
|
91
|
+
background-color: #fff;
|
92
|
+
border-collapse: collapse;
|
93
|
+
font-size: 1em;
|
94
|
+
margin: 10px;
|
95
|
+
}
|
96
|
+
/* line 78, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
97
|
+
body article table td {
|
98
|
+
border: 1px solid #ddd;
|
99
|
+
padding: 5px;
|
100
|
+
}
|
101
|
+
/* line 83, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
102
|
+
body article table thead td {
|
103
|
+
border-bottom: 2px solid #000 !important;
|
104
|
+
font-weight: bold;
|
105
|
+
}
|
106
|
+
/* line 89, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
107
|
+
body article code, body article pre {
|
108
|
+
font: 1.2em/1 "Courier New", Courier, monospace;
|
109
|
+
border: 1px dashed #ccc;
|
110
|
+
background: #f5f5f5;
|
111
|
+
padding: 1em;
|
112
|
+
margin: 10px;
|
113
|
+
}
|
114
|
+
/* line 97, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
115
|
+
body article pre {
|
116
|
+
line-height: 1.7em;
|
117
|
+
font-size: .9em;
|
118
|
+
background: #f5f5f5;
|
119
|
+
overflow: auto;
|
120
|
+
}
|
121
|
+
/* line 104, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
122
|
+
body article iframe, body article object {
|
123
|
+
margin: 10px;
|
124
|
+
}
|
125
|
+
/* line 108, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
126
|
+
body article .redactor_video_box {
|
127
|
+
width: 300px;
|
128
|
+
height: 200px;
|
129
|
+
background: url(/assets/imperavi_rails/video_box.png) center no-repeat black !important;
|
130
|
+
margin: 10px;
|
131
|
+
}
|
132
|
+
/* line 114, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
133
|
+
body article .redactor_video_box object, body article .redactor_video_box embed, body article .redactor_video_box iframe {
|
134
|
+
display: none;
|
135
|
+
}
|
136
|
+
/* line 119, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
137
|
+
body article .redactor_file_link {
|
138
|
+
padding-left: 20px;
|
139
|
+
}
|
140
|
+
/* line 121, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
141
|
+
body article .redactor_file_ico_avi {
|
142
|
+
background: url(/assets/imperavi_rails/imperavi/fileicons/avi.png) no-repeat;
|
143
|
+
}
|
144
|
+
/* line 122, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
145
|
+
body article .redactor_file_ico_csv {
|
146
|
+
background: url(/assets/imperavi_rails/imperavi/fileicons/csv.png) no-repeat;
|
147
|
+
}
|
148
|
+
/* line 123, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
149
|
+
body article .redactor_file_ico_doc {
|
150
|
+
background: url(/assets/imperavi_rails/imperavi/fileicons/doc.png) no-repeat;
|
151
|
+
}
|
152
|
+
/* line 124, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
153
|
+
body article .redactor_file_ico_gif {
|
154
|
+
background: url(/assets/imperavi_rails/imperavi/fileicons/gif.png) no-repeat;
|
155
|
+
}
|
156
|
+
/* line 125, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
157
|
+
body article .redactor_file_ico_html {
|
158
|
+
background: url(/assets/imperavi_rails/imperavi/fileicons/html.png) no-repeat;
|
159
|
+
}
|
160
|
+
/* line 126, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
161
|
+
body article .redactor_file_ico_jpg {
|
162
|
+
background: url(/assets/imperavi_rails/imperavi/fileicons/jpg.png) no-repeat;
|
163
|
+
}
|
164
|
+
/* line 127, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
165
|
+
body article .redactor_file_ico_mov {
|
166
|
+
background: url(/assets/imperavi_rails/imperavi/fileicons/mov.png) no-repeat;
|
167
|
+
}
|
168
|
+
/* line 128, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
169
|
+
body article .redactor_file_ico_other {
|
170
|
+
background: url(/assets/imperavi_rails/imperavi/fileicons/other.png) no-repeat;
|
171
|
+
}
|
172
|
+
/* line 129, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
173
|
+
body article .redactor_file_ico_pdf {
|
174
|
+
background: url(/assets/imperavi_rails/imperavi/fileicons/pdf.png) no-repeat;
|
175
|
+
}
|
176
|
+
/* line 130, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
177
|
+
body article .redactor_file_ico_png {
|
178
|
+
background: url(/assets/imperavi_rails/imperavi/fileicons/png.png) no-repeat;
|
179
|
+
}
|
180
|
+
/* line 131, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
181
|
+
body article .redactor_file_ico_ppt {
|
182
|
+
background: url(/assets/imperavi_rails/imperavi/fileicons/ppt.png) no-repeat;
|
183
|
+
}
|
184
|
+
/* line 132, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
185
|
+
body article .redactor_file_ico_rar {
|
186
|
+
background: url(/assets/imperavi_rails/imperavi/fileicons/rar.png) no-repeat;
|
187
|
+
}
|
188
|
+
/* line 133, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
189
|
+
body article .redactor_file_ico_rtf {
|
190
|
+
background: url(/assets/imperavi_rails/imperavi/fileicons/rtf.png) no-repeat;
|
191
|
+
}
|
192
|
+
/* line 134, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
193
|
+
body article .redactor_file_ico_txt {
|
194
|
+
background: url(/assets/imperavi_rails/imperavi/fileicons/txt.png) no-repeat;
|
195
|
+
}
|
196
|
+
/* line 135, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
197
|
+
body article .redactor_file_ico_xls {
|
198
|
+
background: url(/assets/imperavi_rails/imperavi/fileicons/xls.png) no-repeat;
|
199
|
+
}
|
200
|
+
/* line 136, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
201
|
+
body article .redactor_file_ico_zip {
|
202
|
+
background: url(/assets/imperavi_rails/imperavi/fileicons/zip.png) no-repeat;
|
203
|
+
}
|
204
|
+
/* line 138, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
205
|
+
body article h1, body article h2, body article h3, body article h4, body article h5 {
|
206
|
+
font-weight: normal;
|
207
|
+
background-color: #fff;
|
208
|
+
border: 1px solid #ebebeb;
|
209
|
+
padding: 10px;
|
210
|
+
margin: 10px;
|
211
|
+
}
|
212
|
+
/* line 146, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
213
|
+
body article h1 {
|
214
|
+
font-size: 30px;
|
215
|
+
}
|
216
|
+
/* line 147, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
217
|
+
body article h2 {
|
218
|
+
font-size: 24px;
|
219
|
+
}
|
220
|
+
/* line 148, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
221
|
+
body article h3 {
|
222
|
+
font-size: 18px;
|
223
|
+
}
|
224
|
+
/* line 149, /home/tanraya/sandbox/imperavi-rails/app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss */
|
225
|
+
body article h4 {
|
226
|
+
font-size: 12px;
|
227
|
+
font-weight: bold;
|
228
|
+
}
|
229
|
+
/* line 18, /home/tanraya/sandbox/imperavi-rails/spec/dummy/app/assets/stylesheets/application.css.scss */
|
230
|
+
body article p, body article div, body article h1, body article h2, body article blockquote {
|
231
|
+
border: 0;
|
232
|
+
}
|
233
|
+
/* line 22, /home/tanraya/sandbox/imperavi-rails/spec/dummy/app/assets/stylesheets/application.css.scss */
|
234
|
+
body article p {
|
235
|
+
padding: 0;
|
236
|
+
margin: 0 0 1.5em 0;
|
237
|
+
}
|
238
|
+
/* line 29, /home/tanraya/sandbox/imperavi-rails/spec/dummy/app/assets/stylesheets/application.css.scss */
|
239
|
+
body form textarea {
|
240
|
+
width: 700px;
|
241
|
+
height: 600px;
|
242
|
+
}
|