summaryrefslogtreecommitdiff
path: root/static/saclay/js/interface.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/saclay/js/interface.js')
-rw-r--r--static/saclay/js/interface.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/static/saclay/js/interface.js b/static/saclay/js/interface.js
index 686e66e..b8ab2d7 100644
--- a/static/saclay/js/interface.js
+++ b/static/saclay/js/interface.js
@@ -1,4 +1,6 @@
$(function(){
+ $('#default-message').dialog({'autoOpen':false});
+
var update_editmarker = function(){
$('#action-edit-event').removeClass('ui-state-active');
$('#action-edit-route').removeClass('ui-state-active');
@@ -94,4 +96,20 @@ $(function(){
$("#action-edit-event").click(update_editevent);
$("#action-edit-marker").click(update_editmarker);
$("#action-edit-route").click(update_editroute);
+
+ $('.dyn-page').click(function(){
+ url = $(this).filter('a').attr('href');
+ $.ajax({url: url,
+ dataType: "html",
+ success: function (content) {
+ $('#default-message').html(content);
+ dialog_title = $("#default-message #dialog-title");
+ $('#default-message').dialog('option', 'title',
+ dialog_title.html());
+ dialog_title.remove();
+ $('#default-message').dialog('open');
+ }
+ });
+ return false;
+ });
});