From c632fc6976ca908ee16e910f9d214980bf29c43d Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 26 Jan 2006 22:29:26 +0100 Subject: scroll__here support This adds a simple JavaScript behavior. When an element with the id 'scroll__here' is found in the document the browser will scroll this element into view. Useful to scroll to some output after form submitting. darcs-hash:20060126212926-7ad00-b359915a5d6a299652134d8dfa64015786283b6b.gz --- lib/exe/js.php | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/exe/js.php') diff --git a/lib/exe/js.php b/lib/exe/js.php index 56fa8575a..488320ddd 100644 --- a/lib/exe/js.php +++ b/lib/exe/js.php @@ -79,6 +79,7 @@ function js_out(){ js_runonstart("ajax_qsearch.init('qsearch_in','qsearch_out')"); js_runonstart("addEvent(document,'click',closePopups)"); js_runonstart('addTocToggle()'); + js_runonstart('scrollToMarker()'); if($edit){ // size controls -- cgit v1.2.3