window.onbeforeunload=function() {
if (!changesaved) {
- return '#{escape_javascript(t('site.edit.potlatch_unsaved_changes'))}';
+ return '<%= escape_javascript(t('site.edit.potlatch_unsaved_changes')) %>';
}
}
doSWF(<%= lat || 'null' %>,<%= lon || 'null' %>,<%= zoom %>);
function setPosition(lat, lon, zoom) {
- doSWF(lat, lon, zoom);
+ doSWF(lat, lon, zoom || 15);
}
function resizeContent() {