Line 154: |
Line 154: |
| }) | | }) |
| .attr({width: $img.width(), height: $img.height()}) | | .attr({width: $img.width(), height: $img.height()}) |
− | .appendTo(divImeContainer) | + | .appendTo(divImeContainer); |
| context = jcanvas[0].getContext("2d"); | | context = jcanvas[0].getContext("2d"); |
| $.extend(context, { | | $.extend(context, { |
Line 164: |
Line 164: |
| context.scale(ime_scale, ime_scale); | | context.scale(ime_scale, ime_scale); |
| jcanvas.mousedown(onmousedown); | | jcanvas.mousedown(onmousedown); |
− | jcanvas.click(function(e){e.preventDefault();e.stopPropagation();}) | + | jcanvas.click(function(e){e.preventDefault();e.stopPropagation();}); |
| jcanvas[0].oncontextmenu = img.oncontextmenu = function(e){e.preventDefault();e.stopPropagation();}; | | jcanvas[0].oncontextmenu = img.oncontextmenu = function(e){e.preventDefault();e.stopPropagation();}; |
| | | |
Line 204: |
Line 204: |
| | | |
| // Otherwise use the function defined by MediaWiki | | // Otherwise use the function defined by MediaWiki |
− | return getElementsByClassName(document,'*',className) | + | return getElementsByClassName(document,'*',className); |
| } | | } |
| | | |
Line 223: |
Line 223: |
| 'padding' : '1ex' | | 'padding' : '1ex' |
| }) | | }) |
− | .text(message) | + | .text(message); |
| | | |
| if (jqIme !== 0) { | | if (jqIme !== 0) { |
Line 470: |
Line 470: |
| var x = $('#ime_areaCircleX'), | | var x = $('#ime_areaCircleX'), |
| y = $('#ime_areaCircleY'), | | y = $('#ime_areaCircleY'), |
− | radius = $('#ime_areaCircleRadius') | + | radius = $('#ime_areaCircleRadius'); |
| | | |
| x.val(coords && coords[0] || ''); | | x.val(coords && coords[0] || ''); |