[FIX] throbber use an image. fva will fix the aliasing.
Also check http://commons.wikimedia.org/wiki/Category:Throbbers bzr revid: al@openerp.com-20120725080439-j7f44tb0fbp90cm0
This commit is contained in:
parent
0b2ccd00e0
commit
a4f1ce69ab
|
@ -20,7 +20,6 @@
|
||||||
"static/lib/jquery.form/jquery.form.js",
|
"static/lib/jquery.form/jquery.form.js",
|
||||||
"static/lib/jquery.validate/jquery.validate.js",
|
"static/lib/jquery.validate/jquery.validate.js",
|
||||||
"static/lib/jquery.ba-bbq/jquery.ba-bbq.js",
|
"static/lib/jquery.ba-bbq/jquery.ba-bbq.js",
|
||||||
"static/lib/spinjs/spin.js",
|
|
||||||
"static/lib/jquery.blockUI/jquery.blockUI.js",
|
"static/lib/jquery.blockUI/jquery.blockUI.js",
|
||||||
"static/lib/jquery.ui/js/jquery-ui-1.8.17.custom.min.js",
|
"static/lib/jquery.ui/js/jquery-ui-1.8.17.custom.min.js",
|
||||||
"static/lib/jquery.ui.timepicker/js/jquery-ui-timepicker-addon.js",
|
"static/lib/jquery.ui.timepicker/js/jquery-ui-timepicker-addon.js",
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 673 B After Width: | Height: | Size: 7.4 KiB |
|
@ -550,38 +550,14 @@ $.async_when = function() {
|
||||||
/** Setup blockui */
|
/** Setup blockui */
|
||||||
if ($.blockUI) {
|
if ($.blockUI) {
|
||||||
$.blockUI.defaults.baseZ = 1100;
|
$.blockUI.defaults.baseZ = 1100;
|
||||||
$.blockUI.defaults.message = '<div class="oe_blockui_spin" style="height: 50px">';
|
$.blockUI.defaults.message = '<img src="/web/static/src/img/throbber.gif">';
|
||||||
$.blockUI.defaults.css.border = '0';
|
$.blockUI.defaults.css.border = '0';
|
||||||
$.blockUI.defaults.css["background-color"] = '';
|
$.blockUI.defaults.css["background-color"] = '';
|
||||||
$.blockUI.spinners = [];
|
|
||||||
}
|
}
|
||||||
instance.web.blockUI = function() {
|
instance.web.blockUI = function() {
|
||||||
var tmp = $.blockUI.apply($, arguments);
|
$.blockUI.apply($, arguments);
|
||||||
var target = $(".oe_blockui_spin")[0];
|
|
||||||
var opts = {
|
|
||||||
lines: 13, // The number of lines to draw
|
|
||||||
length: 7, // The length of each line
|
|
||||||
width: 4, // The line thickness
|
|
||||||
radius: 10, // The radius of the inner circle
|
|
||||||
rotate: 0, // The rotation offset
|
|
||||||
color: '#FFF', // #rgb or #rrggbb
|
|
||||||
speed: 1, // Rounds per second
|
|
||||||
trail: 60, // Afterglow percentage
|
|
||||||
shadow: false, // Whether to render a shadow
|
|
||||||
hwaccel: false, // Whether to use hardware acceleration
|
|
||||||
className: 'spinner', // The CSS class to assign to the spinner
|
|
||||||
zIndex: 2e9, // The z-index (defaults to 2000000000)
|
|
||||||
top: 'auto', // Top position relative to parent in px
|
|
||||||
left: 'auto' // Left position relative to parent in px
|
|
||||||
};
|
|
||||||
var spinner = new Spinner(opts).spin(target);
|
|
||||||
$.blockUI.spinners.push(spinner);
|
|
||||||
return tmp;
|
|
||||||
}
|
}
|
||||||
instance.web.unblockUI = function() {
|
instance.web.unblockUI = function() {
|
||||||
_.each($.blockUI.spinners, function(el) {
|
|
||||||
el.stop();
|
|
||||||
});
|
|
||||||
return $.unblockUI.apply($, arguments);
|
return $.unblockUI.apply($, arguments);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue