remove debug
This commit is contained in:
@@ -41,9 +41,6 @@ function setProjects(asProjects) {
|
||||
var sElemId = 'proj_'+oProject.id;
|
||||
var $Project = ($('#'+sElemId).length==0)?$('<tr>', {'id': sElemId}):$('#'+sElemId).empty();
|
||||
|
||||
console.log(sElemId);
|
||||
console.log($('#'.sElemId).length);
|
||||
|
||||
$Project
|
||||
.data('project_id', oProject.id)
|
||||
.append($('<td>', {'class': 'name'}).text(oProject.name))
|
||||
@@ -63,7 +60,7 @@ function setProjects(asProjects) {
|
||||
function commit(event, $This) {
|
||||
$This = $This || $(this);
|
||||
var sNewVal = $This.val();
|
||||
if($This.data('old_value')!=sNewVal) { console.log('commit');
|
||||
if($This.data('old_value')!=sNewVal) {
|
||||
$This.data('old_value', sNewVal);
|
||||
|
||||
var asInputs = {project_id: $This.closest('tr').data('project_id'), field: $This.attr('name'), value: sNewVal};
|
||||
@@ -81,7 +78,7 @@ function commit(event, $This) {
|
||||
}
|
||||
}
|
||||
|
||||
function waitAndCommit(event) { console.log('waitAndCommit');
|
||||
function waitAndCommit(event) {
|
||||
if(typeof self.tmp('wait') != 'undefined') clearTimeout(self.tmp('wait'));
|
||||
self.tmp('wait', setTimeout(()=>{commit(event,$(this));}, 1000));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user