more readable function

This commit is contained in:
Ezequiel Bergamaschi 2014-02-01 14:05:28 -03:00 committed by Ezequiel Bergamaschi
parent 28010a85aa
commit 0eaa8c8638

View File

@ -228,14 +228,17 @@ $(function () {
})
});
$(document).ready(fetchLabels({
$(document).ready(function() {
// add labels to filter list...
fetchLabels({
postUpdate: function(data) {
var labels = data.labels;
for (var i = 0; i < labels.length; i++) {
createLabelItem(labels[i], null)
}
}
}))
});
})
});
function reloadTable() {