From 2cd532950e668c20675330867468f41ba40dceed Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 12 Feb 2013 16:58:29 +0530 Subject: [PATCH] update tooltips --- static/videoOverlay.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/videoOverlay.js b/static/videoOverlay.js index 444f0d8..40755b3 100644 --- a/static/videoOverlay.js +++ b/static/videoOverlay.js @@ -18,7 +18,7 @@ function getVideoOverlay(page) { div.style.height = image.height + 'px'; if (videoOverlay[page] && videoOverlay[page][id]) { div.className = 'interface video'; - div.title = 'Click to Play'; + div.title = 'Click to play video'; div.onclick = function(event) { event.preventDefault(); event.stopPropagation(); @@ -36,7 +36,8 @@ function getVideoOverlay(page) { var img = document.createElement('img'); img.className = 'button editButton'; img.src = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTYiIGhlaWdodD0iMjU2Ij48cG9seWdvbiBwb2ludHM9IjMyLDIyNCA2NCwxNjAgOTYsMTkyIiBmaWxsPSIjRkZGRkZGIi8+PGxpbmUgeDE9Ijg4IiB5MT0iMTY4IiB4Mj0iMTg0IiB5Mj0iNzIiIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSI0OCIvPjxsaW5lIHgxPSIxOTIiIHkxPSI2NCIgeDI9IjIwOCIgeTI9IjQ4IiBzdHJva2U9IiNGRkZGRkYiIHN0cm9rZS13aWR0aD0iNDgiLz48bGluZSB4MT0iMTEyIiB5MT0iMjIwIiB4Mj0iMjI0IiB5Mj0iMjIwIiBzdHJva2U9IiNGRkZGRkYiIHN0cm9rZS13aWR0aD0iOCIvPjxsaW5lIHgxPSIxMjgiIHkxPSIyMDQiIHgyPSIyMjQiIHkyPSIyMDQiIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSI4Ii8+PGxpbmUgeDE9IjE0NCIgeTE9IjE4OCIgeDI9IjIyNCIgeTI9IjE4OCIgc3Ryb2tlPSIjRkZGRkZGIiBzdHJva2Utd2lkdGg9IjgiLz48L3N2Zz4='; - img.title = 'Click to Edit'; + img.title = videoOverlay[page] && videoOverlay[page][id] + ? 'Click to edit or remove video' : 'Click to add video'; img.onclick = function(event) { event.preventDefault(); event.stopPropagation();