From a4ae253ae39466704a61f08fb3ef78740606ca9b Mon Sep 17 00:00:00 2001 From: Ezequiel Bergamaschi Date: Sat, 1 Feb 2014 01:42:36 -0300 Subject: [PATCH] adding delete X button --- wise-webapp/src/main/webapp/js/labelActions.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wise-webapp/src/main/webapp/js/labelActions.js b/wise-webapp/src/main/webapp/js/labelActions.js index 0bed22df..2bc3c8f4 100644 --- a/wise-webapp/src/main/webapp/js/labelActions.js +++ b/wise-webapp/src/main/webapp/js/labelActions.js @@ -1,9 +1,12 @@ -function createLabelItem(data) { +function createLabelItem(data, id) { + var labelId = data.id || id; $("#foldersContainer").find("ul").append( $("
  • ").append( - " " + + " " + + "" + "
    " + "
    " + data.title + "
    " + + "" + "
    " ) )