summaryrefslogtreecommitdiff
path: root/chimere/static
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-09-12 15:09:35 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-09-12 15:09:35 +0200
commitc3c51ec3ff57669c9e1e92b07a1d596fbe325590 (patch)
treefed5ded5cc5e3c8cfa35f456133c2fb87f8b29c2 /chimere/static
parent77293736e56eebd085f96415403732afa1110ff7 (diff)
downloadChimère-c3c51ec3ff57669c9e1e92b07a1d596fbe325590.tar.bz2
Chimère-c3c51ec3ff57669c9e1e92b07a1d596fbe325590.zip
Jquery dialog to bootstrap modal
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 = {