right-rails 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. data/CHANGELOG +4 -0
  2. data/README.rdoc +10 -18
  3. data/Rakefile +2 -2
  4. data/init.rb +9 -2
  5. data/lib/right_rails.rb +1 -1
  6. data/vendor/assets/images/rightjs-ui/colorpicker.png +0 -0
  7. data/vendor/assets/images/rightjs-ui/resizable.png +0 -0
  8. data/vendor/assets/images/rightjs-ui/rte.png +0 -0
  9. data/vendor/assets/javascripts/right-olds-src.js +652 -0
  10. data/vendor/assets/javascripts/right-olds.js +9 -0
  11. data/vendor/assets/javascripts/right-safe-src.js +68 -0
  12. data/vendor/assets/javascripts/right-safe.js +7 -0
  13. data/vendor/assets/javascripts/right-src.js +6014 -0
  14. data/vendor/assets/javascripts/right.js +7 -0
  15. data/vendor/assets/javascripts/right/autocompleter-src.js +625 -0
  16. data/vendor/assets/javascripts/right/autocompleter.js +7 -0
  17. data/vendor/assets/javascripts/right/billboard-src.js +564 -0
  18. data/vendor/assets/javascripts/right/billboard.js +7 -0
  19. data/vendor/assets/javascripts/right/calendar-src.js +1464 -0
  20. data/vendor/assets/javascripts/right/calendar.js +7 -0
  21. data/vendor/assets/javascripts/right/casting-src.js +183 -0
  22. data/vendor/assets/javascripts/right/casting.js +7 -0
  23. data/vendor/assets/javascripts/right/colorpicker-src.js +981 -0
  24. data/vendor/assets/javascripts/right/colorpicker.js +7 -0
  25. data/vendor/assets/javascripts/right/dialog-src.js +768 -0
  26. data/vendor/assets/javascripts/right/dialog.js +7 -0
  27. data/vendor/assets/javascripts/right/dnd-src.js +591 -0
  28. data/vendor/assets/javascripts/right/dnd.js +7 -0
  29. data/vendor/assets/javascripts/right/effects-src.js +508 -0
  30. data/vendor/assets/javascripts/right/effects.js +7 -0
  31. data/vendor/assets/javascripts/right/i18n/de.js +95 -0
  32. data/vendor/assets/javascripts/right/i18n/en-us.js +11 -0
  33. data/vendor/assets/javascripts/right/i18n/es.js +95 -0
  34. data/vendor/assets/javascripts/right/i18n/fi.js +96 -0
  35. data/vendor/assets/javascripts/right/i18n/fr.js +95 -0
  36. data/vendor/assets/javascripts/right/i18n/hu.js +100 -0
  37. data/vendor/assets/javascripts/right/i18n/it.js +95 -0
  38. data/vendor/assets/javascripts/right/i18n/jp.js +99 -0
  39. data/vendor/assets/javascripts/right/i18n/nl.js +95 -0
  40. data/vendor/assets/javascripts/right/i18n/pt-br.js +95 -0
  41. data/vendor/assets/javascripts/right/i18n/ru.js +95 -0
  42. data/vendor/assets/javascripts/right/i18n/ua.js +99 -0
  43. data/vendor/assets/javascripts/right/in-edit-src.js +373 -0
  44. data/vendor/assets/javascripts/right/in-edit.js +7 -0
  45. data/vendor/assets/javascripts/right/jquerysh-src.js +362 -0
  46. data/vendor/assets/javascripts/right/jquerysh.js +7 -0
  47. data/vendor/assets/javascripts/right/json-src.js +147 -0
  48. data/vendor/assets/javascripts/right/json.js +7 -0
  49. data/vendor/assets/javascripts/right/keys-src.js +87 -0
  50. data/vendor/assets/javascripts/right/keys.js +7 -0
  51. data/vendor/assets/javascripts/right/lightbox-src.js +931 -0
  52. data/vendor/assets/javascripts/right/lightbox.js +7 -0
  53. data/vendor/assets/javascripts/right/rails-src.js +402 -0
  54. data/vendor/assets/javascripts/right/rails.js +7 -0
  55. data/vendor/assets/javascripts/right/rater-src.js +384 -0
  56. data/vendor/assets/javascripts/right/rater.js +7 -0
  57. data/vendor/assets/javascripts/right/resizable-src.js +465 -0
  58. data/vendor/assets/javascripts/right/resizable.js +7 -0
  59. data/vendor/assets/javascripts/right/rte-src.js +2685 -0
  60. data/vendor/assets/javascripts/right/rte.js +7 -0
  61. data/vendor/assets/javascripts/right/selectable-src.js +725 -0
  62. data/vendor/assets/javascripts/right/selectable.js +7 -0
  63. data/vendor/assets/javascripts/right/sizzle-src.js +1132 -0
  64. data/vendor/assets/javascripts/right/sizzle.js +7 -0
  65. data/vendor/assets/javascripts/right/slider-src.js +395 -0
  66. data/vendor/assets/javascripts/right/slider.js +7 -0
  67. data/vendor/assets/javascripts/right/sortable-src.js +430 -0
  68. data/vendor/assets/javascripts/right/sortable.js +7 -0
  69. data/vendor/assets/javascripts/right/table-src.js +176 -0
  70. data/vendor/assets/javascripts/right/table.js +7 -0
  71. data/vendor/assets/javascripts/right/tabs-src.js +1157 -0
  72. data/vendor/assets/javascripts/right/tabs.js +7 -0
  73. data/vendor/assets/javascripts/right/tags-src.js +745 -0
  74. data/vendor/assets/javascripts/right/tags.js +7 -0
  75. data/vendor/assets/javascripts/right/tooltips-src.js +331 -0
  76. data/vendor/assets/javascripts/right/tooltips.js +7 -0
  77. data/vendor/assets/javascripts/right/uploader-src.js +302 -0
  78. data/vendor/assets/javascripts/right/uploader.js +7 -0
  79. metadata +78 -14
@@ -0,0 +1,7 @@
1
+ /**
2
+ * RightJS-UI Rater v2.2.0
3
+ * http://rightjs.org/ui/rater
4
+ *
5
+ * Copyright (C) 2009-2011 Nikolay Nemshilov
6
+ */
7
+ var Rater=RightJS.Rater=function(a,b){function c(a,c){c||(c=a,a="DIV");var d=new b.Class(b.Element.Wrappers[a]||b.Element,{initialize:function(c,d){this.key=c;var e=[{"class":"rui-"+c}];this instanceof b.Input||this instanceof b.Form||e.unshift(a),this.$super.apply(this,e),b.isString(d)&&(d=b.$(d)),d instanceof b.Element&&(this._=d._,"$listeners"in d&&(d.$listeners=d.$listeners),d={}),this.setOptions(d,this);return b.Wrapper.Cache[b.$uid(this._)]=this},setOptions:function(a,c){c&&(a=b.Object.merge(a,(new Function("return "+(c.get("data-"+this.key)||"{}")))())),a&&b.Options.setOptions.call(this,b.Object.merge(this.options,a));return this}}),e=new b.Class(d,c);b.Observer.createShortcuts(e.prototype,e.EVENTS||b([]));return e}var d={assignTo:function(b){var c=e(function(a,b){(a=f(a))&&a[a.setValue?"setValue":"update"](b.target.getValue())}).curry(b),d=e(function(a,b){a=f(a),a&&a.onChange&&a.onChange(e(function(){this.setValue(a.value())}).bind(b))}).curry(b);f(b)?(c({target:this}),d(this)):f(a).onReady(e(function(){c({target:this}),d(this)}.bind(this)));return this.onChange(c)}},e=b,f=b.$,g=b.$w,h=b.Xhr,i=b.isString,j=b.isNumber,k=new c({include:d,extend:{version:"2.2.0",EVENTS:g("change hover send"),Options:{html:"&#9733;",size:5,value:null,update:null,disabled:!1,disableOnVote:!1,url:null,param:"rate",Xhr:null}},initialize:function(a){this.$super("rater",a).on({click:this._clicked,mouseover:this._hovered,mouseout:this._left});if(this.empty())for(var b=0;b<this.options.size;b++)this.insert("<div>"+this.options.html+"</div>");a=this.options,a.value===null&&(a.value=this.find(".active").length),this.setValue(a.value),a.disabled&&this.disable(),a.update&&this.assignTo(a.update)},setValue:function(a){this.disabled()||(a=i(a)?e(a).toInt():a,a=j(a)?e(a).round():0,a=e(a).max(this.options.size),a=e(a).min(0),this.highlight(a),this.value!=a&&this.fire("change",{value:this.value=a}));return this},getValue:function(){return this.value},send:function(){this.options.url&&(this.request=(new h(this.options.url,this.options.Xhr)).send(this.options.param+"="+this.value),this.fire("send",{value:this.value}));return this},disable:function(){return this.addClass("rui-rater-disabled")},enable:function(){return this.removeClass("rui-rater-disabled")},disabled:function(){return this.hasClass("rui-rater-disabled")},_hovered:function(a){var b=this.children().indexOf(a.target);!this.disabled()&&b>-1&&(this.highlight(b+1),this.fire("hover",{value:b+1}))},_clicked:function(a){var b=this.children().indexOf(a.target);!this.disabled()&&b>-1&&(this.setValue(b+1),this.options.disableOnVote&&this.disable(),this.send())},_left:function(){this.setValue(this.value)},highlight:function(a){this.children().each(function(b,c){b[a-1<c?"removeClass":"addClass"]("active")})}});f(a).onMouseover(function(a){var b=a.target,c=a.find(".rui-rater");c&&(c instanceof k||(c=new k(c),b.parent()===c&&b.fire("mouseover")))});var l=a.createElement("style"),m=a.createTextNode("div.rui-rater,div.rui-rater div{margin:0;padding:0;background:none;border:none;display:inline-block; *display:inline; *zoom:1;font-family:Arial;font-size:110%}div.rui-rater{width:6em;height:1em;vertical-align:middle}div.rui-rater div{float:left;width:1em;height:1em;line-height:1em;text-align:center;cursor:pointer;color:#888}div.rui-rater div.active{color:brown;text-shadow:#666 .05em .05em .15em}div.rui-rater-disabled div{cursor:default}");l.type="text/css",a.getElementsByTagName("head")[0].appendChild(l),l.styleSheet?l.styleSheet.cssText=m.nodeValue:l.appendChild(m);return k}(document,RightJS)
@@ -0,0 +1,465 @@
1
+ /**
2
+ * RightJS-UI Resizable v2.2.3
3
+ * http://rightjs.org/ui/resizable
4
+ *
5
+ * Copyright (C) 2010-2011 Nikolay Nemshilov
6
+ */
7
+ var Resizable = RightJS.Resizable = (function(document, RightJS) {
8
+ /**
9
+ * This module defines the basic widgets constructor
10
+ * it creates an abstract proxy with the common functionality
11
+ * which then we reuse and override in the actual widgets
12
+ *
13
+ * Copyright (C) 2010-2011 Nikolay Nemshilov
14
+ */
15
+
16
+ /**
17
+ * The widget units constructor
18
+ *
19
+ * @param String tag-name or Object methods
20
+ * @param Object methods
21
+ * @return Widget wrapper
22
+ */
23
+ function Widget(tag_name, methods) {
24
+ if (!methods) {
25
+ methods = tag_name;
26
+ tag_name = 'DIV';
27
+ }
28
+
29
+ /**
30
+ * An Abstract Widget Unit
31
+ *
32
+ * Copyright (C) 2010 Nikolay Nemshilov
33
+ */
34
+ var AbstractWidget = new RightJS.Class(RightJS.Element.Wrappers[tag_name] || RightJS.Element, {
35
+ /**
36
+ * The common constructor
37
+ *
38
+ * @param Object options
39
+ * @param String optional tag name
40
+ * @return void
41
+ */
42
+ initialize: function(key, options) {
43
+ this.key = key;
44
+ var args = [{'class': 'rui-' + key}];
45
+
46
+ // those two have different constructors
47
+ if (!(this instanceof RightJS.Input || this instanceof RightJS.Form)) {
48
+ args.unshift(tag_name);
49
+ }
50
+ this.$super.apply(this, args);
51
+
52
+ if (RightJS.isString(options)) {
53
+ options = RightJS.$(options);
54
+ }
55
+
56
+ // if the options is another element then
57
+ // try to dynamically rewrap it with our widget
58
+ if (options instanceof RightJS.Element) {
59
+ this._ = options._;
60
+ if ('$listeners' in options) {
61
+ options.$listeners = options.$listeners;
62
+ }
63
+ options = {};
64
+ }
65
+ this.setOptions(options, this);
66
+
67
+ return (RightJS.Wrapper.Cache[RightJS.$uid(this._)] = this);
68
+ },
69
+
70
+ // protected
71
+
72
+ /**
73
+ * Catches the options
74
+ *
75
+ * @param Object user-options
76
+ * @param Element element with contextual options
77
+ * @return void
78
+ */
79
+ setOptions: function(options, element) {
80
+ if (element) {
81
+ options = RightJS.Object.merge(options, new Function("return "+(
82
+ element.get('data-'+ this.key) || '{}'
83
+ ))());
84
+ }
85
+
86
+ if (options) {
87
+ RightJS.Options.setOptions.call(this, RightJS.Object.merge(this.options, options));
88
+ }
89
+
90
+ return this;
91
+ }
92
+ });
93
+
94
+ /**
95
+ * Creating the actual widget class
96
+ *
97
+ */
98
+ var Klass = new RightJS.Class(AbstractWidget, methods);
99
+
100
+ // creating the widget related shortcuts
101
+ RightJS.Observer.createShortcuts(Klass.prototype, Klass.EVENTS || RightJS([]));
102
+
103
+ return Klass;
104
+ }
105
+
106
+
107
+ /**
108
+ * The filenames to include
109
+ *
110
+ * Copyright (C) 2010-2011 Nikolay Nemshilov
111
+ */
112
+ var R = RightJS,
113
+ $ = RightJS.$,
114
+ $w = RightJS.$w,
115
+ $E = RightJS.$E,
116
+ Class = RightJS.Class,
117
+ Element = RightJS.Element;
118
+
119
+
120
+
121
+
122
+ /**
123
+ * The resizable unit main file
124
+ *
125
+ * Copyright (C) 2010-2011 Nikolay Nemshilov
126
+ */
127
+ var Resizable = new Widget({
128
+ extend: {
129
+ version: '2.2.3',
130
+
131
+ EVENTS: $w('resize start release'),
132
+
133
+ Options: {
134
+ direction: null, // 'top', 'left', 'right', 'bottom', null for bidrectional
135
+
136
+ minWidth: null,
137
+ maxWidth: null,
138
+ minHeight: null,
139
+ maxHeight: null
140
+ }
141
+ },
142
+
143
+ /**
144
+ * Basic constructor
145
+ *
146
+ * @param Element reference
147
+ * @param Object options
148
+ * @return void
149
+ */
150
+ initialize: function(element, options) {
151
+ this
152
+ .$super('resizable', this.old_inst = $(element))
153
+ .setOptions(options);
154
+
155
+ if (this.options.direction) {
156
+ this.addClass('rui-resizable-'+ this.options.direction);
157
+ } else {
158
+ this.addClass('rui-resizable');
159
+ }
160
+
161
+ // initializing the inner structure
162
+ this.content = this.first('.rui-resizable-content') ||
163
+ $E('div', {'class': 'rui-resizable-content'}).insert(this.children()).insertTo(this);
164
+ this.handle = this.first('.rui-resizable-handle') ||
165
+ $E('div', {'class': 'rui-resizable-handle'}).insertTo(this);
166
+
167
+ // resizing the content block so it fully fit the resizable element
168
+ this.content.setWidth(this.size().x -
169
+ parseInt(this.getStyle('borderLeftWidth'), 10) -
170
+ parseInt(this.getStyle('borderRightWidth'), 10)
171
+ );
172
+ if (this.options.direction !== 'left' && this.options.direction !== 'right') {
173
+ this.content.setHeight(this.size().y -
174
+ parseInt(this.getStyle('borderTopWidth'), 10) -
175
+ parseInt(this.getStyle('borderBottomWidth'), 10)
176
+ );
177
+ }
178
+ },
179
+
180
+ /**
181
+ * destructor
182
+ *
183
+ * @return Resizable this
184
+ */
185
+ destroy: function() {
186
+ this
187
+ .removeClass('rui-resizable')
188
+ .removeClass('rui-resizable-top')
189
+ .removeClass('rui-resizable-left')
190
+ .removeClass('rui-resizable-right')
191
+ .removeClass('rui-resizable-bottom')
192
+ .insert(this.content._.childNodes);
193
+
194
+ this.content.remove();
195
+ this.handle.remove();
196
+
197
+ // swapping the old element back
198
+ if (this.old_inst) {
199
+ Wrapper.Cache[$uid(this._)] = this.old_inst;
200
+ }
201
+
202
+ return this;
203
+ },
204
+
205
+ /**
206
+ * Overriding the method to recognize the direction
207
+ * option from the element class-name
208
+ *
209
+ * @param Object options
210
+ * @return Resizable this
211
+ */
212
+ setOptions: function(options, context) {
213
+ options = options || {};
214
+
215
+ // trying to recognize the direction
216
+ $w('top left right bottom').each(function(direction) {
217
+ if (this.hasClass('rui-resizable-'+ direction)) {
218
+ options.direction = direction;
219
+ }
220
+ }, this);
221
+
222
+ return this.$super(options, context);
223
+ },
224
+
225
+ /**
226
+ * Starts the resizing process
227
+ *
228
+ * @param Event mouse event
229
+ */
230
+ start: function(event) {
231
+ this.prevSizes = this.size();
232
+ this.prevEvPos = event.position();
233
+
234
+ // used later during the resize process
235
+ this.contXDiff = this.size().x - this.content.size().x;
236
+ this.contYDiff = this.size().y - this.content.size().y;
237
+
238
+ // trying to recognize the boundaries
239
+ $w('minWidth maxWidth minHeight maxHeight').each(function(dimension) {
240
+ this[dimension] = this.findDim(dimension);
241
+ }, this);
242
+
243
+ return this.fire('start', {original: event});
244
+ },
245
+
246
+ /**
247
+ * Tracks the event during the resize process
248
+ *
249
+ * @param Event mouse event
250
+ */
251
+ track: function(event) {
252
+ var event_pos = event.position(), prev_pos = this.prevEvPos,
253
+ handle = this.handle.dimensions(),
254
+ prev_size = this.prevSizes, width = prev_size.x, height = prev_size.y,
255
+ x_diff = prev_pos.x - event_pos.x,
256
+ y_diff = prev_pos.y - event_pos.y,
257
+ min_x = this.minWidth,
258
+ max_x = this.maxWidth,
259
+ min_y = this.minHeight,
260
+ max_y = this.maxHeight,
261
+ options = this.options,
262
+ direction = options.direction;
263
+
264
+ // calculating the new size
265
+ width += (direction === 'left' ? 1 : -1) * x_diff;
266
+ height += (direction === 'top' ? 1 : -1) * y_diff;
267
+
268
+ // applying the boundaries
269
+ if (width < min_x) { width = min_x; }
270
+ if (width > max_x) { width = max_x; }
271
+ if (height < min_y) { height = min_y; }
272
+ if (height > max_y) { height = max_y; }
273
+
274
+ // applying the sizes
275
+ if (prev_size.x !== width && direction !== 'top' && direction !== 'bottom') {
276
+ this.setWidth(width);
277
+ }
278
+ if (prev_size.y !== height && direction !== 'left' && direction !== 'right') {
279
+ this.setHeight(height);
280
+ }
281
+
282
+ // adjusting the previous cursor position so that it didn't had a shift
283
+ if (width == min_x || width == max_x) {
284
+ event_pos.x = handle.left + handle.width / 2;
285
+ }
286
+ if (height == min_y || height == max_y) {
287
+ event_pos.y = handle.top + handle.height / 2;
288
+ }
289
+
290
+ this.prevEvPos = event_pos;
291
+ this.prevSizes = this.size();
292
+
293
+ this.fire('resize', {original: event});
294
+ },
295
+
296
+ /**
297
+ * Sets the width of the widget
298
+ *
299
+ * @param Number width
300
+ * @return Resizable this
301
+ */
302
+ setWidth: function(width) {
303
+ this.content.setWidth(width - this.contXDiff);
304
+ return this.$super(width);
305
+ },
306
+
307
+ /**
308
+ * Sets the height of the widget
309
+ *
310
+ * @param Number height
311
+ * @return Resizable this
312
+ */
313
+ setHeight: function(height) {
314
+ this.content.setHeight(height - this.contYDiff);
315
+ return this.$super(height);
316
+ },
317
+
318
+ /**
319
+ * Marks it the end of the action
320
+ *
321
+ * @return Resizable this
322
+ */
323
+ release: function(event) {
324
+ return this.fire('release', {original: event});
325
+ },
326
+
327
+ // protected
328
+
329
+ // finds dimensions of the element
330
+ findDim: function(dimension) {
331
+ var style = this.options[dimension] || this.getStyle(dimension);
332
+
333
+ if (style && /\d+/.test(style) && parseFloat(style) > 0) {
334
+ var what = R(dimension).include('Width') ? 'width' : 'height',
335
+ dummy = (this._dummy || (this._dummy = $E('div', {
336
+ style: 'visibility:hidden;z-index:-1'
337
+ })))
338
+ .setStyle(what, style)
339
+ .insertTo(this, 'before');
340
+
341
+ var size = dummy._['offset' + R(what).capitalize()];
342
+ dummy.remove();
343
+
344
+ return size;
345
+ }
346
+ }
347
+ });
348
+
349
+
350
+ /**
351
+ * Document level hooks for resizables
352
+ *
353
+ * Copyright (C) 2010 Nikolay Nemshilov
354
+ */
355
+ $(document).on({
356
+ mousedown: function(event) {
357
+ var handle = event.find('.rui-resizable-handle');
358
+ if (handle) {
359
+ var resizable = handle.parent();
360
+
361
+ if (!(resizable instanceof Resizable)) {
362
+ resizable = new Resizable(resizable);
363
+ }
364
+
365
+ Resizable.current = resizable.start(event.stop());
366
+ }
367
+ },
368
+
369
+ mousemove: function(event) {
370
+ var resizable = Resizable.current;
371
+ if (resizable) {
372
+ resizable.track(event);
373
+ }
374
+ },
375
+
376
+ mouseup: function(event) {
377
+ var resizable = Resizable.current;
378
+
379
+ if (resizable) {
380
+ resizable.release(event);
381
+ Resizable.current = null;
382
+ }
383
+ }
384
+ });
385
+
386
+ $(window).onBlur(function(event) {
387
+ var resizable = Resizable.current;
388
+ if (resizable) {
389
+ resizable.release(event);
390
+ Resizable.current = null;
391
+ }
392
+ });
393
+
394
+
395
+ /**
396
+ * Element level hook to make things resizable
397
+ *
398
+ * Copyright (C) 2010 Nikolay Nemshilov
399
+ */
400
+ Element.include({
401
+ /**
402
+ * Makes a resizeable out of the element
403
+ *
404
+ * @param Object options
405
+ * @return Element this
406
+ */
407
+ makeResizable: function(options) {
408
+ return new Resizable(this, options);
409
+ },
410
+
411
+ /**
412
+ * Destroys a resizable functionality
413
+ *
414
+ * @return Element this
415
+ */
416
+ undoResizable: function() {
417
+ if (this instanceof Resizable) {
418
+ this.destroy();
419
+ }
420
+ return this;
421
+ }
422
+ });
423
+
424
+
425
+ /**
426
+ * The drag-n-drop module patch so it was possible
427
+ * to use dnd and resizable at the same time
428
+ *
429
+ * NOTE: to make it work, the DND module should be
430
+ * included _before_ the resizable widget!
431
+ *
432
+ * Copyright (C) 2011 Nikolay Nemshilov
433
+ */
434
+ if ('Draggable' in RightJS) {
435
+ RightJS.Draggable.include({
436
+ /**
437
+ * Overloading the method so that it didn't trigger
438
+ * the drag process if the click is happened on
439
+ * a resizable unit handle
440
+ *
441
+ * @return void
442
+ */
443
+ dragStart: function(event) {
444
+ if (!event.target.hasClass('rui-resizable-handle')) {
445
+ this.$super(event);
446
+ }
447
+ }
448
+ });
449
+ }
450
+
451
+ var embed_style = document.createElement('style'),
452
+ embed_rules = document.createTextNode(".rui-resizable,.rui-resizable-top,.rui-resizable-left,.rui-resizable-right,.rui-resizable-bottom,.rui-resizable-content .rui-resizable-handle{margin:0;padding:0;overflow:none;border:none;background:none;width:auto;height:auto;min-width:none;max-width:none;min-height:none;max-height:none}.rui-resizable,.rui-resizable-top,.rui-resizable-left,.rui-resizable-right,.rui-resizable-bottom{position:relative;min-width:8em;min-height:8em;border:1px solid #DDD}.rui-resizable-content{overflow:auto;padding:.5em;position:relative}.rui-resizable-handle{position:absolute;background-image:url(/assets/rightjs-ui/resizable.png);background-repeat:no-repeat;background-color:#DDD;cursor:move}.rui-resizable .rui-resizable-handle{right:0;bottom:0;background-position:-2px -2px;background-color:transparent;width:16px;height:16px}.rui-resizable-top .rui-resizable-handle,.rui-resizable-bottom .rui-resizable-handle{height:8px;width:100%;background-position:center -26px;cursor:row-resize}.rui-resizable-left .rui-resizable-handle,.rui-resizable-right .rui-resizable-handle{top:0px;width:8px;height:100%;background-position:-26px center;cursor:col-resize}.rui-resizable-top .rui-resizable-content{padding-top:1em}.rui-resizable-top .rui-resizable-handle{top:0}.rui-resizable-bottom .rui-resizable-content{padding-bottom:1em}.rui-resizable-bottom .rui-resizable-handle{bottom:0}.rui-resizable-left .rui-resizable-content{padding-left:1em}.rui-resizable-left .rui-resizable-handle{left:0}.rui-resizable-right .rui-resizable-content{padding-right:1em}.rui-resizable-right .rui-resizable-handle{right:0}");
453
+
454
+ embed_style.type = 'text/css';
455
+ document.getElementsByTagName('head')[0].appendChild(embed_style);
456
+
457
+ if(embed_style.styleSheet) {
458
+ embed_style.styleSheet.cssText = embed_rules.nodeValue;
459
+ } else {
460
+ embed_style.appendChild(embed_rules);
461
+ }
462
+
463
+
464
+ return Resizable;
465
+ })(document, RightJS);