User:Kiteretsu/DiscussionCloser.js: Difference between revisions
From Test Wiki
m Aviram7 moved page MediaWiki:Gadget-DiscussionCloser.js to User:Aviram7/DiscussionCloser.js without leaving a redirect: revert |
+ |
||
Line 61: | Line 61: | ||
if ((($('#ca-addsection').length > 0) || | if ((($('#ca-addsection').length > 0) || | ||
(mw.config.get('wgPageName') == 'Test Wiki:Community portal') || | (mw.config.get('wgPageName') == 'Test Wiki:Community portal') || | ||
(mw.config.get('wgPageName') == 'Test Wiki: | (mw.config.get('wgPageName') == 'Test Wiki:Request for permissions')) && | ||
(mw.config.get('wgAction') == 'view')) { | (mw.config.get('wgAction') == 'view')) { | ||
dc_run(); | dc_run(); | ||
Line 284: | Line 284: | ||
$('#DC-close').click(function() { | $('#DC-close').click(function() { | ||
$('#DC-modal').remove(); | $('#DC-modal').remove(); | ||
window.location.href = 'https:// | window.location.href = 'https://testwiki. wiki/wiki/'+mw.config.get('wgPageName')+'#'+sectiontitle2; | ||
window.location.reload(); | window.location.reload(); | ||
}); | }); |