From 801ab709adfa808072f70fe1bf4b712ddc33df42 Mon Sep 17 00:00:00 2001 From: marijus Date: Sun, 28 Dec 2014 18:16:27 +0100 Subject: more work on files --- view/js/main.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'view/js/main.js') diff --git a/view/js/main.js b/view/js/main.js index f979f6b6f..104718436 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -844,10 +844,12 @@ function updateConvItems(mode,data) { } function filestorage(event,nick,id) { + $('#cloud-index-' + last_filestorage_id).removeClass('cloud-index-active'); $('#perms-panel-' + last_filestorage_id).hide().html(''); $('#file-edit-' + id).spin('tiny'); delete acl; $.get('filestorage/' + nick + '/' + id + '/edit', function(data) { + $('#cloud-index-' + id).addClass('cloud-index-active'); $('#perms-panel-' + id).html(data).show(); $('#file-edit-' + id).spin(false); last_filestorage_id = id; -- cgit v1.2.3 From 345943d48fc407732716e94abd961b25be1af889 Mon Sep 17 00:00:00 2001 From: Stefan Parviainen Date: Mon, 29 Dec 2014 20:02:56 +0100 Subject: Only call autotime() on the correct elements --- view/js/main.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'view/js/main.js') diff --git a/view/js/main.js b/view/js/main.js index f979f6b6f..51166c6cd 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -468,7 +468,7 @@ function updateConvItems(mode,data) { $('#' + prev).after($(this)); if(isVisible) showHideComments(itmId); - $(".autotime").timeago(); + $(".autotime",this).timeago(); } else { $('img',this).each(function() { @@ -479,7 +479,7 @@ function updateConvItems(mode,data) { $('#' + ident).replaceWith($(this)); if(isVisible) showHideComments(itmId); - $(".autotime").timeago(); + $(".autotime",this).timeago(); } prev = ident; }); @@ -510,7 +510,7 @@ function updateConvItems(mode,data) { $('#threads-end').before($(this)); if(isVisible) showHideComments(itmId); - $(".autotime").timeago(); + $(".autotime",this).timeago(); } else { $('img',this).each(function() { @@ -521,7 +521,7 @@ function updateConvItems(mode,data) { $('#' + ident).replaceWith($(this)); if(isVisible) showHideComments(itmId); - $(".autotime").timeago(); + $(".autotime",this).timeago(); } }); @@ -555,7 +555,7 @@ function updateConvItems(mode,data) { $('#' + prev).after($(this)); if(isVisible) showHideComments(itmId); - $(".autotime").timeago(); + $(".autotime",this).timeago(); } prev = ident; -- cgit v1.2.3