right-rails 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Drag'n'Drop module v2.2.3
2
+ * Drag'n'Drop module v2.2.4
3
3
  * http://rightjs.org/plugins/drag-n-drop
4
4
  *
5
5
  * Copyright (C) 2009-2012 Nikolay Nemshilov
@@ -28,7 +28,7 @@ var R = RightJS,
28
28
  */
29
29
  var Draggable = new Class(Observer, {
30
30
  extend: {
31
- version: '2.2.3',
31
+ version: '2.2.4',
32
32
 
33
33
  EVENTS: $w('before start drag stop drop'),
34
34
 
@@ -79,7 +79,11 @@ var Draggable = new Class(Observer, {
79
79
  this.element = $(element);
80
80
  this.$super(options);
81
81
 
82
- this._dragStart = R(this.dragStart).bind(this);
82
+ this._dragStart = R(function(event) {
83
+ if (event.which === 1) {
84
+ this.dragStart(event);
85
+ }
86
+ }).bind(this);
83
87
  this.handle.on({
84
88
  mousedown: this._dragStart,
85
89
  touchstart: this._dragStart
@@ -1,7 +1,7 @@
1
1
  /**
2
- * Drag'n'Drop module v2.2.3
2
+ * Drag'n'Drop module v2.2.4
3
3
  * http://rightjs.org/plugins/drag-n-drop
4
4
  *
5
5
  * Copyright (C) 2009-2012 Nikolay Nemshilov
6
6
  */
7
- (function(a,b,c){function o(a){l.current!==null&&l.current.dragStop(a)}function n(a){l.current!==null&&(l.current.dragProcess(a),m.checkHover(a,l.current))}var d=c,e=c.$,f=c.$w,g=c.Class,h=c.isHash,i=c.isArray,j=c.Element,k=c.Observer,l=new g(k,{extend:{version:"2.2.3",EVENTS:f("before start drag stop drop"),Options:{handle:null,snap:0,axis:null,range:null,dragClass:"dragging",clone:!1,revert:!1,revertDuration:"normal",scroll:!0,scrollSensitivity:32,zIndex:1e7,moveOut:!1,relName:"draggable"},current:null,rescan:function(a){var c=this.Options.relName,d=this===l?"draggable":"droppable";(e(a)||e(b)).find('*[rel^="'+c+'"]').each(function(a){a[d]||new this(a,(new Function("return "+a.get("data-"+c)))()||{})},this)}},initialize:function(a,b){this.element=e(a),this.$super(b),this._dragStart=d(this.dragStart).bind(this),this.handle.on({mousedown:this._dragStart,touchstart:this._dragStart}),this.element.draggable=this},destroy:function(){this.handle.stopObserving("mousedown",this._dragStart).stopObserving("touchstart",this._dragStart),delete this.element.draggable;return this},setOptions:function(a){this.$super(a),this.handle=this.options.handle?e(this.options.handle):this.element,i(this.options.snap)?(this.snapX=this.options.snap[0],this.snapY=this.options.snap[1]):this.snapX=this.snapY=this.options.snap;return this},revert:function(){var a=this.clone.position(),b={top:a.y+this.ryDiff+"px",left:a.x+this.rxDiff+"px"};this.options.revertDuration&&this.element.morph?this.element.morph(b,{duration:this.options.revertDuration,onFinish:d(this.swapBack).bind(this)}):(this.element.setStyle(b),this.swapBack());return this},dragStart:function(c){if(this._drag)return!1;this._drag=!0,this.fire("before",this,c.stop());var d=this.element.position();this.xDiff=c.pageX-d.x,this.yDiff=c.pageY-d.y,this.rxDiff=this.ryDiff=0,this.element.parents().reverse().each(function(a){a.getStyle("position")!=="static"&&(a=a.position(),this.rxDiff=-a.x,this.ryDiff=-a.y)},this);var f={x:this.element.getStyle("width"),y:this.element.getStyle("height")};f.x=="auto"&&(f.x=this.element._.offsetWidth+"px"),f.y=="auto"&&(f.y=this.element._.offsetHeight+"px");if(this.options.clone||this.options.revert)this.clone=(new j(this.element._.cloneNode(!0))).setStyle({visibility:this.options.clone?"visible":"hidden"}).insertTo(this.element,"before");this.element.setStyle({position:"absolute",zIndex:l.Options.zIndex++,top:d.y+this.ryDiff+"px",left:d.x+this.rxDiff+"px",width:f.x,height:f.y}).addClass(this.options.dragClass),this.options.moveOut&&this.element.insertTo(b.body),this.winScrolls=e(a).scrolls(),this.winSizes=e(a).size(),l.current=this.calcConstraints().fire("start",this,c),this.style=this.element._.style},dragProcess:function(b){var c=b.pageX,d=b.pageY,f=c-this.xDiff,g=d-this.yDiff;this.ranged&&(this.minX>f&&(f=this.minX),this.maxX<f&&(f=this.maxX),this.minY>g&&(g=this.minY),this.maxY<g&&(g=this.maxY));if(this.options.scroll){var h={x:this.winScrolls.x,y:this.winScrolls.y},i=this.options.scrollSensitivity;d-h.y<i?h.y=d-i:h.y+this.winSizes.y-d<i&&(h.y=d-this.winSizes.y+i),c-h.x<i?h.x=c-i:h.x+this.winSizes.x-c<i&&(h.x=c-this.winSizes.x+i),h.y<0&&(h.y=0),h.x<0&&(h.x=0),(h.y<this.winScrolls.y||h.y>this.winScrolls.y||h.x<this.winScrolls.x||h.x>this.winScrolls.x)&&e(a).scrollTo(this.winScrolls=h)}this.snapX&&(f=f-f%this.snapX),this.snapY&&(g=g-g%this.snapY),this.axisY||(this.style.left=f+this.rxDiff+"px"),this.axisX||(this.style.top=g+this.ryDiff+"px"),this.fire("drag",this,b)},dragStop:function(a){this.element.removeClass(this.options.dragClass),m.checkDrop(a,this),this.options.revert?this.revert():this._drag=!1,l.current=null,this.fire("stop",this,a)},swapBack:function(){this.clone&&this.clone.replace(this.element.setStyle({width:this.clone.getStyle("width"),height:this.clone.getStyle("height"),position:this.clone.getStyle("position"),zIndex:this.clone.getStyle("zIndex")||""})),this._drag=!1},calcConstraints:function(){var a=this.options.axis;this.axisX=d(["x","horizontal"]).include(a),this.axisY=d(["y","vertical"]).include(a),this.ranged=!1;var b=this.options.range;if(b){this.ranged=!0;var c=e(b);if(c instanceof j){var f=c.dimensions();b={x:[f.left,f.left+f.width],y:[f.top,f.top+f.height]}}if(h(b)){var g=this.element.size();b.x&&(this.minX=b.x[0],this.maxX=b.x[1]-g.x),b.y&&(this.minY=b.y[0],this.maxY=b.y[1]-g.y)}}return this}}),m=new g(k,{extend:{EVENTS:f("drop hover leave"),Options:{accept:"*",containment:null,overlap:null,overlapSize:.5,allowClass:"droppable-allow",denyClass:"droppable-deny",relName:"droppable"},rescan:l.rescan,checkHover:function(a,b){for(var c=0,d=this.active.length;c<d;c++)this.active[c].checkHover(a,b)},checkDrop:function(a,b){for(var c=0,d=this.active.length;c<d;c++)this.active[c].checkDrop(a,b)},active:[]},initialize:function(a,b){this.element=e(a),this.$super(b),m.active.push(this.element._droppable=this)},destroy:function(){m.active=m.active.without(this),delete this.element.droppable;return this},checkHover:function(a,b){this.hoveredBy(a,b)?this._hovered||(this._hovered=!0,this.element.addClass(this.options[this.allows(b)?"allowClass":"denyClass"]),this.fire("hover",b,this,a)):this._hovered&&(this._hovered=!1,this.reset().fire("leave",b,this,a))},checkDrop:function(a,b){this.reset(),this.hoveredBy(a,b)&&this.allows(b)&&(b.fire("drop",this,b,a),this.fire("drop",b,this,a))},reset:function(){this.element.removeClass(this.options.allowClass).removeClass(this.options.denyClass);return this},hoveredBy:function(a,b){var c=this.element.dimensions(),d=c.top,e=c.left,f=c.left+c.width,g=c.top+c.height,h=a.pageX,i=a.pageY;if(!this.options.overlap)return h>e&&h<f&&i>d&&i<g;var j=b.element.dimensions(),k=this.options.overlapSize,l=j.top,m=j.left,n=j.left+j.width,o=j.top+j.height;switch(this.options.overlap){case"x":case"horizontal":return(l>d&&l<g||o>d&&o<g)&&(m>e&&m<f-c.width*k||n<f&&n>e+c.width*k);case"y":case"vertical":return(m>e&&m<f||n>e&&n<f)&&(l>d&&l<g-c.height*k||o<g&&o>d+c.height*k);default:return(m>e&&m<f-c.width*k||n<f&&n>e+c.width*k)&&(l>d&&l<g-c.height*k||o<g&&o>d+c.height*k)}},allows:function(a){this.options.containment&&!this._scanned&&(this.options.containment=d(this.options.containment).map(e),this._scanned=!0);var b=this.options.containment?this.options.containment.includes(a.element):!0;return b&&(this.options.accept=="*"?!0:a.element.match(this.options.accept))}});e(b).on({ready:function(){l.rescan(),m.rescan()},mousemove:n,touchmove:n,mouseup:o,touchend:o}),j.include({makeDraggable:function(a){new l(this,a);return this},undoDraggable:function(){"draggable"in this&&this.draggable.destroy();return this},makeDroppable:function(a){new m(this,a);return this},undoDroppable:function(){"droppable"in this&&this.droppable.destroy();return this}}),a.Draggable=c.Draggable=l,a.Droppable=c.Droppable=m})(window,document,RightJS)
7
+ (function(a,b,c){function o(a){l.current!==null&&l.current.dragStop(a)}function n(a){l.current!==null&&(l.current.dragProcess(a),m.checkHover(a,l.current))}var d=c,e=c.$,f=c.$w,g=c.Class,h=c.isHash,i=c.isArray,j=c.Element,k=c.Observer,l=new g(k,{extend:{version:"2.2.4",EVENTS:f("before start drag stop drop"),Options:{handle:null,snap:0,axis:null,range:null,dragClass:"dragging",clone:!1,revert:!1,revertDuration:"normal",scroll:!0,scrollSensitivity:32,zIndex:1e7,moveOut:!1,relName:"draggable"},current:null,rescan:function(a){var c=this.Options.relName,d=this===l?"draggable":"droppable";(e(a)||e(b)).find('*[rel^="'+c+'"]').each(function(a){a[d]||new this(a,(new Function("return "+a.get("data-"+c)))()||{})},this)}},initialize:function(a,b){this.element=e(a),this.$super(b),this._dragStart=d(function(a){a.which===1&&this.dragStart(a)}).bind(this),this.handle.on({mousedown:this._dragStart,touchstart:this._dragStart}),this.element.draggable=this},destroy:function(){this.handle.stopObserving("mousedown",this._dragStart).stopObserving("touchstart",this._dragStart),delete this.element.draggable;return this},setOptions:function(a){this.$super(a),this.handle=this.options.handle?e(this.options.handle):this.element,i(this.options.snap)?(this.snapX=this.options.snap[0],this.snapY=this.options.snap[1]):this.snapX=this.snapY=this.options.snap;return this},revert:function(){var a=this.clone.position(),b={top:a.y+this.ryDiff+"px",left:a.x+this.rxDiff+"px"};this.options.revertDuration&&this.element.morph?this.element.morph(b,{duration:this.options.revertDuration,onFinish:d(this.swapBack).bind(this)}):(this.element.setStyle(b),this.swapBack());return this},dragStart:function(c){if(this._drag)return!1;this._drag=!0,this.fire("before",this,c.stop());var d=this.element.position();this.xDiff=c.pageX-d.x,this.yDiff=c.pageY-d.y,this.rxDiff=this.ryDiff=0,this.element.parents().reverse().each(function(a){a.getStyle("position")!=="static"&&(a=a.position(),this.rxDiff=-a.x,this.ryDiff=-a.y)},this);var f={x:this.element.getStyle("width"),y:this.element.getStyle("height")};f.x=="auto"&&(f.x=this.element._.offsetWidth+"px"),f.y=="auto"&&(f.y=this.element._.offsetHeight+"px");if(this.options.clone||this.options.revert)this.clone=(new j(this.element._.cloneNode(!0))).setStyle({visibility:this.options.clone?"visible":"hidden"}).insertTo(this.element,"before");this.element.setStyle({position:"absolute",zIndex:l.Options.zIndex++,top:d.y+this.ryDiff+"px",left:d.x+this.rxDiff+"px",width:f.x,height:f.y}).addClass(this.options.dragClass),this.options.moveOut&&this.element.insertTo(b.body),this.winScrolls=e(a).scrolls(),this.winSizes=e(a).size(),l.current=this.calcConstraints().fire("start",this,c),this.style=this.element._.style},dragProcess:function(b){var c=b.pageX,d=b.pageY,f=c-this.xDiff,g=d-this.yDiff;this.ranged&&(this.minX>f&&(f=this.minX),this.maxX<f&&(f=this.maxX),this.minY>g&&(g=this.minY),this.maxY<g&&(g=this.maxY));if(this.options.scroll){var h={x:this.winScrolls.x,y:this.winScrolls.y},i=this.options.scrollSensitivity;d-h.y<i?h.y=d-i:h.y+this.winSizes.y-d<i&&(h.y=d-this.winSizes.y+i),c-h.x<i?h.x=c-i:h.x+this.winSizes.x-c<i&&(h.x=c-this.winSizes.x+i),h.y<0&&(h.y=0),h.x<0&&(h.x=0),(h.y<this.winScrolls.y||h.y>this.winScrolls.y||h.x<this.winScrolls.x||h.x>this.winScrolls.x)&&e(a).scrollTo(this.winScrolls=h)}this.snapX&&(f=f-f%this.snapX),this.snapY&&(g=g-g%this.snapY),this.axisY||(this.style.left=f+this.rxDiff+"px"),this.axisX||(this.style.top=g+this.ryDiff+"px"),this.fire("drag",this,b)},dragStop:function(a){this.element.removeClass(this.options.dragClass),m.checkDrop(a,this),this.options.revert?this.revert():this._drag=!1,l.current=null,this.fire("stop",this,a)},swapBack:function(){this.clone&&this.clone.replace(this.element.setStyle({width:this.clone.getStyle("width"),height:this.clone.getStyle("height"),position:this.clone.getStyle("position"),zIndex:this.clone.getStyle("zIndex")||""})),this._drag=!1},calcConstraints:function(){var a=this.options.axis;this.axisX=d(["x","horizontal"]).include(a),this.axisY=d(["y","vertical"]).include(a),this.ranged=!1;var b=this.options.range;if(b){this.ranged=!0;var c=e(b);if(c instanceof j){var f=c.dimensions();b={x:[f.left,f.left+f.width],y:[f.top,f.top+f.height]}}if(h(b)){var g=this.element.size();b.x&&(this.minX=b.x[0],this.maxX=b.x[1]-g.x),b.y&&(this.minY=b.y[0],this.maxY=b.y[1]-g.y)}}return this}}),m=new g(k,{extend:{EVENTS:f("drop hover leave"),Options:{accept:"*",containment:null,overlap:null,overlapSize:.5,allowClass:"droppable-allow",denyClass:"droppable-deny",relName:"droppable"},rescan:l.rescan,checkHover:function(a,b){for(var c=0,d=this.active.length;c<d;c++)this.active[c].checkHover(a,b)},checkDrop:function(a,b){for(var c=0,d=this.active.length;c<d;c++)this.active[c].checkDrop(a,b)},active:[]},initialize:function(a,b){this.element=e(a),this.$super(b),m.active.push(this.element._droppable=this)},destroy:function(){m.active=m.active.without(this),delete this.element.droppable;return this},checkHover:function(a,b){this.hoveredBy(a,b)?this._hovered||(this._hovered=!0,this.element.addClass(this.options[this.allows(b)?"allowClass":"denyClass"]),this.fire("hover",b,this,a)):this._hovered&&(this._hovered=!1,this.reset().fire("leave",b,this,a))},checkDrop:function(a,b){this.reset(),this.hoveredBy(a,b)&&this.allows(b)&&(b.fire("drop",this,b,a),this.fire("drop",b,this,a))},reset:function(){this.element.removeClass(this.options.allowClass).removeClass(this.options.denyClass);return this},hoveredBy:function(a,b){var c=this.element.dimensions(),d=c.top,e=c.left,f=c.left+c.width,g=c.top+c.height,h=a.pageX,i=a.pageY;if(!this.options.overlap)return h>e&&h<f&&i>d&&i<g;var j=b.element.dimensions(),k=this.options.overlapSize,l=j.top,m=j.left,n=j.left+j.width,o=j.top+j.height;switch(this.options.overlap){case"x":case"horizontal":return(l>d&&l<g||o>d&&o<g)&&(m>e&&m<f-c.width*k||n<f&&n>e+c.width*k);case"y":case"vertical":return(m>e&&m<f||n>e&&n<f)&&(l>d&&l<g-c.height*k||o<g&&o>d+c.height*k);default:return(m>e&&m<f-c.width*k||n<f&&n>e+c.width*k)&&(l>d&&l<g-c.height*k||o<g&&o>d+c.height*k)}},allows:function(a){this.options.containment&&!this._scanned&&(this.options.containment=d(this.options.containment).map(e),this._scanned=!0);var b=this.options.containment?this.options.containment.includes(a.element):!0;return b&&(this.options.accept=="*"?!0:a.element.match(this.options.accept))}});e(b).on({ready:function(){l.rescan(),m.rescan()},mousemove:n,touchmove:n,mouseup:o,touchend:o}),j.include({makeDraggable:function(a){new l(this,a);return this},undoDraggable:function(){"draggable"in this&&this.draggable.destroy();return this},makeDroppable:function(a){new m(this,a);return this},undoDroppable:function(){"droppable"in this&&this.droppable.destroy();return this}}),a.Draggable=c.Draggable=l,a.Droppable=c.Droppable=m})(window,document,RightJS)
@@ -0,0 +1,96 @@
1
+ /**
2
+ * RightJS UI Internationalization: Romanian module
3
+ *
4
+ * Copyright (C) 2012 Andrei Tofan
5
+ */
6
+ RightJS.Object.each({
7
+
8
+ Calendar: {
9
+ Done: 'Gata',
10
+ Now: 'Acum',
11
+ NextMonth: 'Luna Urmãtoare',
12
+ PrevMonth: 'Luna Anterioarã',
13
+ NextYear: 'Anul Urmãtor',
14
+ PrevYear: 'Anul Anterior',
15
+
16
+ dayNames: 'Luni Marþi Miercuri Joi Vineri Sâmbãtã Duminicã'.split(' '),
17
+ dayNamesShort: 'Lu Ma Mi Jo Vi Sa Du'.split(' '),
18
+ dayNamesMin: 'L M M J V S D'.split(' '),
19
+ monthNames: 'Ianuarie Februarie Martie Aprilie Mai Iunie Iulie August Septembrie Octombrie Noiembrie Decembrie'.split(' '),
20
+ monthNamesShort: 'Ian Feb Mar Apr Mai Iun Iul Aug Sep Oct Nov Dec'.split(' ')
21
+ },
22
+
23
+ Lightbox: {
24
+ Close: 'Închide',
25
+ Prev: 'Imaginea Anterioarã',
26
+ Next: 'Imaginea Urmãtoare'
27
+ },
28
+
29
+ InEdit: {
30
+ Save: "Salveazã",
31
+ Cancel: "Anuleazã"
32
+ },
33
+
34
+ Colorpicker: {
35
+ Done: 'Gata'
36
+ },
37
+
38
+ Dialog: {
39
+ Ok: 'Bine',
40
+ Close: 'Închide',
41
+ Cancel: 'Anuleazã',
42
+ Help: 'Ajutor',
43
+ Expand: 'Afiseazã',
44
+ Collapse: 'Ascunde',
45
+
46
+ Alert: 'Atenþie!',
47
+ Confirm: 'Confirmã',
48
+ Prompt: 'Intrebare'
49
+ },
50
+
51
+ Rte: {
52
+ Clear: 'Goleºte',
53
+ Save: 'Salveazã',
54
+ Source: 'Sursã',
55
+ Bold: 'Îngroºat',
56
+ Italic: 'Înclinat',
57
+ Underline: 'Subliniat',
58
+ Strike: 'Tãiat',
59
+ Ttext: 'Evidenþiazã',
60
+ Header: 'Titlu',
61
+ Cut: 'Decupeazã',
62
+ Copy: 'Copiazã',
63
+ Paste: 'Lipeste',
64
+ Pastetext: 'Lipeste Text',
65
+ Left: 'Stânga',
66
+ Center: 'Centru',
67
+ Right: 'Dreapta',
68
+ Justify: 'In mod egal',
69
+ Undo: 'Pas Inapoi',
70
+ Redo: 'Pas Inainte',
71
+ Code: 'Cod',
72
+ Quote: 'Citat',
73
+ Link: 'Adaugã Legaturã',
74
+ Image: 'Adaugã Imagine',
75
+ Video: 'Adaugã Videoclip',
76
+ Dotlist: 'Lista neordonatã',
77
+ Numlist: 'Lista ordonatã',
78
+ Indent: 'Adaugã margine',
79
+ Outdent: 'Scade marginea',
80
+ Forecolor: 'Culoare text',
81
+ Backcolor: 'Culoare fundal',
82
+ Select: 'Selecteazã',
83
+ Remove: 'ªterge',
84
+ Format: 'Formateazã',
85
+ Fontname: 'Nume Font',
86
+ Fontsize: 'Mãrime Font',
87
+ Subscript: 'Indice',
88
+ Superscript: 'Exponent',
89
+ UrlAddress: 'Adresa URL'
90
+ }
91
+
92
+ }, function(module, i18n) {
93
+ if (self[module]) {
94
+ RightJS.$ext(self[module].i18n, i18n);
95
+ }
96
+ });
@@ -10,7 +10,9 @@
10
10
  *
11
11
  * Copyright (C) 2010-2011 Nikolay Nemshilov
12
12
  */
13
- var rjs_$ = RightJS.$,
13
+ var _jQuery = window.jQuery,
14
+ _$ = window.$,
15
+ rjs_$ = RightJS.$,
14
16
  $$ = RightJS.$$,
15
17
  $E = RightJS.$E,
16
18
  $A = RightJS.$A,
@@ -145,6 +147,18 @@ $ext($, {
145
147
 
146
148
  noop: function() {
147
149
  return RightJS(function() {});
150
+ },
151
+
152
+ noConflict: function( deep ) {
153
+ if ( window.$ === jQuery ) {
154
+ window.$ = _$;
155
+ }
156
+
157
+ if ( deep && window.jQuery === jQuery ) {
158
+ window.jQuery = _jQuery;
159
+ }
160
+
161
+ return $;
148
162
  }
149
163
 
150
164
  });
@@ -4,4 +4,4 @@
4
4
  *
5
5
  * Copyright (C) 2009-2011 Nikolay Nemshilov
6
6
  */
7
- (function(a){function l(a,b,c,d){typeof b==="function"&&(d=c,c=b,b=undefined);return{url:a,data:b,success:c,dataType:d}}function k(a,b){return j.ajax(f(l.apply(this,b),a))}var b=a.$,c=a.$$,d=a.$E,e=a.$A,f=a.$ext,g=a.Xhr,h=a.Browser,i=a.Object;a.jQuerysh={version:"2.2.1",collectionMethods:{live:function(a,b){this.cssRule.on(a,b);return this},die:function(a,b){this.cssRule.stopObserving(a,b);return this}}};var j=function(e){switch(typeof e){case"string":var g=e[0],h=e.substr(1);if(g==="#"&&/^[\w\-]+$/.test(h))return b(h);if(g==="<")return d("div",{html:e}).first();g=c(e),g.cssRule=a(e);return f(g,a.jQuerysh.collectionMethods);case"function":return b(document).onReady(e);default:return b(e)}};f(j,{browser:{webkit:h.WebKit,opera:h.Opera,msie:h.IE,mozilla:h.Gecko},isFunction:function(b){return a.isFunction(b)},isArray:function(b){return a.isArray(b)},isPlainObject:function(b){return a.isHash(b)},isEmptyObject:function(a){return i.empty(a)},globalEval:function(b){return a.$eval(b)},makeArray:function(a){return e(a)},each:function(a,b){return e(a,function(a,c){b(c,a)})},map:function(a){return e(value).map(a)},unique:function(a){return e(a).uniq()},merge:function(a,b){return e(a).merge(b)},extend:function(){return i.merge.apply(i,arguments)},proxy:function(b,c){return a(b).bind(c)},noop:function(){return a(function(){})}}),a.Element.include({appendTo:function(a){return this.insertTo(a)},prepend:function(a){return this.insert(a,"top")},before:function(a){return this.insert(a,"before")},after:function(a){return this.insert(a,"after")},insertBefore:function(a){return this.insertTo(a,"before")},attr:function(a,b){return b===undefined?this.get(a):this.set(a,b)},css:function(a,b){return typeof a==="string"&&b===undefined?this.getStyle(a):this.setStyle(a,b)},offset:function(){var a=this.position();return{left:a.x,top:a.y}},width:function(){return this.size().x},height:function(){return this.size().y},scrollLeft:function(){return this.scrolls().x},scrollTop:function(){return this.scrolls().y},bind:function(){return this.on.apply(this,arguments)},unbind:function(){return this.stopObserving.apply(this,arguments)},trigger:function(a,b){return this.fire(a,b)},animate:function(a,b,c){return this.morph(a,{duration:b,onFinish:c})},fadeIn:function(){return this.fade("in")},fadeOut:function(){return this.fade("out")},slideDown:function(){return this.slide("in")},slideUp:function(){return this.slide("out")}}),f(j,{param:function(a){return i.toQueryString(a)},ajax:function(a,b){function d(a,c){a(b.dataType==="json"?c.json:c.text,c.successful()?"success":"error",c)}b=b||{},typeof a==="string"?b.url=a:b=a;var c={};b.success&&(c.onSuccess=function(){d(b.success,this)}),b.error&&(c.onFailure=function(){d(b.error,this)}),b.complete&&(c.onComplete=function(){d(b.complete,this)}),c.method=b.type,b.headers&&(c.headers=b.headers),b.jsonp&&(c.jsonp=b.jsonp),b.url.indexOf("callback=?")>0&&(c.jsonp=!0,b.url=b.url.replace(/(\?|\&)callback=\?/,""));return(new g(b.url,c)).send(b.data)},get:function(){return k({type:"get"},arguments)},post:function(a,b,c,d){return k({type:"post"},arguments)},getJSON:function(a,b,c){return k({dataType:"json"},arguments)},getScript:function(a,b){return k({dataType:"script"},arguments)}}),g.include({success:function(a){return this.on("success",a)},error:function(a){return this.on("failure",a)},complete:function(a){return this.on("complete",a)}}),window.$=window.jQuery=j})(RightJS)
7
+ (function(a){function n(a,b,c,d){typeof b==="function"&&(d=c,c=b,b=undefined);return{url:a,data:b,success:c,dataType:d}}function m(a,b){return l.ajax(h(n.apply(this,b),a))}var b=window.jQuery,c=window.$,d=a.$,e=a.$$,f=a.$E,g=a.$A,h=a.$ext,i=a.Xhr,j=a.Browser,k=a.Object;a.jQuerysh={version:"2.2.1",collectionMethods:{live:function(a,b){this.cssRule.on(a,b);return this},die:function(a,b){this.cssRule.stopObserving(a,b);return this}}};var l=function(b){switch(typeof b){case"string":var c=b[0],g=b.substr(1);if(c==="#"&&/^[\w\-]+$/.test(g))return d(g);if(c==="<")return f("div",{html:b}).first();c=e(b),c.cssRule=a(b);return h(c,a.jQuerysh.collectionMethods);case"function":return d(document).onReady(b);default:return d(b)}};h(l,{browser:{webkit:j.WebKit,opera:j.Opera,msie:j.IE,mozilla:j.Gecko},isFunction:function(b){return a.isFunction(b)},isArray:function(b){return a.isArray(b)},isPlainObject:function(b){return a.isHash(b)},isEmptyObject:function(a){return k.empty(a)},globalEval:function(b){return a.$eval(b)},makeArray:function(a){return g(a)},each:function(a,b){return g(a,function(a,c){b(c,a)})},map:function(a){return g(value).map(a)},unique:function(a){return g(a).uniq()},merge:function(a,b){return g(a).merge(b)},extend:function(){return k.merge.apply(k,arguments)},proxy:function(b,c){return a(b).bind(c)},noop:function(){return a(function(){})},noConflict:function(a){window.$===jQuery&&(window.$=c),a&&window.jQuery===jQuery&&(window.jQuery=b);return l}}),a.Element.include({appendTo:function(a){return this.insertTo(a)},prepend:function(a){return this.insert(a,"top")},before:function(a){return this.insert(a,"before")},after:function(a){return this.insert(a,"after")},insertBefore:function(a){return this.insertTo(a,"before")},attr:function(a,b){return b===undefined?this.get(a):this.set(a,b)},css:function(a,b){return typeof a==="string"&&b===undefined?this.getStyle(a):this.setStyle(a,b)},offset:function(){var a=this.position();return{left:a.x,top:a.y}},width:function(){return this.size().x},height:function(){return this.size().y},scrollLeft:function(){return this.scrolls().x},scrollTop:function(){return this.scrolls().y},bind:function(){return this.on.apply(this,arguments)},unbind:function(){return this.stopObserving.apply(this,arguments)},trigger:function(a,b){return this.fire(a,b)},animate:function(a,b,c){return this.morph(a,{duration:b,onFinish:c})},fadeIn:function(){return this.fade("in")},fadeOut:function(){return this.fade("out")},slideDown:function(){return this.slide("in")},slideUp:function(){return this.slide("out")}}),h(l,{param:function(a){return k.toQueryString(a)},ajax:function(a,b){function d(a,c){a(b.dataType==="json"?c.json:c.text,c.successful()?"success":"error",c)}b=b||{},typeof a==="string"?b.url=a:b=a;var c={};b.success&&(c.onSuccess=function(){d(b.success,this)}),b.error&&(c.onFailure=function(){d(b.error,this)}),b.complete&&(c.onComplete=function(){d(b.complete,this)}),c.method=b.type,b.headers&&(c.headers=b.headers),b.jsonp&&(c.jsonp=b.jsonp),b.url.indexOf("callback=?")>0&&(c.jsonp=!0,b.url=b.url.replace(/(\?|\&)callback=\?/,""));return(new i(b.url,c)).send(b.data)},get:function(){return m({type:"get"},arguments)},post:function(a,b,c,d){return m({type:"post"},arguments)},getJSON:function(a,b,c){return m({dataType:"json"},arguments)},getScript:function(a,b){return m({dataType:"script"},arguments)}}),i.include({success:function(a){return this.on("success",a)},error:function(a){return this.on("failure",a)},complete:function(a){return this.on("complete",a)}}),window.$=window.jQuery=l})(RightJS)
metadata CHANGED
@@ -1,25 +1,33 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: right-rails
3
- version: !ruby/object:Gem::Version
4
- version: 1.3.1
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ hash: 31
5
+ prerelease: false
6
+ segments:
7
+ - 1
8
+ - 3
9
+ - 2
10
+ version: 1.3.2
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Nikolay Nemshilov
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-01-20 00:00:00.000000000 Z
17
+
18
+ date: 2012-03-16 00:00:00 +04:00
19
+ default_executable:
13
20
  dependencies: []
14
- description: RightRails is a RubyOnRails plugin for the RightJS JavaScript framework.
15
- It has transparent Prototype helpers replacement, a new RJS generator, the most
16
- common ajax operations interface and RightJS own features support like remote files
17
- uploading handler, UI, plugins, etc.
21
+
22
+ description: RightRails is a RubyOnRails plugin for the RightJS JavaScript framework. It has transparent Prototype helpers replacement, a new RJS generator, the most common ajax operations interface and RightJS own features support like remote files uploading handler, UI, plugins, etc.
18
23
  email: nemshilov@gmail.com
19
24
  executables: []
25
+
20
26
  extensions: []
27
+
21
28
  extra_rdoc_files: []
22
- files:
29
+
30
+ files:
23
31
  - vendor/assets/images/rightjs-ui/colorpicker.png
24
32
  - vendor/assets/images/rightjs-ui/resizable.png
25
33
  - vendor/assets/images/rightjs-ui/rte.png
@@ -50,6 +58,7 @@ files:
50
58
  - vendor/assets/javascripts/right/i18n/lt.js
51
59
  - vendor/assets/javascripts/right/i18n/nl.js
52
60
  - vendor/assets/javascripts/right/i18n/pt-br.js
61
+ - vendor/assets/javascripts/right/i18n/ro.js
53
62
  - vendor/assets/javascripts/right/i18n/ru.js
54
63
  - vendor/assets/javascripts/right/i18n/ua.js
55
64
  - vendor/assets/javascripts/right/i18n/zh-cn.js
@@ -123,28 +132,39 @@ files:
123
132
  - MIT-LICENSE
124
133
  - Rakefile
125
134
  - init.rb
135
+ has_rdoc: true
126
136
  homepage: http://github.com/MadRabbit/right-rails
127
137
  licenses: []
138
+
128
139
  post_install_message:
129
140
  rdoc_options: []
130
- require_paths:
141
+
142
+ require_paths:
131
143
  - lib
132
- required_ruby_version: !ruby/object:Gem::Requirement
144
+ required_ruby_version: !ruby/object:Gem::Requirement
133
145
  none: false
134
- requirements:
135
- - - ! '>='
136
- - !ruby/object:Gem::Version
137
- version: '0'
138
- required_rubygems_version: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ hash: 3
150
+ segments:
151
+ - 0
152
+ version: "0"
153
+ required_rubygems_version: !ruby/object:Gem::Requirement
139
154
  none: false
140
- requirements:
141
- - - ! '>='
142
- - !ruby/object:Gem::Version
143
- version: '0'
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ hash: 3
159
+ segments:
160
+ - 0
161
+ version: "0"
144
162
  requirements: []
163
+
145
164
  rubyforge_project:
146
- rubygems_version: 1.8.10
165
+ rubygems_version: 1.3.7
147
166
  signing_key:
148
167
  specification_version: 3
149
168
  summary: RightJS plugin for Rails
150
169
  test_files: []
170
+