User:Mono: Difference between revisions
Content deleted Content added
No edit summary |
hmm |
||
Line 19: | Line 19: | ||
}); |
}); |
||
}); |
}); |
||
</script> |
|||
<a href="#" id="e">Test</a> |
<a href="#" id="e">Test</a> |
||
</html> |
Revision as of 23:27, 27 December 2012
<html><script> mw.loader.using(['jquery.ui.dialog'], function () { $( 'a' ).click( function( e ) { $( '#dialog' ).dialog({ resizable: false, buttons: { "Leave Feedback Now": function() { $( this ).dialog( window.location.href = 'https://meta.wikimedia.org/w/index.php?title=Foundation_wiki_feedback&action=edit§ion=new&preloadtitle=wikimediafoundation.org' ); }, "Close": function() { $( this ).dialog( "close" ); } } }); e.preventDefault(); }); }); </script> <a href="#" id="e">Test</a> </html>