[IMP] Improved code.

bzr revid: jra@tinyerp.com-20120716070523-iim1n7ghl1a0tg6o
This commit is contained in:
Jiten (OpenERP) 2012-07-16 12:35:23 +05:30
parent cabf707734
commit 66d1d0e334
3 changed files with 2 additions and 25 deletions

View File

@ -2366,27 +2366,4 @@ div.ui-widget-overlay {
background: black;
filter: alpha(opacity=30);
opacity: 0.3;
}
.oe_bounce_left {
float: left;
}
.openerp .oe_bounce {
-moz-animation:bounce .40s linear;
-webkit-animation:bounce .40s linear;
}
@-moz-keyframes bounce {
0%{ -moz-transform:scale(0); opacity:0;}
50%{ -moz-transform:scale(1.3); opacity:0.4; }
75%{ -moz-transform:scale(0.9); opacity:0.7;}
100%{ -moz-transform:scale(1); opacity:1;}
}
@-webkit-keyframes bounce {
0%{ -webkit-transform:scale(0); opacity:0;}
50%{ -webkit-transform:scale(1.3); opacity:0.4;}
75%{ -webkit-transform:scale(0.9); opacity:0.7;}
100%{ -webkit-transform:scale(1); opacity:1;}
}

View File

@ -567,7 +567,7 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM
*/
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');
edit_btn.wrap('<div>').css('margin-right','4px').addClass('oe_left oe_bounce');
e.stopImmediatePropagation();
});
} else {

View File

@ -988,7 +988,7 @@ instance.web.ListView.List = instance.web.Class.extend( /** @lends instance.web.
*/
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');
create_btn.wrap('<div>').css('margin-right','4px').addClass('oe_left oe_bounce');
}
});
},