User:Shoodho/common.js

var editlink = document.getElementById("ca-ve-edit"); function editlinkcliked(evt) { //creating button and appending it to the #p-views DOM, at which it will enable the save button after the click of "edit" link $('#p-views').append(''); //the save button is hiden from the screen by the following line of code $( '#oo-ui-buttonElement-button' ).hide;

} function savecahnges {	//after the click of the appended buton the save button will be shown again on the screen by the following line of code $("oo-ui-buttonElement-button").disabled = true; }

editlink.addEventListener("click", editlinkcliked, false);