Merge pull request #16110 from shreyashah115/fix-timer
[Timesheet] Element selector in Timer
This commit is contained in:
commit
305c8b1fba
@ -44,8 +44,8 @@ erpnext.timesheet.timer = function(frm, row, timestamp=0) {
|
||||
};
|
||||
|
||||
erpnext.timesheet.control_timer = function(frm, dialog, row, timestamp=0) {
|
||||
var $btn_start = $(".playpause .btn-start");
|
||||
var $btn_complete = $(".playpause .btn-complete");
|
||||
var $btn_start = dialog.$wrapper.find(".playpause .btn-start");
|
||||
var $btn_complete = dialog.$wrapper.find(".playpause .btn-complete");
|
||||
var interval = null;
|
||||
var currentIncrement = timestamp;
|
||||
var initialised = row ? true : false;
|
||||
|
Loading…
Reference in New Issue
Block a user