diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-01-27 22:23:47 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-01-27 22:23:47 +0100 |
commit | 2e4e56f7cc696b2c52014f0050294826caa74d7d (patch) | |
tree | 3c9d7a83fc13c878d134de2981e75a7278f06df7 /view/js | |
parent | 7c600b03803bfddd2d98084ef5c1976e35b84f9e (diff) | |
download | volse-hubzilla-2e4e56f7cc696b2c52014f0050294826caa74d7d.tar.gz volse-hubzilla-2e4e56f7cc696b2c52014f0050294826caa74d7d.tar.bz2 volse-hubzilla-2e4e56f7cc696b2c52014f0050294826caa74d7d.zip |
if startpage is /hq redirect all notifications links to /hq and minor notifications and hq fixes
Diffstat (limited to 'view/js')
-rw-r--r-- | view/js/main.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/view/js/main.js b/view/js/main.js index 13d002968..35f723a58 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -456,11 +456,7 @@ function handleNotificationsItems(notifyType, data) { notify_menu.append(html); }); - $(".dropdown-menu img[data-src], .notification img[data-src]").each(function(i, el){ - // Replace data-src attribute with src attribute for every image - $(el).attr('src', $(el).data("src")); - $(el).removeAttr("data-src"); - }); + datasrc2src('#notifications .notification img[data-src]'); if($('#tt-' + notifyType + '-only').hasClass('active')) $('#nav-' + notifyType + '-menu [data-thread_top=false]').hide(); @@ -834,7 +830,7 @@ function liveUpdate(notify_id) { // else data was valid - reset the recursion counter liveRecurse = 0; - if(typeof notify_id !== 'undefined') { + if(typeof notify_id !== 'undefined' && notify_id !== 'undefined') { $.post( "hq", { |