mirror of https://gitee.com/bigwinds/arangodb
now modal is hiding when creating a new edge
This commit is contained in:
parent
99ffecbd79
commit
eced0abdbb
|
@ -79,10 +79,12 @@ var documentsView = Backbone.View.extend({
|
|||
var result = window.arangoDocumentStore.createTypeEdge(collid, from, to);
|
||||
|
||||
if (result !== false) {
|
||||
$('#edgeCreateModal').modal('hide');
|
||||
window.location.hash = "collection/"+result;
|
||||
}
|
||||
//Error
|
||||
else {
|
||||
$('#edgeCreateModal').modal('hide');
|
||||
alert("something wrong");
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue