From 970df3e01f7da001b53927062308ceb781b5989e Mon Sep 17 00:00:00 2001 From: samhemelryk Date: Thu, 25 Jun 2009 02:57:46 +0000 Subject: [PATCH] modforum MDL-16706 Removed inline js script call in mod forum --- mod/forum/forum.js | 3 +++ mod/forum/search.php | 7 ++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mod/forum/forum.js b/mod/forum/forum.js index e1ac217219..c18807fca2 100644 --- a/mod/forum/forum.js +++ b/mod/forum/forum.js @@ -1,3 +1,6 @@ +var timefromitems = ['fromday','frommonth','fromyear','fromhour', 'fromminute']; +var timetoitems = ['today','tomonth','toyear','tohour','tominute']; + function forum_produce_subscribe_link(forumid, backtoindex, ltext, ltitle) { var elementid = "subscriptionlink"; var subs_link = document.getElementById(elementid); diff --git a/mod/forum/search.php b/mod/forum/search.php index 0d8e0df5d3..6005d7238f 100644 --- a/mod/forum/search.php +++ b/mod/forum/search.php @@ -246,16 +246,13 @@ * @todo Document this function */ function forum_print_big_search_form($course) { - global $CFG, $DB, $words, $subject, $phrase, $user, $userid, $fullwords, $notwords, $datefrom, $dateto; + global $CFG, $DB, $words, $subject, $phrase, $user, $userid, $fullwords, $notwords, $datefrom, $dateto, $PAGE; print_simple_box(get_string('searchforumintro', 'forum'), 'center', '', '', 'searchbox', 'intro'); print_simple_box_start("center"); - echo "\n"; + echo $PAGE->requires->js('mod/forum/forum.js')->asap(); echo '
'; echo ''; -- 2.39.5