Widget:CJP4: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script> | <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script> | ||
<script type"text/javascript"> | <script type"text/javascript"> | ||
$(document).ready(loadResources); | $(document).ready(loadResources); | ||
function loadResources() { | function loadResources() { | ||
jQuery.browser = {}; | |||
(function () { | |||
jQuery.browser.msie = false; | |||
jQuery.browser.version = 0; | |||
if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) { | |||
jQuery.browser.msie = true; | |||
jQuery.browser.version = RegExp.$1; | |||
} | |||
})(); | |||
// mw.loader.load('mediaWiki.user'); | // mw.loader.load('mediaWiki.user'); | ||
$('#search').click(runQuery); | $('#search').click(runQuery); |