User:Purodha/common.js

From translatewiki.net
Jump to: navigation, search
var editForm = document.getElementById('Standard');
if(editForm != null) {
   editForm.setAttribute("style","display:none");
}

editForm = document.getElementById('mw-editTools');
if(editForm != null) {
   editForm.setAttribute("style","display:block");
}

editForm = document.getElementById('specialcharss');
if(editForm != null) {
   editForm.setAttribute("style","display:block");
}
/*
    var element = document.createElement("input");
        element.setAttribute("type","checkbox");
        element.setAttribute("id","deedd");
    editform.insertBefore(element);
    insertBefore(txt,document.getElementById('myDiv').firstChild);
}


/*
editform.
/*
if ( window.mediaWiki ) {
   var txt = document.createTextNode(" <a onclick="insertTags('á','','');return false" href="#">á</a>");
   document.getElementById('Standard').appendChild(txt);
}

/*
if ( window.mediaWiki ) {
   if ( ( mw.config.get( 'wgAction' ) == 'edit' ) ||
        ( mw.config.get( 'wgCanonicalSpecialPageName' ) == "Upload" ) ||
        ( mw.config.get( 'wgAction' ) == "submit" ) ) {
      importScript('User:Purodha/edit.js');
   }
}
*/