1
0
Fork 0

Fixed a bug where the group-by list of the graphviewer has not been stored locally

This commit is contained in:
Michael Hackstein 2014-01-31 18:17:25 +01:00
parent 0b0d4c5dd7
commit 2a289bf28d
2 changed files with 4 additions and 11 deletions

View File

@ -135,9 +135,7 @@ function ArangoAdapterControls(list, adapter) {
idprefix, [{ idprefix, [{
type: "extendable", type: "extendable",
id: "attribute", id: "attribute",
objects: function() { objects: adapter.getPrioList()
adapter.getPrioList();
}
}], function () { }], function () {
var list = $("input[id^=" + idprefix + "attribute_]"), var list = $("input[id^=" + idprefix + "attribute_]"),
prios = []; prios = [];

View File

@ -450,14 +450,9 @@ var modalDialogHelper = modalDialogHelper || {};
}; };
modalDialogHelper.createModalChangeDialog = function(title, idprefix, objects, callback) { modalDialogHelper.createModalChangeDialog = function(title, idprefix, objects, callback) {
var table = modalDialogHelper.modalDivTemplate(title, "Change", idprefix, callback), var table = modalDialogHelper.modalDivTemplate(title, "Change", idprefix, callback);
os; console.log(objects);
if (_.isFunction(objects)) { _.each(objects, function(o) {
os = objects();
} else {
os = objects;
}
_.each(os, function(o) {
insertModalRow(table, idprefix, o); insertModalRow(table, idprefix, o);
}); });
$("#" + idprefix + "modal").modal('show'); $("#" + idprefix + "modal").modal('show');