--- loncom/html/res/adm/pages/annotator/admannotations.pm 2009/01/08 19:37:53 1.32
+++ loncom/html/res/adm/pages/annotator/admannotations.pm 2009/02/19 22:05:28 1.34
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# This will take annotations and then plug them into a page.
#
-# $Id: admannotations.pm,v 1.32 2009/01/08 19:37:53 raeburn Exp $
+# $Id: admannotations.pm,v 1.34 2009/02/19 22:05:28 schafran Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -75,6 +75,11 @@ sub construct_editor {
my $get_symb = &js_get_symb();
+ my %lt = ( 'close no save' => "Close",
+ 'save' => "Save",
+ 'cancel' => "Cancel",);
+ %lt = &Apache::lonlocal::texthash(%lt);
+
my $js = <
var timeout;
@@ -89,6 +94,11 @@ function changed() {
}
timeout=setTimeout('changed();','1000');
}
+
+function renameButton(){
+ document.getElementById("close").value="$lt{'cancel'}";
+}
+
ENDJS
@@ -102,20 +112,17 @@ ENDJS
my $end_page =
&Apache::loncommon::end_page();
- my %lt = ( 'close no save' => "Close (no save)",
- 'save' => "Save and Update",);
- %lt = &Apache::lonlocal::texthash(%lt);
return(<