add label modal dialog

This commit is contained in:
Ezequiel Bergamaschi
2014-01-28 02:59:09 -03:00
committed by Ezequiel Bergamaschi
parent f048d0adb7
commit 81e9b5f59d
3 changed files with 50 additions and 1 deletions

View File

@@ -18,6 +18,22 @@ $(function () {
}
);
$("#linkBtn").click(
function () {
fetchLabels({
postUpdate: function(data) {
$.each(data.labels, function(index, value) {
$("#labelList").append($('<option></option>').val(index).html(value.title));
})
}
});
$("#add-label-dialog-modal").dialogForm({
//url:"c/restful/labels",
//postUpdate: createLabelItem
});
}
);
$("#duplicateBtn").click(function () {
// Map to be cloned ...
var tableElem = $('#mindmapListTable');