From cdd04e61859694d3db79843c60f30df34d17e399 Mon Sep 17 00:00:00 2001 From: Cristian Fasanando Date: Thu, 11 Dec 2008 16:39:27 +0100 Subject: [PATCH] [svn r17230] logic changes - implemented options dropdown to show attachment file and repeated event in calendar see(FS#3332) (by cvargas) --- documentation/changelog.html | 3 +- main/calendar/agenda.inc.php | 225 ++++++++++++++++++++++------------- 2 files changed, 145 insertions(+), 83 deletions(-) diff --git a/documentation/changelog.html b/documentation/changelog.html index 4d93a2f43f..183f4c808f 100644 --- a/documentation/changelog.html +++ b/documentation/changelog.html @@ -52,7 +52,8 @@
  • Database server: There is no more need special SQL modes for MySQL 5.0 to be turned off through the "sql_mode" setting. The Dokeos system does it internally (FS#2787)
  • Some low-level functions that intensively use the language translation sub-system have been optimized for speed (FS#3260)
  • Documents tool: The document-type icons have been made clickable (FS#3296)
  • -
  • Allow ZIP export of assignments for teacher and tutor
  • +
  • Allow ZIP export of assignments for teacher and tutor
  • +
  • Implemented options dropdown to show attachment file and repeated event in calendar see(FS#3332)

  • Debugging

    diff --git a/main/calendar/agenda.inc.php b/main/calendar/agenda.inc.php index dc80d04a32..b41e21b778 100644 --- a/main/calendar/agenda.inc.php +++ b/main/calendar/agenda.inc.php @@ -1,4 +1,4 @@ - ".get_lang('AddAnAttachment')."'; + } else { + document.getElementById('options').style.display = 'none'; + document.getElementById('plus').innerHTML=' \"\" ".get_lang('AddAnAttachment')."'; + } +} + +function plus_repeated_event() { + if (document.getElementById('options2').style.display == 'none') { + document.getElementById('options2').style.display = 'block'; + document.getElementById('plus2').innerHTML=' \"\" ".get_lang('RepeatedEvent')."'; + } else { + document.getElementById('options2').style.display = 'none'; + document.getElementById('plus2').innerHTML=' \"\" ".get_lang('RepeatedEvent')."'; + } +} + // End --> "; } @@ -2011,7 +2032,7 @@ function show_add_form($id = '') { global $MonthsLong; - + $htmlHeadXtra[] = to_javascript(); // the default values for the forms if ($_GET['originalresource'] !== 'no') { @@ -2168,7 +2189,7 @@ function show_add_form($id = '') - @@ -2241,7 +2262,7 @@ function show_add_form($id = '')
    +
    - @@ -2289,7 +2310,7 @@ function show_add_form($id = '')
    +
    - @@ -2347,7 +2368,7 @@ function show_add_form($id = '')
    +
    - @@ -2381,7 +2402,8 @@ function show_add_form($id = '') echo "\t\t\t\t\n"; } ?> -
    +
    + + @@ -2481,89 +2503,128 @@ function show_add_form($id = '') if(empty($id)) //only show repeat fields when adding the first time { ?> -


    + - - - - - - -
    - - - - - /> - - - - - - - + +
    +
      +
    +
    +    +
    +
    + + + + + - - - - - - - - - - - + +
    +
      +
    +
    +    +
    +
    + + + +