]> git.mxchange.org Git - friendica.git/blobdiff - library/cropper/cropper.uncompressed.js
Remove library/tiptip
[friendica.git] / library / cropper / cropper.uncompressed.js
index 66185546e218ddcb0cccac772e6a81422b0bb3dc..0ea0b803d08b2971b390db6ac578bb4298c5817b 100644 (file)
  * http://www.opensource.org/licenses/bsd-license.php\r
  * \r
  * See scriptaculous.js for full scriptaculous licence\r
+ *\r
+ * Modified 2013/06/01 Zach P to change $() to $PR() for eliminating conflicts with jQuery\r
  */\r
  \r
 /**\r
@@ -134,7 +136,7 @@ Object.extend( Object.extend( CropDraggable.prototype, Draggable.prototype), {
                        arguments[1] || {}\r
                );\r
 \r
-               this.element = $(element);\r
+               this.element = $PR(element);\r
 \r
                this.handle = this.element;\r
 \r
@@ -212,12 +214,12 @@ Object.extend( Object.extend( CropDraggable.prototype, Draggable.prototype), {
  *\r
  *             Example:\r
  *                     function onEndCrop( coords, dimensions ) {\r
- *                             $( 'x1' ).value         = coords.x1;\r
- *                             $( 'y1' ).value         = coords.y1;\r
- *                             $( 'x2' ).value         = coords.x2;\r
- *                             $( 'y2' ).value         = coords.y2;\r
- *                             $( 'width' ).value      = dimensions.width;\r
- *                             $( 'height' ).value     = dimensions.height;\r
+ *                             $PR( 'x1' ).value       = coords.x1;\r
+ *                             $PR( 'y1' ).value       = coords.y1;\r
+ *                             $PR( 'x2' ).value       = coords.x2;\r
+ *                             $PR( 'y2' ).value       = coords.y2;\r
+ *                             $PR( 'width' ).value    = dimensions.width;\r
+ *                             $PR( 'height' ).value   = dimensions.height;\r
  *                     }\r
  * \r
  */\r
@@ -288,7 +290,7 @@ Cropper.Img.prototype = {
                 * @var obj\r
                 * The img node to attach to\r
                 */\r
-               this.img                        = $( element );\r
+               this.img                        = $PR( element );\r
                /**\r
                 * @var obj\r
                 * The x & y coordinates of the click point\r
@@ -524,7 +526,7 @@ Cropper.Img.prototype = {
         */\r
        registerHandles: function( registration ) {     \r
                for( var i = 0; i < this.handles.length; i++ ) {\r
-                       var handle = $( this.handles[i] );\r
+                       var handle = $PR( this.handles[i] );\r
                        \r
                        if( registration ) {\r
                                var hideHandle  = false;        // whether to hide the handle\r
@@ -569,16 +571,16 @@ Cropper.Img.prototype = {
                 */\r
                this.imgH = this.img.height;                    \r
 \r
-               $( this.north ).setStyle( { height: 0 } );\r
-               $( this.east ).setStyle( { width: 0, height: 0 } );\r
-               $( this.south ).setStyle( { height: 0 } );\r
-               $( this.west ).setStyle( { width: 0, height: 0 } );\r
+               $PR( this.north ).setStyle( { height: 0 } );\r
+               $PR( this.east ).setStyle( { width: 0, height: 0 } );\r
+               $PR( this.south ).setStyle( { height: 0 } );\r
+               $PR( this.west ).setStyle( { width: 0, height: 0 } );\r
                \r
                // resize the container to fit the image\r
-               $( this.imgWrap ).setStyle( { 'width': this.imgW + 'px', 'height': this.imgH + 'px' } );\r
+               $PR( this.imgWrap ).setStyle( { 'width': this.imgW + 'px', 'height': this.imgH + 'px' } );\r
                \r
                // hide the select area\r
-               $( this.selArea ).hide();\r
+               $PR( this.selArea ).hide();\r
                                                \r
                // setup the starting position of the select area\r
                var startCoords = { x1: 0, y1: 0, x2: 0, y2: 0 };\r
@@ -1263,7 +1265,7 @@ Object.extend( Object.extend( Cropper.ImgWithPreview.prototype, Cropper.Img.prot
                         * The preview image wrapper element\r
                         * @var obj HTML element\r
                         */\r
-                       this.previewWrap        = $( this.options.previewWrap );\r
+                       this.previewWrap        = $PR( this.options.previewWrap );\r
                        /**\r
                         * The preview image element\r
                         * @var obj HTML IMG element\r