]> www.vanbest.org Git - motioneye-debian/commitdiff
media list fix
authorCalin Crisan <ccrisan@gmail.com>
Sun, 17 Nov 2013 15:12:15 +0000 (17:12 +0200)
committerCalin Crisan <ccrisan@gmail.com>
Sun, 17 Nov 2013 15:12:15 +0000 (17:12 +0200)
static/js/main.js

index fbdbdef5a5e8d1c6a474f37970a27d0723e4c864..722d146b8f93033af2095e061c1d7d55fa30520a 100644 (file)
@@ -1413,6 +1413,8 @@ function runMediaDialog(cameraId, mediaType) {
                 return; /* already in progress of loading */
             }
             
+            mediaListDiv.children('div.media-list-entry').detach();
+            
             var previewImg = $('<img class="media-list-progress" src="' + staticUrl + 'img/modal-progress.gif"/>');
             mediaListDiv.append(previewImg);
             
@@ -1461,7 +1463,6 @@ function runMediaDialog(cameraId, mediaType) {
                 entries.sortKey(function (e) {return e.timestamp || e.name;});
                 
                 /* add the entries to the media list */
-                mediaListDiv.children('div.media-list-entry').detach();
                 mediaListDiv.html('');
                 entries.forEach(function (entry) {
                     var entryDiv = entry.div;