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