mirror of
https://github.com/nasa/openmct.git
synced 2025-02-22 10:11:06 +00:00
- Open in New Tab will preserve TC settings
This commit is contained in:
parent
7d754ea143
commit
61e583dbb2
@ -73,10 +73,17 @@ define(
|
|||||||
* @returns {string} URL for the domain object
|
* @returns {string} URL for the domain object
|
||||||
*/
|
*/
|
||||||
UrlService.prototype.urlForNewTab = function (mode, domainObject) {
|
UrlService.prototype.urlForNewTab = function (mode, domainObject) {
|
||||||
var viewPath = "?view=" + this.$location.search().view,
|
var search = this.$location.search(),
|
||||||
|
arr = [];
|
||||||
|
for (var key in search) {
|
||||||
|
if (search.hasOwnProperty(key)) {
|
||||||
|
arr.push(key + '=' + search[key]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var searchPath = "?" + arr.join('&'),
|
||||||
newTabPath =
|
newTabPath =
|
||||||
"index.html#" + this.urlForLocation(mode, domainObject) +
|
"index.html#" + this.urlForLocation(mode, domainObject) +
|
||||||
viewPath;
|
searchPath;
|
||||||
return newTabPath;
|
return newTabPath;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user