பயனர்:Rtssathishkumar/Floatingbuttonextra.js: திருத்தங்களுக்கு இடையிலான வேறுபாடு

உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
No edit summary
No edit summary
 
வரிசை 140:
window.location.href = url;
});
//#########Sadudhi Button support changes
if(mw.config.values.wgCanonicalNamespace==="Page"){
if ( $.inArray( mw.config.get( 'wgAction' ), [ 'edit', 'submit' ] ) != -1 ) {
newbutton = $("#wpSaveWidget").clone();
newbutton.children().prop('id', 'Quicksave','name', 'IFsave');
newbutton.children().val("சடுதியில் பதிப்பி");
$("#wpSaveWidget").after(newbutton)
}
}
$("#Quicksave").click(function(e) {
$.cookie('chaduthi_flag',"true", { path: '/' });
console.log('Saduthi clicked ' + $.cookie('chaduthi_flag'));
});
 
var chaduthi = $.cookie('chaduthi_flag');
console.info('Saduthi during load ' + $.cookie('chaduthi_flag'));
if(chaduthi === "true"){
$.cookie('chaduthi_flag', "false", { path: '/' });
var viewurl = $('#ca-proofreadPageNextLink').find('a').attr('href');
console.log('Next Link ' + viewurl);
if(viewurl.length > 0){
viewurl = viewurl.replace("/wiki/","/w/index.php?title=")+"&action=edit";
console.log('Final Redirect URL ' + viewurl);
window.open(viewurl,"_self");
}
}
});
"https://ta.wikisource.org/wiki/பயனர்:Rtssathishkumar/Floatingbuttonextra.js" இலிருந்து மீள்விக்கப்பட்டது