@bbn/bbn 2.0.190 → 2.0.194
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bbn.js +1 -1
- package/dist/bbn.js.map +1 -1
- package/dist/fn/ajax/link.js +2 -5
- package/dist/fn/init.js +4 -4
- package/package.json +1 -1
package/dist/fn/ajax/link.js
CHANGED
|
@@ -33,12 +33,9 @@ import setNavigationVars from './setNavigationVars.js';
|
|
|
33
33
|
export default function link(...args) {
|
|
34
34
|
let cfg = treatAjaxArguments(args);
|
|
35
35
|
let ok = 1;
|
|
36
|
-
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
/* If we can't find a correct link we load the current URL */
|
|
36
|
+
/* If we can't find a correct link we stop */
|
|
40
37
|
if (!cfg) {
|
|
41
|
-
return
|
|
38
|
+
return;
|
|
42
39
|
}
|
|
43
40
|
/* Just executing the javascript if there is */
|
|
44
41
|
if (cfg.url.indexOf('javascript:') === 0) {
|
package/dist/fn/init.js
CHANGED
|
@@ -35,10 +35,10 @@ const onActivity = (e) => {
|
|
|
35
35
|
target.hasAttribute("href") &&
|
|
36
36
|
!target.hasAttribute("target") &&
|
|
37
37
|
!target.classList.contains("bbn-no")) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
if (!link(target.getAttribute("href"))) {
|
|
39
|
+
e.preventDefault();
|
|
40
|
+
e.stopPropagation();
|
|
41
|
+
}
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
/**
|