|
329 | 329 | boundy = $img.height(), |
330 | 330 |
|
331 | 331 |
|
332 | | - $div = $('<div />').width(boundx).height(boundy).addClass(cssClass('holder')).css({ |
| 332 | + $div = $('<div></div>').width(boundx).height(boundy).addClass(cssClass('holder')).css({ |
333 | 333 | position: 'relative', |
334 | 334 | backgroundColor: options.bgColor |
335 | 335 | }).insertAfter($origimg).append($img); |
|
338 | 338 | $div.addClass(options.addClass); |
339 | 339 | } |
340 | 340 |
|
341 | | - var $img2 = $('<div />'), |
| 341 | + var $img2 = $('<div></div>'), |
342 | 342 |
|
343 | | - $img_holder = $('<div />') |
| 343 | + $img_holder = $('<div></div>') |
344 | 344 | .width('100%').height('100%').css({ |
345 | 345 | zIndex: 310, |
346 | 346 | position: 'absolute', |
347 | 347 | overflow: 'hidden' |
348 | 348 | }), |
349 | 349 |
|
350 | | - $hdl_holder = $('<div />') |
| 350 | + $hdl_holder = $('<div></div>') |
351 | 351 | .width('100%').height('100%').css('zIndex', 320), |
352 | 352 |
|
353 | | - $sel = $('<div />') |
| 353 | + $sel = $('<div></div>') |
354 | 354 | .css({ |
355 | 355 | position: 'absolute', |
356 | 356 | zIndex: 600 |
|
737 | 737 | // Shade Module {{{ |
738 | 738 | var Shade = (function() { |
739 | 739 | var enabled = false, |
740 | | - holder = $('<div />').css({ |
| 740 | + holder = $('<div></div>').css({ |
741 | 741 | position: 'absolute', |
742 | 742 | zIndex: 240, |
743 | 743 | opacity: 0 |
|
779 | 779 | }); |
780 | 780 | } |
781 | 781 | function createShade() { |
782 | | - return $('<div />').css({ |
| 782 | + return $('<div></div>').css({ |
783 | 783 | position: 'absolute', |
784 | 784 | backgroundColor: options.shadeColor||options.bgColor |
785 | 785 | }).appendTo(holder); |
|
863 | 863 | // Private Methods |
864 | 864 | function insertBorder(type) //{{{ |
865 | 865 | { |
866 | | - var jq = $('<div />').css({ |
| 866 | + var jq = $('<div></div>').css({ |
867 | 867 | position: 'absolute', |
868 | 868 | opacity: options.borderOpacity |
869 | 869 | }).addClass(cssClass(type)); |
|
873 | 873 | //}}} |
874 | 874 | function dragDiv(ord, zi) //{{{ |
875 | 875 | { |
876 | | - var jq = $('<div />').mousedown(createDragger(ord)).css({ |
| 876 | + var jq = $('<div></div>').mousedown(createDragger(ord)).css({ |
877 | 877 | cursor: ord + '-resize', |
878 | 878 | position: 'absolute', |
879 | 879 | zIndex: zi |
|
1226 | 1226 | width: '12px' |
1227 | 1227 | }).addClass('jcrop-keymgr'), |
1228 | 1228 |
|
1229 | | - $keywrap = $('<div />').css({ |
| 1229 | + $keywrap = $('<div></div>').css({ |
1230 | 1230 | position: 'absolute', |
1231 | 1231 | overflow: 'hidden' |
1232 | 1232 | }).append($keymgr); |
|
0 commit comments