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.js20
1 files changed, 15 insertions, 5 deletions
diff --git a/static/saclay/js/interface.js b/static/saclay/js/interface.js
index 114c210..ebfa527 100644
--- a/static/saclay/js/interface.js
+++ b/static/saclay/js/interface.js
@@ -1,9 +1,17 @@
-$(function(){
- $('#default-message').dialog({'autoOpen':false,
- 'resizable':false,
- width:630,
- 'dialogClass':'no-titlebar'});
+var init_default_message_diag = function(){
+ $('#default-message').dialog({
+ 'autoOpen':false,
+ 'resizable':false,
+ width:630,
+ 'dialogClass':'no-titlebar',
+ open: function () {$(".dialog-content .content").scrollTop(0); }
+ });
+}
+
+
+$(function(){
+ init_default_message_diag();
var update_editmarker = function(){
$("#main-map").chimere('cleanRoute');
$('.map_button').hide();
@@ -154,6 +162,8 @@ $(function(){
$('input[name="transport"]').change(change_routing_transport);
$('input[name="speed"]').change(change_routing_speed);
$('#id_speed').change(change_routing_speed);
+
+ $('#haystack-search-page').click(welcome_search);
});
function change_routing_speed(){