Merge remote-tracking branch 'origin/design_dialogs' into design_dialogs
This commit is contained in:
@@ -348,7 +348,8 @@ define([
|
|||||||
if (!b.name || !b.onClick) { return; }
|
if (!b.name || !b.onClick) { return; }
|
||||||
var button = h('button', { tabindex: '1', 'class': b.className || '' }, b.name);
|
var button = h('button', { tabindex: '1', 'class': b.className || '' }, b.name);
|
||||||
$(button).click(function () {
|
$(button).click(function () {
|
||||||
b.onClick();
|
var noClose = b.onClick();
|
||||||
|
if (noClose) { return; }
|
||||||
var $modal = $(button).parents('.alertify').first();
|
var $modal = $(button).parents('.alertify').first();
|
||||||
if ($modal.length && $modal[0].closeModal) {
|
if ($modal.length && $modal[0].closeModal) {
|
||||||
$modal[0].closeModal(function () {
|
$modal[0].closeModal(function () {
|
||||||
|
|||||||
@@ -1103,6 +1103,7 @@ define([
|
|||||||
embed: Util.isChecked($link.find('#cp-share-embed'))
|
embed: Util.isChecked($link.find('#cp-share-embed'))
|
||||||
});
|
});
|
||||||
window.open(v);
|
window.open(v);
|
||||||
|
return true;
|
||||||
},
|
},
|
||||||
keys: [[13, 'ctrl']]
|
keys: [[13, 'ctrl']]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user