|
|
|
@ -338,7 +338,19 @@ AnP = function(custom, object){ |
|
|
|
|
delete globals[name]; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
this.go = (url, _new) => _new ? window.open(url, "_blank") : window.location.href = url; |
|
|
|
|
this.go = (url, _new) => { |
|
|
|
|
|
|
|
|
|
url.substring(0, 1) == "#" &&
|
|
|
|
|
(url = self.string_variables(url, { |
|
|
|
|
current_path : window.location.hash.replace(/\#\/([^\/]+)(\/([0-9]+|add|deleted)(\/(history|edit|set)(\/i18n)?)?)?$/, (...arguments) => { |
|
|
|
|
console.log([url.replace(/^\#(\{[^\{\}]+\})?\/([^\/]+)(\/.*)?$/, "$2"), arguments[1]]); |
|
|
|
|
return arguments[2] || url.replace(/^\#(\{[^\{\}]+\})?\/([^\/]+)(\/.*)?$/, "$2") == arguments[1] ? "" : arguments[1]; |
|
|
|
|
}) |
|
|
|
|
})); |
|
|
|
|
|
|
|
|
|
_new ? window.open(url, "_blank") : window.location.href = url; |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const i18n_get = this.i18n_get = (names, variables, _default) => { |
|
|
|
|
if(i18n) |
|
|
|
|