fixed small bug with tipsy
bzr revid: nicolas.vanhoren@openerp.com-20120906142143-wxo087d2r6y6pln8
This commit is contained in:
parent
6eec6cf691
commit
69c3ac117d
|
@ -18,11 +18,13 @@ openerp.hr_attendance = function (instance) {
|
|||
},
|
||||
start: function() {
|
||||
var self = this;
|
||||
this.on("change:signed_in", this, function() {
|
||||
var tmp = function() {
|
||||
this.$el.toggleClass("oe_attendance_nosigned", ! this.get("signed_in"));
|
||||
this.$el.toggleClass("oe_attendance_signed", this.get("signed_in"));
|
||||
this.$el.attr("title", tips["" + this.get("signed_in")].toString());
|
||||
});
|
||||
};
|
||||
this.on("change:signed_in", this, tmp);
|
||||
_.bind(tmp, this)();
|
||||
this.$(".oe_attendance_signin").click(function() {
|
||||
self.do_update_attendance();
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<t t-name="AttendanceSlider">
|
||||
<div class="oe_attendance_status oe_attendance_nosigned">
|
||||
<div class="oe_attendance_status oe_attendance_nosigned" title=" ">
|
||||
<div class="oe_attendance_signin"></div>
|
||||
<div class="oe_attendance_signout"></div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue