From 3104065437afe65028d6df3d56384d3dce5c054c Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sun, 21 Apr 2013 15:47:15 +0100 Subject: [PATCH] Dimensions now shown under image The natural image dimensions are now shown next to the image name (now in bold) along with a note that it's displayed at a reduced size, if it is. --- lib/file-control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/file-control.php b/lib/file-control.php index fe1572c..d0daa32 100644 --- a/lib/file-control.php +++ b/lib/file-control.php @@ -349,7 +349,7 @@ if (action=="load") { if (fileType=="image") { top.document.getElementById('blackMask').style.visibility = "visible"; - top.document.getElementById('mediaContainer').innerHTML = "\" class=\"whiteGlow\" style=\"border: solid 10px #fff; max-width: 700px; max-height: 500px; background-color: #000; background-image: url('images/checkerboard.png')\" onClick=\"return false\">
"; + top.document.getElementById('mediaContainer').innerHTML = "\" class=\"whiteGlow\" style=\"border: solid 10px #fff; max-width: 700px; max-height: 500px; background-color: #000; background-image: url('images/checkerboard.png')\" onClick=\"return false\" onLoad=\"reducedImgMsg = (this.naturalWidth > 700 || this.naturalHeight > 500) ? ', displayed at ' + this.width + ' x ' + this.height : ''; document.getElementById('imgInfo').innerHTML += ' (' + this.naturalWidth + ' x ' + this.naturalHeight + reducedImgMsg + ')'\">
"; } top.ICEcoder.serverMessage();top.ICEcoder.serverQueue("del",0);