Different colors for ok and cancel in alertify
This commit is contained in:
@@ -112,7 +112,7 @@ define([
|
||||
};
|
||||
|
||||
dialog.okButton = function (content) {
|
||||
return h('button.ok', { tabindex: '2', }, content || Messages.okButton);
|
||||
return h('button.ok.primary', { tabindex: '2', }, content || Messages.okButton);
|
||||
};
|
||||
|
||||
dialog.cancelButton = function (content) {
|
||||
@@ -324,7 +324,7 @@ define([
|
||||
var navs = [];
|
||||
opt.buttons.forEach(function (b) {
|
||||
if (!b.name || !b.onClick) { return; }
|
||||
var button = h('button', { tabindex: '1' }, b.name);
|
||||
var button = h('button', { tabindex: '1', 'class': b.className || '' }, b.name);
|
||||
$(button).click(function () {
|
||||
b.onClick();
|
||||
close($(this).parents('.alertify').first());
|
||||
|
||||
@@ -302,6 +302,7 @@ define([
|
||||
onClick: function () {},
|
||||
keys: [27]
|
||||
}, {
|
||||
className: 'primary',
|
||||
name: Messages.share_linkCopy,
|
||||
onClick: function () {
|
||||
saveValue();
|
||||
@@ -311,6 +312,7 @@ define([
|
||||
},
|
||||
keys: [13]
|
||||
}, {
|
||||
className: 'primary',
|
||||
name: Messages.share_linkOpen,
|
||||
onClick: function () {
|
||||
saveValue();
|
||||
@@ -340,6 +342,7 @@ define([
|
||||
onClick: function () {},
|
||||
keys: [27]
|
||||
}, {
|
||||
className: 'primary',
|
||||
name: Messages.share_linkCopy,
|
||||
onClick: function () {
|
||||
var v = getEmbedValue();
|
||||
@@ -396,6 +399,7 @@ define([
|
||||
onClick: function () {},
|
||||
keys: [27]
|
||||
}, {
|
||||
className: 'primary',
|
||||
name: Messages.share_linkCopy,
|
||||
onClick: function () {
|
||||
var v = getLinkValue();
|
||||
@@ -421,6 +425,7 @@ define([
|
||||
onClick: function () {},
|
||||
keys: [27]
|
||||
}, {
|
||||
className: 'primary',
|
||||
name: Messages.share_mediatagCopy,
|
||||
onClick: function () {
|
||||
var v = common.getMediatagFromHref(url);
|
||||
|
||||
Reference in New Issue
Block a user