1
|
|
2
|
|
3
|
|
4
|
|
5
|
(function ($) {
|
6
|
|
7
|
Drupal.behaviors.PanelizerIPE = {
|
8
|
attach: function (context) {
|
9
|
$('input#panelizer-save-default', context).bind('mouseup', function (e) {
|
10
|
if (!confirm(Drupal.t("This will save this configuration as the new default for all entities of this type. This action cannot be undone. Are you sure?"))) {
|
11
|
this.ipeCancelThis = true;
|
12
|
return false;
|
13
|
}
|
14
|
});
|
15
|
$('input#panelizer-ipe-revert', context).bind('mouseup', function (e) {
|
16
|
if (!confirm(Drupal.t("This will remove all panelizer configuration for this entity and revert it to default settings. This action cannot be undone. Are you sure?"))) {
|
17
|
this.ipeCancelThis = true;
|
18
|
return false;
|
19
|
}
|
20
|
});
|
21
|
}
|
22
|
};
|
23
|
|
24
|
})(jQuery);
|
25
|
|
26
|
|