From 51df4a3aa7d76a0457c89efc55c35f0fa8e17896 Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Fri, 27 Oct 2017 08:00:26 +0000
Subject: www: drop dialog-close bitmap
---
juick-www/src/main/static/scripts.js | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
(limited to 'juick-www/src/main/static/scripts.js')
diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js
index 06fd78c7..7dc24dd2 100644
--- a/juick-www/src/main/static/scripts.js
+++ b/juick-www/src/main/static/scripts.js
@@ -455,10 +455,10 @@ function showPhotoDialog(fname) {
if (minDimension < 640) {
return true; // no dialog, open the link
} else if (minDimension < 1280) {
- openDialog(``);
+ openDialog(`
`, true);
return false;
} else {
- openDialog(`
`);
+ openDialog(`
`, true);
return false;
}
}
@@ -478,18 +478,24 @@ function openPostDialog() {
return openDialog(newmessageTemplate);
}
-function openDialog(html) {
+function openDialog(html, image) {
var dialogHtml = `