From 831246fc9d928355d0e14709fa5c256fe3fb3d19 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Wed, 10 Feb 2016 11:11:12 +0100 Subject: [IMP] web: remove spin lib and replace by an image with css to spin --- addons/web/static/src/js/framework/misc.js | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'addons/web/static/src/js/framework/misc.js') diff --git a/addons/web/static/src/js/framework/misc.js b/addons/web/static/src/js/framework/misc.js index 25e80c33e84..b8c5e5e927e 100644 --- a/addons/web/static/src/js/framework/misc.js +++ b/addons/web/static/src/js/framework/misc.js @@ -7,7 +7,6 @@ var session = require('web.session'); var Widget = require('web.Widget'); var _t = core._t; -var Spinner = window.Spinner; var messages_by_seconds = function() { return [ @@ -24,23 +23,6 @@ var messages_by_seconds = function() { var Throbber = Widget.extend({ template: "Throbber", start: function() { - 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 - }; - this.spin = new Spinner(opts).spin(this.$el[0]); this.start_time = new Date().getTime(); this.act_message(); }, @@ -59,11 +41,6 @@ var Throbber = Widget.extend({ self.act_message(); }, 1000); }, - destroy: function() { - if (this.spin) - this.spin.stop(); - this._super(); - }, }); -- cgit v1.2.3