Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/**
* Shipping information control.
* Show shipping information popup after click.
*
* @module package/quiqqer/shipping/bin/frontend/controls/ShippingInfo
* @author www.pcsg.de (Michael Danielczok)
*/
define('package/quiqqer/shipping/bin/frontend/controls/ShippingInfo', [
'qui/QUI',
'qui/controls/Control',
'Locale'
], function (QUI, QUIControl, QUILocale) {
"use strict";
return new Class({
Extends: QUIControl,
Type : 'package/quiqqer/shipping/bin/frontend/controls/ShippingInfo',
Binds: [
'showInfo',
'$onImport'
],
initialize: function (options) {
this.parent(options);
this.addEvents({
onImport: this.$onImport
});
},
/**
* event on import
*/
$onImport: function () {
this.getElm().addEvent('click', this.showInfo);
},
/**
* Show shpping information popup
*
* @param event
*/
showInfo: function (event) {
event.stop();
require([
'qui/controls/windows/Popup'
], function (QUIConfirm) {
new QUIConfirm({
'maxWidth' : 700,
'maxHeight': 600,
'icon' : false,
'title' : false,
'content' : QUILocale.get('quiqqer/shipping', 'frontend.shippingInfo.popup.content'),
draggable : false,
resizable : false
}).open();
});
}
});
});