summaryrefslogtreecommitdiff
path: root/static/saclay/js/interface.js
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2012-09-05 19:14:50 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2012-09-05 19:14:50 +0200
commite13516c39f072c3b1c99fc37eb1881e7279f0d92 (patch)
tree64c3afa207392a47a49e4fc00c8fbc466bdbc191 /static/saclay/js/interface.js
parentf7180eaa05a165ce60b8b346c734e2a2547097a7 (diff)
downloadChimère - projet Saclay-e13516c39f072c3b1c99fc37eb1881e7279f0d92.tar.bz2
Chimère - projet Saclay-e13516c39f072c3b1c99fc37eb1881e7279f0d92.zip
Add a link bar at the bottom of left panel
Diffstat (limited to 'static/saclay/js/interface.js')
-rw-r--r--static/saclay/js/interface.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/static/saclay/js/interface.js b/static/saclay/js/interface.js
index 017d480..a9aed41 100644
--- a/static/saclay/js/interface.js
+++ b/static/saclay/js/interface.js
@@ -1,7 +1,8 @@
$(function(){
$('#default-message').dialog({'autoOpen':false,
'resizable':false,
- 'width':$(window).width()-500});
+ width:630,
+ 'dialogClass':'no-titlebar'});
var update_editmarker = function(){
$('#action-edit-event').removeClass('ui-state-active');
@@ -68,7 +69,9 @@ $(function(){
}
});
};
-
+ $("#action-news").click(function(){
+ $('#news').dialog('open');
+ });
$("#action-carte").click(function(){
$("#main-map").chimere('activateContextMenu');
if($("#itinerary_field").html()){
@@ -104,12 +107,9 @@ $(function(){
$.ajax({url: url,
dataType: "html",
success: function (content) {
- $('#default-message').html("<div class='dialog-content'>"+
- content+"</div>");
- dialog_title = $("#default-message #dialog-title");
- $('#default-message').dialog('option', 'title',
- dialog_title.html());
- dialog_title.remove();
+ html = "<div class='dialog-content'>" +
+ content + "</div>"
+ $('#default-message').html(html);
$('#default-message').dialog('open');
}
});