fix API documentation document title

This commit is contained in:
rolux 2013-03-08 04:00:17 +00:00
parent c1bf737ee0
commit 799f882f77

View file

@ -259,7 +259,7 @@ pandora.createLinks = function($element) {
$element $element
.on({ .on({
click: function(e) { click: function(e) {
if($(e.target).is('a') && isExternalLink(e.target)) { if ($(e.target).is('a') && isExternalLink(e.target)) {
e.preventDefault(); e.preventDefault();
window.open('/url=' + encodeURIComponent(e.target.href), '_blank'); window.open('/url=' + encodeURIComponent(e.target.href), '_blank');
} }
@ -268,7 +268,7 @@ pandora.createLinks = function($element) {
}) })
.bindEvent({ .bindEvent({
singleclick: function(e) { singleclick: function(e) {
if($(e.target).is('a') && !isExternalLink(e.target)) { if ($(e.target).is('a') && !isExternalLink(e.target)) {
pandora.clickLink(e); pandora.clickLink(e);
} }
} }
@ -892,6 +892,7 @@ pandora.getListData = function(list) {
pandora.getPageTitle = function(stateOrURL) { pandora.getPageTitle = function(stateOrURL) {
var pages = [ var pages = [
{id: '', title: ''}, {id: '', title: ''},
{id: 'api', title: 'API Documentation'},
{id: 'help', title: 'Help'}, {id: 'help', title: 'Help'},
{id: 'home', title: ''}, {id: 'home', title: ''},
{id: 'preferences', title: 'Preferences'}, {id: 'preferences', title: 'Preferences'},