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
/**
* QUIQQER Simple Google Map Control
*
* @author www.pcsg.de (Michael Danielczok)
* @module Bricks\Controls\SimpleGoogleMaps
*
* @require qui/QUI
* @require qui/controls/Control
*/
define('package/quiqqer/bricks/bin/Controls/SimpleGoogleMaps', [
'qui/QUI',
'qui/controls/Control'
], function (QUI, QUIControl)
{
"use strict";
return new Class({
Extends: QUIControl,
Type : 'Controls/SimpleGoogleMaps',
Binds: [
'$onImport'
],
initialize: function (options)
{
this.parent(options);
this.mapWrapper = null;
this.addEvents({
onImport: this.$onImport
});
},
/**
* event : on import
*/
$onImport: function ()
{
this.mapWrapper = document.getElement('.simpleGoogleMap-wrapper');
this.mapWrapper.addEvent('click', function() {
this.mapWrapper.addClass('simpleGoogleMap-hideWrapper');
}.bind(this));
}
});
});