User:Jorgenev/scripts/inlineedit.js

/* function getSelText {    var txt = ''; if (document.getSelection) {        txt = document.getSelection; }   return txt; } var nNd; var content = false;

document.onmouseup=function(e) {  if(!content) { nNd = document.createElement("span"); var w = getSelText.getRangeAt(0); w.surroundContents(nNd); nNd.innerHTML = ''; content=true; } }

function one(e) {     if(e.keyCode==13) {    //alert(e.keyCode); //alert(nNd.innerHTML.replace("input","")); var jobValue = document.getElementByName('input54').value; nNd.innerHTML = jobValue; } }

addOnloadHook(function {

});