minor fixes

This commit is contained in:
Shreya
2018-03-21 22:20:46 +05:30
parent 8f06266838
commit 5bf24be704
4 changed files with 10 additions and 30 deletions

View File

@@ -1,5 +1,3 @@
@import 'https://fonts.googleapis.com/css?family=Open+Sans:300,600,800';
.stopwatch {
text-align: center;
padding: 1em;
@@ -22,18 +20,4 @@
.playpause {
border-right: 1px dashed #fff;
border-bottom: 1px dashed #fff;
}
.playpause .play {
display: inline-block;
border-top: 19px solid transparent;
border-left: 28px solid #000;
border-bottom: 19px solid transparent;
}
.playpause .pause {
display: inline-block;
border-right: 3px solid #000;
border-left: 3px solid #000;
padding: 20px 11px;
}

View File

@@ -6,5 +6,6 @@
<span class="seconds">00</span>
</div>
<div class="playpause text-center">
<button class= "btn btn-default btn-start"> {{ __("Start") }} </button>
<button class= "btn btn-primary btn-start"> {{ __("Start") }} </button>
<button class= "btn btn-primary btn-complete"> {{ __("Complete") }} </button>
</div>

View File

@@ -155,7 +155,7 @@ frappe.ui.form.on("Timesheet Detail", {
$('.form-grid')
.find('[data-fieldname="timer"]')
.append(frappe.render_template("timesheet"));
frm.trigger("control_timer");
frm.trigger("control_timer");
})
},
hours: function(frm, cdt, cdn) {