projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
the artstor target is back, set active clients back to 13, see CONN-313
[mkws-moved-to-github.git]
/
src
/
mkws-core.js
diff --git
a/src/mkws-core.js
b/src/mkws-core.js
index
b8b06b4
..
94060a2
100644
(file)
--- a/
src/mkws-core.js
+++ b/
src/mkws-core.js
@@
-386,7
+386,7
@@
mkws.pagerNext = function(tname) {
// autosearch on the team or the team has otherwise gotten a query
if (node.hasAttribute("autosearch")) {
if (mkws.autoHasAuto ||
// autosearch on the team or the team has otherwise gotten a query
if (node.hasAttribute("autosearch")) {
if (mkws.autoHasAuto ||
- mkws.teams["AUTO"] && mkws.teams["AUTO"].config()["query"]) {
+ mkws.teams["AUTO"] && mkws.teams["AUTO"].config["query"]) {
log("AUTO team already has a query, using unique team");
teamName = "UNIQUE";
}
log("AUTO team already has a query, using unique team");
teamName = "UNIQUE";
}
@@
-632,8
+632,21
@@
mkws.pagerNext = function(tname) {
runAutoSearches();
}
};
runAutoSearches();
}
};
- $(document).ready(function() {
+
+ // callback for calls after page load, e.g. requirejs
+ mkws.init_widgets = function (message) {
+ if (message) mkws.log(message);
+
var widgetSelector = selectorForAllWidgets();
var widgetSelector = selectorForAllWidgets();
- if (widgetSelector && $(widgetSelector).length !== 0) init();
+ if (widgetSelector && $(widgetSelector).length !== 0) {
+ init();
+ } else {
+ mkws.log("no widgets found");
+ }
+ };
+
+ $(document).ready(function() {
+ mkws.init_widgets();
});
});
+
})(mkws.$);
})(mkws.$);