From: unknown Date: Fri, 5 Feb 2010 10:28:46 +0000 (+0100) Subject: Added functionalitet for .stage.tv2.dk environment X-Git-Url: https://git.jkkn.net/?a=commitdiff_plain;h=873fea251b98d7379d5fe2879418419bfdefff27;p=tv2developer Added functionalitet for .stage.tv2.dk environment --- diff --git a/content/quickbox.js b/content/quickbox.js index f6b1dac..34a53f0 100644 --- a/content/quickbox.js +++ b/content/quickbox.js @@ -133,7 +133,7 @@ var TV2DeveloperQuickBox = { _reg_git_indexphpfolders: /^\/(((opdatering|webroot)(\/|$)|\/))/, _reg_git_dnsdomains: /^\/(tv2|tv2news|tv2film|sputnik|charlie|zulu)(\.|\.d|\.dk)?$/, _sitetypes: ['opdatering', 'robot', 'template'], - _envs: ['test', 'snapshot'], + _envs: ['test', 'snapshot', 'stage'], updateQuickbox: function(manual) { if (!manual) manual = false; var current_user = TV2Util.getPref('developer-initials'); @@ -592,8 +592,8 @@ var TV2DeveloperQuickBox = { _reg_viewgitbranch1: /[?;&]hb=php4[&;#]?/, _reg_viewgitbranch2: /[?;&]h=refs\/heads\/php4[&;#]?/, _reg_viewgitviewtype: /[?;&]a=(blob|tree|history)[&;#]?/, - _reg_fromi2if: /^http:\/\/i2\.(?:[^.]+\.)?opdatering\.(?:php5\.(?:test|snapshot)\.)?tv2\.dk\/(tango\/(entry|requeue|dynamic)|tool\/pdo_log\/frameset)\.php.*?(?:\?|&)url=([^&]+)/, - _reg_fromloginif: /^http:\/\/login\.(?:([^.]+)\.)?opdatering\.(?:php5\.(test|snapshot)\.)?tv2\.dk\/opslag\.php.*?(?:\?|&)(user_id|username)=([^&]+)/, + _reg_fromi2if: /^http:\/\/i2\.(?:[^.]+\.)?opdatering\.(?:php5\.(?:test|snapshot|stage)\.)?tv2\.dk\/(tango\/(entry|requeue|dynamic)|tool\/pdo_log\/frameset)\.php.*?(?:\?|&)url=([^&]+)/, + _reg_fromloginif: /^http:\/\/login\.(?:([^.]+)\.)?opdatering\.(?:php5\.(test|snapshot|stage)\.)?tv2\.dk\/opslag\.php.*?(?:\?|&)(user_id|username)=([^&]+)/, _reg_frombugzilla: /^http:\/\/bugzilla\.tv2\.dk\/(show_bug.cgi.*?(?:\?|&)id=([0-9]+))?/, _extractURL: function(paramUrl) { var action = 'go-site'; @@ -641,6 +641,8 @@ var TV2DeveloperQuickBox = { } else { url += '.t'; // test } + } else if (env == 'stage') { + url += '.st'; // stage } else { url += '.s'; // snapshot } diff --git a/content/quickbox.xul b/content/quickbox.xul index 8ec02d2..189d77f 100644 --- a/content/quickbox.xul +++ b/content/quickbox.xul @@ -39,6 +39,7 @@ +