From 473170c4fa664037dff5b3f07ef2f1a742724120 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Thu, 13 Feb 2020 13:26:31 -0500 Subject: Note and Indo column ask for textarea when updated --- GradeBook_lib.tcl | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'GradeBook_lib.tcl') diff --git a/GradeBook_lib.tcl b/GradeBook_lib.tcl index 8c2f14d..7d89afe 100755 --- a/GradeBook_lib.tcl +++ b/GradeBook_lib.tcl @@ -1949,11 +1949,23 @@ proc htmlEditUserGradeValue {permission_list user } { set FirstName [SelectColValue4User FirstName $modified_user] set LastName [SelectColValue4User LastName $modified_user] set old_value [SelectColValue4User $modified_column $modified_user] + set column_category [SelectColValue4User $modified_column _Col_Category_] puts "
" puts "Change grade for student $FirstName $LastName with user name $modified_user" puts "
" - puts "$modified_column old value: \{$old_value\}," - puts "new value:
" + set needs_textarea false + switch $column_category { + Note {set needs_textarea true} + Info {set needs_textarea true} + default { } + } + if { !$needs_textarea } { + puts "$modified_column old value: \{$old_value\}," + puts "new value:
" + } else { + puts "$modified_column:" + puts "

" + } puts {} puts [join [ list {} ] ""] puts [join [ list {} ] "" ] -- cgit v1.2.3