},
/* Main function for adding all the links for the menu popup */
- _reg_tv2: /^https?:\/\/([^/.]*)?([^/]*?)(\.(robot|opdatering2?|template)\.?)?(\.((test|snapshot)3?)\.)?tv2\.dk((\/[^#\?]*).*)?$/,
+ _reg_tv2: /^https?:\/\/([^/.]*)?([^/]*?)(\.(robot|opdatering|template)\.?)?(\.((test|snapshot)3?)\.)?tv2\.dk((\/[^#\?]*).*)?$/,
_reg_php: /^(.*\.php)/,
_reg_nodeid: /([0-9]{2,})/g,
_reg_i2files: /\/([0-9]+)-/,
- //_reg_php5: /^(www|i2|common|ttvpumpe|1234|nyhederne)$/,
- _reg_php5: /^(1234|i2|nyhederne|krimi)$/,
+ _reg_php5: /^(www|i2|common|ttvpumpe|1234|nyhederne|krimi)$/,
_reg_fromviewcvs: /^http:\/\/viewcvs\.tv2.dk:7467\/cgi-bin\/viewvc\.cgi\/([^/]+)\.tv2\.dk\/(webroot|robot|opdatering|template)([^#\?]+)/,
_reg_fromi2if: /^\/(tango\/(entry|requeue|dynamic)|tool\/pdo_log\/frameset)\.php.*?(\?|&)url=([^&]+)/,
getLinks: function() {
//var php5 = ((!tv2_sitename) || (this._reg_php5.test(tv2_sitename)));
var php5 = ((tv2_sitename) && (this._reg_php5.test(tv2_sitename)));
var testType = php5 ? '' : '3';
- if (tv2_sitetype && tv2_sitetype == 'opdatering2') tv2_sitetype = 'opdatering';
// Find live, test and snapshot url for current site
var liveurl;
// Update and I2 base URL
var updatepostfix = (tv2_user ? '.' + tv2_user : '')
+ '.opdatering'
- + (tv2_testtype ? '.' + tv2_testtype : '2') + '.tv2.dk'
+ + (tv2_testtype ? '.' + tv2_testtype : '') + '.tv2.dk'
var i2link = 'http://i2' + updatepostfix;
// Check if we are on an Tango or I2 interface, then we can extract the URL again
// Utility links
links.push(new this.TV2LinkSplit());
- links.push(new this.TV2LinkWithLabel('link_tree', this.getStr('i2Tree'), 'http://i2.opdatering2.tv2.dk/tree/', this.getStr('i2Tree.accesskey')));
- links.push(new this.TV2LinkWithLabel('node', this.getStr('nodeInformationTool'), 'http://i2.opdatering2.tv2.dk/tool/node/', this.getStr('nodeInformationTool.accesskey')));
- links.push(new this.TV2LinkWithLabel('link_query', this.getStr('nodeQueryTool'), 'http://i2.opdatering2.tv2.dk/tool/query/', this.getStr('nodeQueryTool.accesskey')));
- links.push(new this.TV2LinkWithLabel('tango/entry', this.getStr('tangoInterface'), 'http://i2.opdatering2.tv2.dk/tango/', this.getStr('tangoInterface.accesskey')));
+ links.push(new this.TV2LinkWithLabel('link_tree', this.getStr('i2Tree'), 'http://i2.opdatering.tv2.dk/tree/', this.getStr('i2Tree.accesskey')));
+ links.push(new this.TV2LinkWithLabel('node', this.getStr('nodeInformationTool'), 'http://i2.opdatering.tv2.dk/tool/node/', this.getStr('nodeInformationTool.accesskey')));
+ links.push(new this.TV2LinkWithLabel('link_query', this.getStr('nodeQueryTool'), 'http://i2.opdatering.tv2.dk/tool/query/', this.getStr('nodeQueryTool.accesskey')));
+ links.push(new this.TV2LinkWithLabel('tango/entry', this.getStr('tangoInterface'), 'http://i2.opdatering.tv2.dk/tango/', this.getStr('tangoInterface.accesskey')));
links.push(new this.TV2LinkWithLabel('w3c', this.getStr('w3c'),
'http://validator.w3.org/check?uri=' + encodedURL, this.getStr('w3c.accesskey')));
return links;
if (postfix_obj.id == 'go-node') {
url = 'http://i2.opdatering.tv2.dk/tool/node/?id=' + id;
} else if (postfix_obj.id == 'go-content-id') {
- url = 'http://i2.opdatering2.tv2.dk/tool/query/?id=&2=&3=&_checkbox=1&content_id='+id+'&4=&5=0&6=&action=Query&timeout=1';
+ url = 'http://i2.opdatering.tv2.dk/tool/query/?id=&2=&3=&_checkbox=1&content_id='+id+'&4=&5=0&6=&action=Query&timeout=1';
} else if (postfix_obj.id == 'go-ttv-page') {
- url = 'http://i2.opdatering2.tv2.dk/tool/ttv/?1=' + id + '&2=0';
+ url = 'http://i2.opdatering.tv2.dk/tool/ttv/?1=' + id + '&2=0';
}
}
window.close();