Skip to content

Commit

Permalink
better fix #723
Browse files Browse the repository at this point in the history
  • Loading branch information
umut-er committed Jul 3, 2024
1 parent 6358611 commit 5fe2cd0
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions app/js/backbone-views.js
Original file line number Diff line number Diff line change
Expand Up @@ -2235,7 +2235,7 @@ var NeighborhoodQueryView = Backbone.View.extend({
if(cy.nodes().length != 0){
new PromptConfirmationView({
el: "#prompt-confirmation-table",
}).render(sendQueries, ()=>{return;});
}).render(sendQueries);
}
else{
sendQueries();
Expand Down Expand Up @@ -2474,7 +2474,7 @@ var PathsBetweenQueryView = Backbone.View.extend({
if (cy.nodes().length != 0) {
new PromptConfirmationView({
el: "#prompt-confirmation-table",
}).render(sendQueries, ()=>{return;});
}).render(sendQueries);
} else {
sendQueries();
}
Expand Down Expand Up @@ -2772,7 +2772,7 @@ var PathsFromToQueryView = Backbone.View.extend({
if (cy.nodes().length != 0) {
new PromptConfirmationView({
el: "#prompt-confirmation-table",
}).render(sendQueries, ()=>{return;});
}).render(sendQueries);
} else {
sendQueries();
}
Expand Down Expand Up @@ -2992,7 +2992,7 @@ var CommonStreamQueryView = Backbone.View.extend({
if (cy.nodes().length != 0) {
new PromptConfirmationView({
el: "#prompt-confirmation-table",
}).render(sendQueries, ()=>{return;});
}).render(sendQueries);
} else {
sendQueries();
}
Expand Down Expand Up @@ -3146,7 +3146,7 @@ var PathsByURIQueryView = Backbone.View.extend({
if (cy.nodes().length != 0) {
new PromptConfirmationView({
el: "#prompt-confirmation-table",
}).render(sendPathsByURIQuery ,()=>{return;});
}).render(sendPathsByURIQuery);
} else {
sendPathsByURIQuery();
}
Expand Down Expand Up @@ -4010,7 +4010,7 @@ var PromptConfirmationView = Backbone.View.extend({
var self = this;
self.template = _.template($("#prompt-confirmation-template").html());
},
render: function (afterFunction,cancelFunction) {
render: function (afterFunction) {
var self = this;
self.template = _.template($("#prompt-confirmation-template").html());

Expand All @@ -4027,8 +4027,6 @@ var PromptConfirmationView = Backbone.View.extend({
$(document)
.off("click", "#prompt-confirmation-cancel")
.on("click", "#prompt-confirmation-cancel", function (evt) {
if(cancelFunction)
cancelFunction();
$(self.el).modal("toggle");
});

Expand Down

0 comments on commit 5fe2cd0

Please sign in to comment.