I have turned on the Go Back button but when I click it, nothing happens. I have found the GoBack code in form.js which is the following:
I have fixed the issue by changing it to the following:
Is there any reason why the Go Back button only closes a popup window? It would seem to make sense to return you to the previous page if not open in a popup window.
I hope this change can make it into Fabrik.
Code:
goback.addEvent('click', function (e) {
e.stop();
if (Fabrik.Windows[this.options.fabrik_window_id]) {
Fabrik.Windows[this.options.fabrik_window_id].close();
}
}.bind(this));
Code:
goback.addEvent('click', function (e) {
e.stop();
if (Fabrik.Windows[this.options.fabrik_window_id]) {
Fabrik.Windows[this.options.fabrik_window_id].close();
} else {
window.history.back();
}
}.bind(this));
I hope this change can make it into Fabrik.