use site logo in error dialog, fixes: #317

This commit is contained in:
j 2012-02-02 12:14:30 +00:00
parent c450fd2a0b
commit 5ff0ff93f0
2 changed files with 3 additions and 2 deletions

View File

@ -66,7 +66,7 @@ pandora.ui.errorDialog = function(data) {
content: Ox.Element()
.append(
$('<img>')
.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(

View File

@ -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);