1
0
Fork 0

query view event bugfix [ci skip]

This commit is contained in:
hkernbach 2016-06-14 18:54:22 +02:00
parent 130c13bf34
commit 6a44df6cad
1 changed files with 8 additions and 3 deletions

View File

@ -1100,7 +1100,9 @@
listenKey: function (e) { listenKey: function (e) {
if (e.keyCode === 13) { if (e.keyCode === 13) {
this.saveAQL(e); if ($('#modalButton1').html() === 'Update') {
this.saveAQL();
}
} }
this.checkSaveName(); this.checkSaveName();
}, },
@ -1166,7 +1168,9 @@
}, },
saveAQL: function (e) { saveAQL: function (e) {
if (e) {
e.stopPropagation(); e.stopPropagation();
}
//update queries first, before writing //update queries first, before writing
this.refreshAQL(); this.refreshAQL();
@ -1219,6 +1223,7 @@
}); });
} }
console.log("saving");
var callback = function(error) { var callback = function(error) {
if (error) { if (error) {
arangoHelper.arangoError("Query", "Could not save query"); arangoHelper.arangoError("Query", "Could not save query");