From 799f882f77f711a9b50e7db6220320e909e80ced Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 8 Mar 2013 04:00:17 +0000 Subject: [PATCH] fix API documentation document title --- static/js/pandora/utils.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index 20e9eb540..161bcc646 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -259,7 +259,7 @@ pandora.createLinks = function($element) { $element .on({ click: function(e) { - if($(e.target).is('a') && isExternalLink(e.target)) { + if ($(e.target).is('a') && isExternalLink(e.target)) { e.preventDefault(); window.open('/url=' + encodeURIComponent(e.target.href), '_blank'); } @@ -268,7 +268,7 @@ pandora.createLinks = function($element) { }) .bindEvent({ singleclick: function(e) { - if($(e.target).is('a') && !isExternalLink(e.target)) { + if ($(e.target).is('a') && !isExternalLink(e.target)) { pandora.clickLink(e); } } @@ -892,6 +892,7 @@ pandora.getListData = function(list) { pandora.getPageTitle = function(stateOrURL) { var pages = [ {id: '', title: ''}, + {id: 'api', title: 'API Documentation'}, {id: 'help', title: 'Help'}, {id: 'home', title: ''}, {id: 'preferences', title: 'Preferences'},