Changed TTV lookup links to use ttvpumpe.opdatering.tv2.dk interface
authorKristian Kræmmer Nielsen <jkkn@jkkn.dk>
Fri, 12 Dec 2008 02:11:51 +0000 (03:11 +0100)
committerKristian Kræmmer Nielsen <jkkn@jkkn.dk>
Fri, 12 Dec 2008 02:11:51 +0000 (03:11 +0100)
content/quickbox.js
content/tv2developer.js
version

index 45427a553126fc16f9904dd69a1e5deb690a1d0d..6723b3ac55fb6137dd4fdc0798edb2b735eec9a2 100644 (file)
@@ -324,7 +324,17 @@ var TV2DeveloperQuickBox = {
                 }
                 if (action != 'go-bugzilla') {
                     action_uses_opdatering = true;
-                    site = (action == 'go-userid' ? 'login' : 'i2');
+                    switch (action) {
+                    case 'go-userid':
+                        site = 'login';
+                        break;
+                    case 'go-ttv-page':
+                        site = 'ttvpumpe';
+                        break;
+                    default:
+                        site = 'i2';
+                        break;
+                    }
                 }
                 break;
             case 'go-pdolog':
@@ -374,7 +384,7 @@ var TV2DeveloperQuickBox = {
                 uri = '/tool/query/?id=&2=&3=&_checkbox=1&content_id='+longest_id+'&4=&5=0&6=&action=Query&timeout=1';
                 break;
             case 'go-ttv-page':
-                uri = '/tool/ttv/?1=' + longest_id + '&2=0';
+                uri = '/?channel=TV+2&page='+longest_id+'#'+longest_id;
                 break;
             case 'go-tango-page':
                 uri = '/tango/entry.php?url='+action_on_url_encoded;
index 77d1aff24dcc4b4e12ab182f3fa125a6b0de2241..840b631263195af942d5049c616351895b3356eb 100644 (file)
@@ -398,13 +398,14 @@ var TV2Developer = {
             if (tv2_sitename == 'ttv') {
                 links.push(new this.TV2LinkSplit());
                 var ttv_page = /side=([0-9]+)/.exec(tv2_uri);
+                var ttvpumpelink = 'ttvpumpe'+updatepostfix;
                 if (ttv_page) {
                     skip_treenodes = true;
                     links.push(new this.TV2LinkWithLabel('ttvpage', TV2Util.getStr('lookupTTVPage') + ' ' + ttv_page[1],
-                                i2link + '/tool/ttv/?1=' + ttv_page[1] + '&2=0', /* hardcoded to TV 2 TTV */
+                                'http://' + ttvpumpelink + '/?channel=TV+2&page=' + ttv_page[1] + '#' + ttv_page[1], /* hardcoded to TV 2 TTV */
                                 TV2Util.getStr('lookupTTVPage.accesskey')));
                 }
-                /*links.push(new this.TV2Link('ttvpumpe', 'ttvpumpe'+updatepostfix, '/', TV2Util.getStr('ttvpumpe.accesskey')));*/
+                /*links.push(new this.TV2Link('ttvpumpe', ttvpumpelink, '/', TV2Util.getStr('ttvpumpe.accesskey')));*/
                 links.push(new this.TV2Link('ttvpumpe', 'ttvpumpe.opdatering.tv2.dk', '/', TV2Util.getStr('ttvpumpe.accesskey')));
             }
             
diff --git a/version b/version
index 35ad34429bef26f58f8fe3a23884c3ec88ee8882..62d5dbdf3c7a91a6e049b7b8ef2d572c09d00eb7 100644 (file)
--- a/version
+++ b/version
@@ -1 +1 @@
-0.11.4
+0.11.5