From 08a92898935fc0b2dc8a2da532b8ee7b4878aa30 Mon Sep 17 00:00:00 2001 From: Ezequiel Bergamaschi Date: Sat, 8 Feb 2014 18:25:32 -0300 Subject: [PATCH] filter list appears all simultaneously --- .../src/main/webapp/css/mindmapList.less | 8 ++++++- wise-webapp/src/main/webapp/js/mindmapList.js | 22 ++++++++++--------- .../src/main/webapp/jsp/mindmapList.jsp | 10 ++++----- 3 files changed, 24 insertions(+), 16 deletions(-) diff --git a/wise-webapp/src/main/webapp/css/mindmapList.less b/wise-webapp/src/main/webapp/css/mindmapList.less index fdd4f12e..0f179dcb 100644 --- a/wise-webapp/src/main/webapp/css/mindmapList.less +++ b/wise-webapp/src/main/webapp/css/mindmapList.less @@ -26,7 +26,7 @@ margin-top: 4px; border: 1px solid rgb(213, 207, 207); border-radius: 6px; - box-shadow: 3px 3px 1px #888888; + box-shadow: 0px 1px 3px #888888; } .nav-header { background-color: #eee; @@ -35,6 +35,12 @@ position: relative; left: 8px; } +#mindmapListTable { + border-radius: 6px; + left: -4px; + position: relative; + box-shadow: 0px 1px 9px #888888; +} #mindmapListContainer { background: #FFFFFF; diff --git a/wise-webapp/src/main/webapp/js/mindmapList.js b/wise-webapp/src/main/webapp/js/mindmapList.js index bda99ce4..bd7b7d35 100644 --- a/wise-webapp/src/main/webapp/js/mindmapList.js +++ b/wise-webapp/src/main/webapp/js/mindmapList.js @@ -502,6 +502,7 @@ $(function () { $(document).ready(function() { // add labels to filter list... + $("#foldersContainer li").fadeIn('fast'); fetchLabels({ postUpdate: function(data) { var labels = data.labels; @@ -516,16 +517,17 @@ $(function () { /*--------------------------------------------- Label actions --------------------------------------------------**/ function createLabelItem(data, id) { var labelId = data.id || id; - $("#foldersContainer").find("ul").append( - $("
  • ").append( - " " + - "" + - "
    " + - "
    " + data.title + "
    " + - "" + - "
    " - ) - ) + var labelItem = $("
  • "); + labelItem.append( + " " + + "" + + "
    " + + "
    " + data.title + "
    " + + "" + + "
    " + ); + labelItem.hide().appendTo($("#foldersContainer").find("ul")); + labelItem.fadeIn('fast'); } function labelTagsAsHtml(labels) { diff --git a/wise-webapp/src/main/webapp/jsp/mindmapList.jsp b/wise-webapp/src/main/webapp/jsp/mindmapList.jsp index 4d186b12..73ba52e3 100644 --- a/wise-webapp/src/main/webapp/jsp/mindmapList.jsp +++ b/wise-webapp/src/main/webapp/jsp/mindmapList.jsp @@ -154,31 +154,31 @@