* 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
arguments[1] || {}\r
);\r
\r
- this.element = $(element);\r
+ this.element = $PR(element);\r
\r
this.handle = this.element;\r
\r
*\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
* @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
*/\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
*/\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
* 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