diff --git a/erpnext/projects/doctype/timesheet/timesheet.html b/erpnext/projects/doctype/timesheet/timesheet.html
deleted file mode 100644
index 5aab517c55b..00000000000
--- a/erpnext/projects/doctype/timesheet/timesheet.html
+++ /dev/null
@@ -1,11 +0,0 @@
-
- 00
- :
- 00
- :
- 00
-
-
-
-
-
diff --git a/erpnext/public/js/projects/timer.js b/erpnext/public/js/projects/timer.js
index c97c7d13917..1751fc170f9 100644
--- a/erpnext/public/js/projects/timer.js
+++ b/erpnext/public/js/projects/timer.js
@@ -21,12 +21,27 @@ erpnext.timesheet.timer = function(frm, row, timestamp=0) {
'expected_hours': row.expected_hours
});
}
- dialog.get_field("timer_html").$wrapper.append(frappe.render_template("timesheet"));
- control_timer(frm, dialog, row, timestamp);
+ dialog.get_field("timer_html").$wrapper.append(get_timer_html());
+ function get_timer_html() {
+ return `
+
+ 00
+ :
+ 00
+ :
+ 00
+
+
+
+
+
+ `;
+ };
+ erpnext.timesheet.control_timer(frm, dialog, row, timestamp);
dialog.show();
};
-var control_timer = function(frm, dialog, 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 interval = null;