| function number_of_unsaved_job(){ | function number_of_unsaved_job(){ | ||||
| var count =0; | var count =0; | ||||
| var total_job = $('div.bsave').length -1;//remove table header | |||||
| var total_saved = $('div.bsave.saved').length; | |||||
| var total_job = $('div.jobTable').length; | |||||
| var total_saved = $('div.jobTable.saved').length; | |||||
| var empty = $('div.emptyrecord').length; | var empty = $('div.emptyrecord').length; | ||||
| count = total_job - total_saved - empty; | count = total_job - total_saved - empty; | ||||
| return count; | return count; |