Widget:CJP2: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$( | function ensureLoggedIn() { | ||
mw.loader.load('mediaWiki.user'); | |||
if ($.isEmptyObject(wgUserName)) { | |||
alert("Please Log In To Continue."); | |||
window.location.replace("http://wikidoc.org/index.php?title=Special:UserLogin&returnto=User%3AMatt+Pijoan"); | |||
} else { | |||
curriculumType(); | |||
} | |||
} | |||
functionm searchPillDB() { | |||
var api = new mw.Api(); | var api = new mw.Api(); | ||
api.get({ | api.get({ | ||
Line 61: | Line 70: | ||
}); | }); | ||
}); | }); | ||
}); | }; | ||
$(document).ready(ensureLoggedIn); | |||
</script> | </script> | ||
<div id="resultsTable-container"> | <div id="resultsTable-container"> |