20 lines
617 B
JavaScript
Executable File
20 lines
617 B
JavaScript
Executable File
odoo.define('dss.screenView_handler', function (require) {
|
|
"use strict";
|
|
var Dialog = require('web.Dialog');
|
|
var core = require('web.core');
|
|
var _t = core._t;
|
|
var publicWidget = require('web.public.widget')
|
|
|
|
publicWidget = publicWidget.Widget.extend({
|
|
selector:'.tooltip-container',
|
|
events: {
|
|
'click .alert_onclick': '_alert_onclick',
|
|
},
|
|
_alert_onclick: function (ev) {
|
|
alert('onclick');
|
|
Dialog.alert(self, _t("Alert on clicking the element"), {
|
|
title: _t('onclick'),
|
|
});
|
|
},
|
|
})
|
|
}); |