FIX: AJAX GOBACK loop

This commit is contained in:
Tony Air 2020-11-24 14:01:12 +07:00
parent 5f93572a06
commit c39267f6aa
4 changed files with 4 additions and 4 deletions

2
dist/js/app.js vendored

File diff suppressed because one or more lines are too long

2
dist/js/app.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "@a2nt/ss-bootstrap-ui-webpack-boilerplate",
"version": "2.6.2",
"version": "2.6.3",
"author": "Tony Air <tony@twma.pro>",
"license": "MIT",
"description": "This UI Kit allows you to build Bootstrap 4 webapp with some extra UI features. It's easy to extend and easy to convert HTML templates to CMS templates.",

View File

@ -258,7 +258,7 @@ const AjaxUI = (($) => {
} else if ($existingLink.length && $existingLink.hasClass('ajax')) {
console.log(`${NAME}: GOBACK (AJAX link)`);
$existingLink.trigger('click');
} else {
} else if (D.location.href !== G.location.href) {
console.log(`${NAME}: GOBACK (HTTP)`);
G.location.href = D.location;
}