Messages display image media, prompt to download other media types.

This commit is contained in:
Nate
2018-12-20 22:53:00 -07:00
parent e671586638
commit d359d0cd0b
3 changed files with 47 additions and 8 deletions
+21
View File
@@ -83,6 +83,17 @@
echo " box-shadow: 0px 1px 20px #888;\n";
echo " }\n";
echo " #message_media_layer {\n";
echo " z-index: 999999;\n";
echo " position: absolute;\n";
echo " left: 0px;\n";
echo " top: 0px;\n";
echo " right: 0px;\n";
echo " bottom: 0px;\n";
echo " text-align: center;\n";
echo " vertical-align: middle;\n";
echo " }\n";
echo "</style>\n";
//new message layer
@@ -143,6 +154,9 @@
echo " </table>\n";
echo "</div>\n";
//message media layer
echo "<div id='message_media_layer' style='display: none;'></div>\n";
//show the content
echo "<table width='100%' border='0'>\n";
echo " <tr>\n";
@@ -264,6 +278,13 @@
echo " });\n";
echo " });\n";
//open message media in layer
echo " function display_media(id, src) {\n";
echo " $('#message_media_layer').load('message_media.php?id=' + id + '&src=' + src + '&action=display', function(){\n";
echo " $('#message_media_layer').fadeIn(200);\n";
echo " });\n";
echo " }\n";
echo " refresh_contacts();\n";
echo "</script>\n";