mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] web_refresher: black, isort, prettier
This commit is contained in:
committed by
Thanakrit Pintana
parent
166a40c100
commit
90a68d83c0
@@ -1,25 +1,25 @@
|
||||
// initial pager is located in source/addons/web/static/src/js/chrome/pager.js
|
||||
// Initial pager is located in source/addons/web/static/src/js/chrome/pager.js
|
||||
|
||||
odoo.define('refresher.pager', function(require) {
|
||||
'use strict';
|
||||
odoo.define("refresher.pager", function(require) {
|
||||
"use strict";
|
||||
|
||||
var pager = require('web.Pager');
|
||||
var pager = require("web.Pager");
|
||||
pager.include({
|
||||
start: function() {
|
||||
var self = this;
|
||||
var res = self._super();
|
||||
|
||||
var $button = $('<span>', {
|
||||
var $button = $("<span>", {
|
||||
class: "fa fa-refresh btn btn-icon o_pager_refresh",
|
||||
css: {"margin-right": "8px"},
|
||||
"aria-label": "Refresh"
|
||||
"aria-label": "Refresh",
|
||||
});
|
||||
$button.on('click', function(){
|
||||
$button.on("click", function() {
|
||||
self._changeSelection(0);
|
||||
});
|
||||
|
||||
self.$el.prepend($button);
|
||||
return res;
|
||||
}
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user