Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Remove dialog close text

ZachTRicecc3107f6fa7c
diff --git a/web/js/animation/gif.js b/web/js/animation/gif.js
index a8bdd632b..346aa8af4 100644
--- a/web/js/animation/gif.js
+++ b/web/js/animation/gif.js
@@ -225,7 +225,8 @@ export function animationGif(models, config, ui) {
.dialog({ // dialog for progress
title: 'Collecting Images...',
width: 300,
- height: 100
+ height: 100,
+ closeText: ''
});
$progress.attr('value', 0);
};
@@ -644,6 +645,7 @@ export function animationGif(models, config, ui) {
resizable: false,
maxWidth: window.innerWidth,
maxHeight: window.innerHeight,
+ closeText: '',
close: function() {
$imgDialog.find('img')
.remove();
@@ -704,7 +706,7 @@ export function animationGif(models, config, ui) {
at: 'right+10 top',
of: $('.jcrop-tracker')
},
-
+ closeText: '',
close: onCloseSelector
});
return $dialogBox;
diff --git a/web/js/data/ui.js b/web/js/data/ui.js
index eede5e216..76ae82b76 100644
--- a/web/js/data/ui.js
+++ b/web/js/data/ui.js
@@ -538,7 +538,8 @@ var dataUiDownloadListPanel = function (config, model) {
title: 'Download Links',
width: 650,
height: 500,
- autoOpen: false
+ autoOpen: false,
+ closeText: ''
});
var $bottomPane = $('<div></div>')
.attr('id', 'wv-data-bulk-download-links')
@@ -875,7 +876,8 @@ var dataUiSelectionListPanel = function (model, results) {
.dialog({
title: 'Select data',
width: 400,
- height: 400
+ height: 400,
+ closeText: ''
});
$('button.ui-dialog-titlebar-close')
.hide();
diff --git a/web/js/image/rubberband.js b/web/js/image/rubberband.js
index 0eed0ef9b..e9337fa33 100644
--- a/web/js/image/rubberband.js
+++ b/web/js/image/rubberband.js
@@ -22,7 +22,8 @@ const dialogConfig = {
minHeight: 10,
draggable: false,
resizable: false,
- autoOpen: false
+ autoOpen: false,
+ closeText: ''
};
const PALETTE_WARNING =
diff --git a/web/js/layers/info.js b/web/js/layers/info.js
index cc91b62a4..3bebecc8e 100644
--- a/web/js/layers/info.js
+++ b/web/js/layers/info.js
@@ -51,6 +51,7 @@ export function layersInfo(config, models, layer) {
.scrollTop('0');
});
},
+ closeText: '',
close: dispose
});
diff --git a/web/js/layers/modal.js b/web/js/layers/modal.js
index 28357ab5b..754da7bc1 100644
--- a/web/js/layers/modal.js
+++ b/web/js/layers/modal.js
@@ -890,6 +890,7 @@ export function layersModal(models, ui, config) {
// fade in time for show is 400 above, so after that
setTimeout(unfocusInput, 410);
},
+ closeText: '',
close: function (event, ui) {
$('.ui-widget-overlay').unbind('click');
}
diff --git a/web/js/layers/options.js b/web/js/layers/options.js
index 17f3ad675..00a60c98f 100644
--- a/web/js/layers/options.js
+++ b/web/js/layers/options.js
@@ -80,6 +80,7 @@ export function layersOptions(config, models, layer) {
at: 'right+5 top',
of: $('#products')
},
+ closeText: '',
close: dispose
});
diff --git a/web/js/link/ui.js b/web/js/link/ui.js
index b7106ca98..9dfa783b7 100644
--- a/web/js/link/ui.js
+++ b/web/js/link/ui.js
@@ -178,7 +178,8 @@ export function linkUi(models, config) {
minHeight: 10,
draggable: false,
resizable: false,
- autoOpen: false
+ autoOpen: false,
+ closeText: ''
})
.on('dialogcreate',
$dialog.prepend(item)
diff --git a/web/js/notifications/ui.js b/web/js/notifications/ui.js
index d80cbfcc6..fd2ce3083 100644
--- a/web/js/notifications/ui.js
+++ b/web/js/notifications/ui.js
@@ -414,7 +414,8 @@ export function notificationsUi(models, config) {
},
hide: {
effect: 'fade'
- }
+ },
+ closeText: ''
});
};
@@ -522,7 +523,8 @@ export function notificationsUi(models, config) {
},
hide: {
effect: 'fade'
- }
+ },
+ closeText: ''
});
};
diff --git a/web/js/tour.js b/web/js/tour.js
index 2c8fdfc83..dac1d96a0 100644
--- a/web/js/tour.js
+++ b/web/js/tour.js
@@ -86,7 +86,8 @@ export default function (models, ui, config) {
width: 700,
height: 'auto',
draggable: false,
- resizable: false
+ resizable: false,
+ closeText: ''
});
if (introduction) {
@@ -117,7 +118,8 @@ export default function (models, ui, config) {
width: 600,
height: 'auto',
draggable: false,
- resizable: false
+ resizable: false,
+ closeText: ''
});
feedbackModal.decorate($dialog.find('.feedback'));
$('#repeat')
diff --git a/web/js/ui/info.js b/web/js/ui/info.js
index 8e6de007d..c855246dc 100644
--- a/web/js/ui/info.js
+++ b/web/js/ui/info.js
@@ -96,7 +96,8 @@ export function uiInfo (ui, config) {
},
hide: {
effect: 'fade'
- }
+ },
+ closeText: ''
})
.load('pages/about.html?v=@BUILD_NONCE@ #page')
.addClass('wv-opaque');
diff --git a/web/js/ui/ui.js b/web/js/ui/ui.js
index 65603c39e..0cd9ec897 100644
--- a/web/js/ui/ui.js
+++ b/web/js/ui/ui.js
@@ -63,7 +63,8 @@ export default (function (self) {
hide: {
effect: 'fade',
duration: 200
- }
+ },
+ closeText: ''
})
.on('dialogclose', function () {
$(this)
@@ -95,7 +96,8 @@ export default (function (self) {
effect: 'fade',
duration: 200
},
- dialogClass: 'no-titlebar notify-alert'
+ dialogClass: 'no-titlebar notify-alert',
+ closeText: ''
});
$message.empty().append(title);
return $alert;
@@ -147,7 +149,8 @@ export default (function (self) {
title: spec.header || 'Notice',
resizable: false,
modal: true,
- buttons: buttons
+ buttons: buttons,
+ closeText: ''
})
.html(spec.message)
.on('dialogclose', function () {