From 5ff0ff93f0e63ca5b4b8e1fc4d9747e941c2216b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 2 Feb 2012 12:14:30 +0000 Subject: [PATCH] use site logo in error dialog, fixes: #317 --- static/js/pandora/error.js | 2 +- static/js/pandora/placesDialog.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/error.js b/static/js/pandora/error.js index 5513870b..93e6b1ed 100644 --- a/static/js/pandora/error.js +++ b/static/js/pandora/error.js @@ -66,7 +66,7 @@ pandora.ui.errorDialog = function(data) { content: Ox.Element() .append( $('') - .attr({src: Ox.UI.PATH + 'png/icon128.png'}) + .attr({src: '/static/png/icon64.png'}) .css({position: 'absolute', left: '16px', top: '16px', width: '64px', height: '64px'}) ) .append( diff --git a/static/js/pandora/placesDialog.js b/static/js/pandora/placesDialog.js index aa8390fd..c1e3601c 100644 --- a/static/js/pandora/placesDialog.js +++ b/static/js/pandora/placesDialog.js @@ -7,7 +7,6 @@ pandora.ui.placesDialog = function(options) { var height = Math.round((window.innerHeight - 48) * 0.9), width = Math.round(window.innerWidth * 0.9), $content = Ox.ListMap({ - height: height - 48, addPlace: function(place, callback) { pandora.api.addPlace(place, function(result) { Ox.Request.clearCache(); // fixme: remove @@ -41,6 +40,8 @@ pandora.ui.placesDialog = function(options) { callback(result.data.items); }); }, + height: height - 48, + mode: pandora.site.map == 'auto' ? 'add' : 'define', names: pandora.hasPlacesLayer ? function(callback) { pandora.api.getPlaceNames(function(result) { callback(result.data.items);