task_oid = obj.parentNode.children[0].children[0].value;
var input = $('<input>');
-<protect>
input.val(obj.innerHTML.replace('>', '>').replace('<', '<').replace('&', '&'));
-</protect>
input.css('fontSize', '100%').css('width', '100%').css('background', 'yellow');
obj.innerHTML = '';
$(obj).append(input);
if (!task_parent) return;
if (task_parent.children[0].value != task_title)
- ajax_request('save','oid='+task_oid+'&task='+encodeURIComponent(task_parent.children[0].value));
+ $.invoke('Sales/Text', {id: task_oid, text: task_parent.children[0].value});
task_parent.innerHTML = task_parent.children[0].value;
task_parent = null;