improoved code for [added a bounce effect when On non editable page view, if click on the content of a field, bounce the Edit button]
bzr revid: pan@tinyerp.com-20120629072248-kb0vfjjo707l8vaj
This commit is contained in:
@@ -2215,7 +2215,4 @@
|
||||
}
|
||||
.kitten-mode-activated > * {
|
||||
opacity: 0.7;
|
||||
}
|
||||
.openerp .bounce {
|
||||
float:left;
|
||||
}
|
||||
}
|
||||
@@ -582,8 +582,11 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM
|
||||
self.set({mode: "view"});
|
||||
});
|
||||
},
|
||||
on_invalidclick: function() {
|
||||
this.$element.find(".oe_form_field").click(function () {
|
||||
on_invalidclick: function() {
|
||||
var div = $("<div />", {id:"bounce"});
|
||||
this.$element.find(".oe_form_field").click(function () {
|
||||
$(".oe_form_button_edit").wrap(div);
|
||||
$("#bounce").css({"float":"left","margin-right":"4px"});
|
||||
$(".oe_form_button_edit").effect("bounce", { times:3}, 500);
|
||||
});
|
||||
},
|
||||
|
||||
@@ -679,8 +679,8 @@
|
||||
</t>
|
||||
<div t-name="FormView.buttons" class="oe_form_buttons">
|
||||
<t t-if="widget.options.action_buttons !== false">
|
||||
<span class="oe_form_buttons_view">
|
||||
<div class="bounce"><button type="button" class="oe_button oe_form_button_edit">Edit</button></div>
|
||||
<span class="oe_form_buttons_view">
|
||||
<button type="button" class="oe_button oe_form_button_edit">Edit</button>
|
||||
<button type="button" class="oe_button oe_form_button_create">Create</button>
|
||||
</span>
|
||||
<span class="oe_form_buttons_edit">
|
||||
|
||||
Reference in New Issue
Block a user