function createLabelItem(data) { $("#foldersContainer").find("ul").append( $("
  • ").append( " " + "
    " + "
    " + data.title + "
    " + "
    " ) ) } function labelTagsAsHtml(labels) { var result = ""; for (var i = 0; i"+ label.title + "" } return result; } function fetchLabels(options) { jQuery.ajax("c/restful/labels/", { async:false, dataType:'json', type:'GET', success:function (data) { if (options.postUpdate) { options.postUpdate(data) } }, error:function (jqXHR, textStatus, errorThrown) { $('#messagesPanel div').text(errorThrown).parent().show(); } }); }