[IMP] The bounce effect is too fast everywhere, slow it down a little bit
bzr revid: hip@tinyerp.com-20121123121745-rmi0wnmzmfq6nx9z
This commit is contained in:
parent
9b59a88a5c
commit
be4047ff1b
|
@ -204,7 +204,7 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM
|
||||||
this.$el.find(".oe_form_group_row,.oe_form_field,label").on('click', function (e) {
|
this.$el.find(".oe_form_group_row,.oe_form_field,label").on('click', function (e) {
|
||||||
if(self.get("actual_mode") == "view") {
|
if(self.get("actual_mode") == "view") {
|
||||||
var $button = self.options.$buttons.find(".oe_form_button_edit");
|
var $button = self.options.$buttons.find(".oe_form_button_edit");
|
||||||
$button.css('box-sizing', 'content-box').effect('bounce', {distance: 18, times: 5}, 150);
|
$button.css('box-sizing', 'content-box').effect('bounce', {distance: 18, times: 5}, 250);
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
instance.web.bus.trigger('click', e);
|
instance.web.bus.trigger('click', e);
|
||||||
}
|
}
|
||||||
|
@ -213,7 +213,7 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM
|
||||||
this.$el.find(".oe_form_field_status:not(.oe_form_status_clickable)").on('click', function (e) {
|
this.$el.find(".oe_form_field_status:not(.oe_form_status_clickable)").on('click', function (e) {
|
||||||
if((self.get("actual_mode") == "view")) {
|
if((self.get("actual_mode") == "view")) {
|
||||||
var $button = self.$el.find(".oe_highlight:not(.oe_form_invisible)").css({'float':'left','clear':'none'});
|
var $button = self.$el.find(".oe_highlight:not(.oe_form_invisible)").css({'float':'left','clear':'none'});
|
||||||
$button.effect('bounce', {distance:18, times: 5}, 150);
|
$button.effect('bounce', {distance:18, times: 5}, 250);
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -829,7 +829,7 @@ instance.web.ListView = instance.web.View.extend( /** @lends instance.web.ListVi
|
||||||
);
|
);
|
||||||
var create_nocontent = this.$buttons;
|
var create_nocontent = this.$buttons;
|
||||||
this.$el.find('.oe_view_nocontent').click(function() {
|
this.$el.find('.oe_view_nocontent').click(function() {
|
||||||
create_nocontent.effect('bounce', {distance: 18, times: 5}, 150);
|
create_nocontent.effect('bounce', {distance: 18, times: 5}, 250);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -50,7 +50,7 @@ instance.web_kanban.KanbanView = instance.web.View.extend({
|
||||||
this._super.apply(this, arguments);
|
this._super.apply(this, arguments);
|
||||||
this.$el.on('click', '.oe_kanban_dummy_cell', function() {
|
this.$el.on('click', '.oe_kanban_dummy_cell', function() {
|
||||||
if (self.$buttons) {
|
if (self.$buttons) {
|
||||||
self.$buttons.find('.oe_kanban_add_column').effect('bounce', {distance: 18, times: 5}, 150);
|
self.$buttons.find('.oe_kanban_add_column').effect('bounce', {distance: 18, times: 5}, 250);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -468,7 +468,7 @@ instance.web_kanban.KanbanView = instance.web.View.extend({
|
||||||
);
|
);
|
||||||
var create_nocontent = this.$buttons;
|
var create_nocontent = this.$buttons;
|
||||||
this.$el.find('.oe_view_nocontent').click(function() {
|
this.$el.find('.oe_view_nocontent').click(function() {
|
||||||
create_nocontent.effect('bounce', {distance: 18, times: 5}, 150);
|
create_nocontent.effect('bounce', {distance: 18, times: 5}, 250);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -612,7 +612,7 @@ instance.web_kanban.KanbanGroup = instance.web.Widget.extend({
|
||||||
this.$records.click(function (ev) {
|
this.$records.click(function (ev) {
|
||||||
if (ev.target == ev.currentTarget) {
|
if (ev.target == ev.currentTarget) {
|
||||||
if (!self.state.folded) {
|
if (!self.state.folded) {
|
||||||
add_btn.effect('bounce', {distance: 18, times: 5}, 150);
|
add_btn.effect('bounce', {distance: 18, times: 5}, 250);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue