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

உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
No edit summary
No edit summary
வரிசை 23:
 
$(function () {
if(mw.config.values.wgCanonicalNamespace != "Page"){ return; }
// Get current pagename
வரிசை 30:
// Create Main Div
var div = document.createElement('div');
div.style ='position: fixed; right:30px; top:170px;left:860px; display:block;';
div.style.zIndex = "2147483647"; // A hack to show div allmost top
div.id = 'iconForEditor';
 
function createIcon(imageSrc, imgTooltip) {
வரிசை 79:
$(div).append(elements.editIcon, elements.goLeftIcon, elements.goRightIcon);
} else {
$('#wpQuality-container > span').each(function(i, obj) { $(div).append('<p></p>').append($(obj).clone()) });
$(div).find('input').each(function(i, obj) {
$(this).attr('name', 'newName');
$(obj).on('click', function () {
$('#wpQuality-container').find('input')[i].click();
$(div).find('input')[i].click();
$('#wpQuality-container > span')[i].click();
event.stopImmediatePropagation();
});
});
// Edit mode
var surukam = $("<input type=\"text\" class=\"surukamclass\" id=\"surukam\"/>");
$(surukam).change(function() { $('#wpSummary').val($(this).val()); });
$('#wpSummary').val($(this).val());
});
$(div).append(elements.saveIcon, surukam, elements.previewIcon, elements.goTopIcon, elements.quickSaveIcon);
}
// Append the main div
$('#mw-content-text').after( div );
//Trigger QuickSave in Floating button
$(elements.quickSaveIcon).on('click', function () {
$("#Quicksave").click();
});
 
// Append the main div
$('#mw-content-text').after( div );
 
// Trigger for Edit Button
வரி 112 ⟶ 110:
var params = {title: pageName, action: 'edit'};
location.replace( mw.config.get( 'wgScript' ) + '?' + $.param( params ) );
} );
 
// Trigger for Save Button
$(elements.saveIcon).on('click', function () {
$('#editform').submit();
} );
 
// Trigger for Preview Button
$(elements.previewIcon).on('click', function () {
$('#wpPreview').click();
} );
 
// Trigger for previous page
வரி 129 ⟶ 127:
if(url.length > 0)
window.location.href = url;
} );
// Trigger for next page
$(elements.goRightIcon).on('click', function () {
"https://ta.wikisource.org/wiki/பயனர்:Rtssathishkumar/Floatingbuttonextra.js" இலிருந்து மீள்விக்கப்பட்டது