MediaWiki:Wikiminiatlas.js: Difference between revisions
m (Per mw:Manual:Coding_conventions/JavaScript#Creating_elements - also fixes false positive on Category:Pages using invalid self-closed HTML tags) |
(Maintenance: mw:RL/MGU / mw:RL/JD - phab:T169385 - deprecated in jQuery 3.0) |
||
Line 699: | Line 699: | ||
$('body') | $('body') | ||
. | .on('mouseup.wmaresize', function(e) { | ||
$('body').unbind('mousemove.wmaresize'); | $('body').unbind('mousemove.wmaresize'); | ||
$('body').unbind('mouseup.wmaresize'); | $('body').unbind('mouseup.wmaresize'); | ||
Line 705: | Line 705: | ||
wi.resizehelper.hide(); | wi.resizehelper.hide(); | ||
} ) | } ) | ||
. | .on('mousemove.wmaresize', function(e) { | ||
wc.width -= dir*(e.pageX-lastx); | wc.width -= dir*(e.pageX-lastx); | ||
wc.height += (e.pageY-lasty); | wc.height += (e.pageY-lasty); | ||
Line 721: | Line 721: | ||
})(); | })(); | ||
$(window). | $(window).on('message', messageHub); | ||
// Fire event for other code to extend or integrate with WMA | // Fire event for other code to extend or integrate with WMA |