|
|
|
@ -760,6 +760,7 @@ define([
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
$("#cryptpad-readonly-open").click(function() {
|
|
|
|
|
common.findOKButton().click();
|
|
|
|
|
window.open(url);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
@ -798,7 +799,11 @@ define([
|
|
|
|
|
*/
|
|
|
|
|
var styleAlerts = common.styleAlerts = function (href) {
|
|
|
|
|
var $link = $('link[href="/customize/alertify.css"]');
|
|
|
|
|
if ($link.length) { return; }
|
|
|
|
|
if ($link.length) {
|
|
|
|
|
$link.attr('href', '');
|
|
|
|
|
$link.attr('href', '/customize/alertify.css');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
href = href || '/customize/alertify.css';
|
|
|
|
|
$('head').append($('<link>', {
|
|
|
|
@ -838,6 +843,7 @@ define([
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
common.alert = function (msg, cb) {
|
|
|
|
|
common.styleAlerts();
|
|
|
|
|
cb = cb || function () {};
|
|
|
|
|
var keyHandler = listenForKeys(function (e) { // yes
|
|
|
|
|
findOKButton().click();
|
|
|
|
@ -849,6 +855,7 @@ define([
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
common.prompt = function (msg, def, cb, opt) {
|
|
|
|
|
common.styleAlerts();
|
|
|
|
|
opt = opt || {};
|
|
|
|
|
cb = cb || function () {};
|
|
|
|
|
|
|
|
|
@ -872,6 +879,7 @@ define([
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
common.confirm = function (msg, cb, opt) {
|
|
|
|
|
common.styleAlerts();
|
|
|
|
|
opt = opt || {};
|
|
|
|
|
cb = cb || function () {};
|
|
|
|
|
var keyHandler = listenForKeys(function (e) {
|
|
|
|
|