summaryrefslogtreecommitdiff
path: root/chimere/static
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/static')
-rw-r--r--chimere/static/chimere/js/jquery.chimere.js19
1 files changed, 11 insertions, 8 deletions
diff --git a/chimere/static/chimere/js/jquery.chimere.js b/chimere/static/chimere/js/jquery.chimere.js
index 6e573cd..2e8d6a8 100644
--- a/chimere/static/chimere/js/jquery.chimere.js
+++ b/chimere/static/chimere/js/jquery.chimere.js
@@ -2882,13 +2882,13 @@ function transformCoordToLonLat(coord) {
});
},
displayMessage: function(message){
- if (!$('#chimere_message').length) return;
- $('#chimere_message').html(message);
- $('#chimere_message').dialog('open');
+ if (!$('#modal-chimere-message').length) return;
+ $('#modal-chimere-message .modal-body').html(message);
+ $('#modal-chimere-message').modal("show");
},
hideMessage: function(message){
- if (!$('#chimere_message').length) return;
- $('#chimere_message').dialog('close');
+ if (!$('#modal-chimere-message').length) return;
+ $('#modal-chimere-message').modal("show");
},
center_on_feature: function(feature) {
var f = get_or_set(feature, settings.current_feature);
@@ -2910,9 +2910,9 @@ function transformCoordToLonLat(coord) {
if(settings.open_dialog_fx){
settings.open_dialog_fx(title, content);
} else {
- $("#category_description").html(content).dialog();
- $("#category_description").dialog("option", "title", title);
- $('#category_description').dialog('open');
+ $('#category_description .modal-body').html(message);
+ $('#category_description .modal-title').html(title);
+ $('#category_description').modal("show");
}
},
category_detail: function (category_id) {
@@ -3201,6 +3201,9 @@ function transformCoordToLonLat(coord) {
EPSG_DISPLAY_PROJECTION);
document.cookie = extent_key + '=' + extent.toArray().join('_')
+ ';path=/';
+ },
+ refresh: function(){
+ settings.map.updateSize();
}
}; // End of public methods
var helpers = {