[ADD] Add comment for used bounce effect.

bzr revid: jra@tinyerp.com-20120713132723-t5f7kv5gak13lks2
This commit is contained in:
Jiten (OpenERP) 2012-07-13 18:57:23 +05:30
parent 3db53edefc
commit cabf707734
3 changed files with 11 additions and 1 deletions

View File

@ -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');

View File

@ -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');
}

View File

@ -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) {