Skip to content

Commit

Permalink
FIX: AJAX GOBACK loop
Browse files Browse the repository at this point in the history
  • Loading branch information
a2nt committed Nov 24, 2020
1 parent 5f93572 commit c39267f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/js/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/app.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@a2nt/ss-bootstrap-ui-webpack-boilerplate",
"version": "2.6.2",
"version": "2.6.3",
"author": "Tony Air <[email protected]>",
"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.",
Expand Down
2 changes: 1 addition & 1 deletion src/js/_components/_ui.ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c39267f

Please sign in to comment.