[ADD] Add comment for used bounce effect.
bzr revid: jra@tinyerp.com-20120713132723-t5f7kv5gak13lks2
This commit is contained in:
parent
3db53edefc
commit
cabf707734
|
@ -562,6 +562,9 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM
|
|||
_.each(this.fields,function(field){
|
||||
field.set({"force_readonly": true});
|
||||
});
|
||||
/*
|
||||
* Add bounce effect on button 'Edit' when click on readonly page view.
|
||||
*/
|
||||
var edit_btn = $(".oe_form_button_edit");
|
||||
this.$element.find(".oe_form_field, .oe_form_group_cell").click(function (e) {
|
||||
edit_btn.wrap('<div>').css('margin-right','4px').addClass('oe_bounce_left oe_bounce');
|
||||
|
|
|
@ -982,7 +982,11 @@ instance.web.ListView.List = instance.web.Class.extend( /** @lends instance.web.
|
|||
throw "Could not find id in dataset"
|
||||
}
|
||||
self.row_clicked(e);
|
||||
} else if (opts.options.$buttons) {
|
||||
}
|
||||
/*
|
||||
* Add bounce effect on button 'Create' when click on empty row of list view.
|
||||
*/
|
||||
else if (opts.options.$buttons) {
|
||||
var create_btn = $(opts.options.$buttons.find('.oe_list_add'));
|
||||
create_btn.wrap('<div>').css('margin-right','4px').addClass('oe_bounce_left oe_bounce');
|
||||
}
|
||||
|
|
|
@ -415,6 +415,9 @@ instance.web_kanban.KanbanGroup = instance.web.OldWidget.extend({
|
|||
self.quick.appendTo($(".oe_kanban_group_list_header", self.$records));
|
||||
self.quick.focus();
|
||||
});
|
||||
/*
|
||||
* Add bounce effect on image '+' of kanban header when click on empty space of kanban grouped column.
|
||||
*/
|
||||
var add_btn = this.$element.find('.oe_kanban_add');
|
||||
var fold_btn = this.$element.find('.oe_dropdown_kanban');
|
||||
this.$records.click(function (ev) {
|
||||
|
|
Loading…
Reference in New Issue