New UI for the corner popup

This commit is contained in:
yflory
2020-02-03 15:14:52 +01:00
parent cfa4c6e7bb
commit 4680de12ee
5 changed files with 177 additions and 93 deletions

View File

@@ -736,12 +736,12 @@ define([
});
framework._.sfCommon.isPadStored(function (err, val) {
if (!val) { return; }
//if (!val) { return; }
var b64images = $inner.find('img[src^="data:image"]:not(.cke_reset)');
if (b64images.length && framework._.sfCommon.isLoggedIn()) {
if (true || b64images.length && framework._.sfCommon.isLoggedIn()) {
var no = h('button.cp-corner-cancel', Messages.cancel);
var yes = h('button.cp-corner-primary', Messages.ok);
var actions = h('div', [yes, no]);
var actions = h('div', [no, yes]);
var modal = UI.cornerPopup(Messages.pad_base64, actions, '', {big: true});
$(no).click(function () {
modal.delete();