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:
Anand Patel (OpenERP)
2012-06-29 12:52:48 +05:30
parent 13458db46f
commit e748c3d4cf
3 changed files with 8 additions and 8 deletions
+1 -4
View File
@@ -2215,7 +2215,4 @@
}
.kitten-mode-activated > * {
opacity: 0.7;
}
.openerp .bounce {
float:left;
}
}
+5 -2
View File
@@ -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);
});
},
+2 -2
View File
@@ -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">