Commit e41edb62 authored by Sven Franck's avatar Sven Franck

debug external callback_url

parent 581b6bfc
...@@ -6400,7 +6400,7 @@ ...@@ -6400,7 +6400,7 @@
* @return controlgroup * @return controlgroup
*/ */
factory.controlgroup = function (spec) { factory.controlgroup = function (spec) {
var config, group, direction, controls, i, j, element, order, state, param, var config, group, direction, controls, i, element, order, state, param,
target; target;
if (spec === undefined) { if (spec === undefined) {
...@@ -6449,18 +6449,13 @@ ...@@ -6449,18 +6449,13 @@
// more HACK: // more HACK:
if (param && element.direct.href) { if (param && element.direct.href) {
element.direct.href += element.direct.href.indexOf("?") > 0 ? "&" : "?"; element.direct.href += element.direct.href.indexOf("?") > 0 ? "&" : "?";
for (j = 0; j < param.length; j += 1) {
switch (param[1]) { switch (param[1]) {
case "location": case "location":
target = window.location.origin + window.location.pathname; target = window.location.origin + window.location.pathname;
break; break;
} }
console.log("set to:")
console.log(target)
element.direct.href += window.encodeURIComponent(param[0]) + element.direct.href += window.encodeURIComponent(param[0]) +
"=" + window.encodeURIComponent(target); "=" + window.encodeURIComponent(target);
target = "";
}
} }
// reference to item ID // reference to item ID
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment