]> git.mxchange.org Git - friendica.git/blobdiff - library/cropper/tests/example-CSS-Float.htm
eliminate Cropper conflicts with jQuery
[friendica.git] / library / cropper / tests / example-CSS-Float.htm
index 5066553fef9e9b3440f54adfb05ca9349eef98ab..3dbeeab4b17542462630a677b02c8be550b66970 100644 (file)
                \r
                // setup the callback function\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
                // float example\r
                                        'testFloatImage',\r
                                        { \r
                                                onEndCrop: function( coords, dimensions ) {\r
-                                                       $( 'floatX1' ).value = coords.x1;\r
-                                                       $( 'floatY1' ).value = coords.y1;\r
-                                                       $( 'floatX2' ).value = coords.x2;\r
-                                                       $( 'floatY2' ).value = coords.y2;\r
-                                                       $( 'floatWidth' ).value = dimensions.width;\r
-                                                       $( 'floatHeight' ).value = dimensions.height;\r
+                                                       $PR( 'floatX1' ).value = coords.x1;\r
+                                                       $PR( 'floatY1' ).value = coords.y1;\r
+                                                       $PR( 'floatX2' ).value = coords.x2;\r
+                                                       $PR( 'floatY2' ).value = coords.y2;\r
+                                                       $PR( 'floatWidth' ).value = dimensions.width;\r
+                                                       $PR( 'floatHeight' ).value = dimensions.height;\r
                                                }\r
                                        }\r
                                );\r