Lines Matching refs:dialog
43 var dialog = this;
45 if (dialog.tag.className == "encrypted") {
46 dialog.button.innerHTML = '<img src="' + DOKU_BASE + "lib/plugins/crypto/lock_break.png" + '"/>';
47 dialog.tag.className = "decrypted";
48 if (dialog.tag.attributes["inline"].nodeValue == "true") {
49 dialog.tag.innerHTML = dialog.decrypted;
51 dialog.tag.innerHTML = '<pre>' + dialog.decrypted + '</pre>';
54 dialog.button.innerHTML = '<img src="' + DOKU_BASE + "lib/plugins/crypto/lock.png" + '"/>';
55 dialog.tag.className = "encrypted";
56 dialog.tag.innerHTML = dialog.encrypted;
59 dialog.button.onclick = function() {
60 dialog.toggle();
89 dialog.button.parentNode.removeChild(dialog.div);
90 dialog.div = null;
94 dialog.sack.setVar("call", "crypto_decrypt");
95 dialog.sack.setVar("secret", escape($('toggle_encryption_dialog_password').value));
96 dialog.sack.setVar("data", dialog.tag.textContent);
97 dialog.sack.onCompletion = function() {
98 if (dialog.sack.response) {
100 dialog.encrypted = dialog.tag.textContent;
101 dialog.decrypted = unescape(dialog.sack.response);
102 dialog.toggle();
115 dialog.sack.runAJAX();