[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /interface lonwhatsnew.pm
raeburn
raeburn at source.lon-capa.org
Thu Dec 13 17:09:33 EST 2012
raeburn Thu Dec 13 22:09:33 2012 EDT
Modified files: (Branch: version_2_11_X)
/loncom/interface lonwhatsnew.pm
Log:
- For 2.11
- Backport 1.108, 1.109, 1.110 (part).
Index: loncom/interface/lonwhatsnew.pm
diff -u loncom/interface/lonwhatsnew.pm:1.105.2.3 loncom/interface/lonwhatsnew.pm:1.105.2.4
--- loncom/interface/lonwhatsnew.pm:1.105.2.3 Thu Oct 4 06:07:11 2012
+++ loncom/interface/lonwhatsnew.pm Thu Dec 13 22:09:33 2012
@@ -1,5 +1,5 @@
#
-# $Id: lonwhatsnew.pm,v 1.105.2.3 2012/10/04 06:07:11 raeburn Exp $
+# $Id: lonwhatsnew.pm,v 1.105.2.4 2012/12/13 22:09:33 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -285,6 +285,11 @@
$scripttag.='document.visible.submit();
}
+function thresholdreset() {
+ document.visible.command.value="reset";
+ document.visible.submit();
+}
+
function togglelogins() {
var total = document.visible.logincount.value;
var sumrow = document.visible.loginrow.value;
@@ -1663,12 +1668,9 @@
);
if (@{$warnings} > 0) {
@{$warnings} = sort { &cmp_title($a,$b,$res_title) } @{$warnings};
- $r->print('<form name="reset_tracking" method="post" action="/adm/whatsnew">'.
- ' <input type="hidden" name="command" value="reset" />'."\n".
- ' <input type="hidden" name="refpage" value="'.$refpage.'" />'.
- "\n");
$r->print('<tr class="LC_info_row">'.
- '<td class="LC_left_item">'.$lt{'reso'}.'</td>'.
+ '<td class="LC_left_item">'.$lt{'reso'}.
+ '<input type="hidden" name="command" value="" /></td>'.
'<td>'.$lt{'part'}.'</td><td>'.$lt{'nust'}.'</td>'.
'<td>'.$lt{'avat'}.'</td><td>'.$lt{'dedi'}.'</td>'.
'<td>'.$lt{'lare'}.'</td><td class="LC_right_item">'.
@@ -1704,7 +1706,7 @@
}
}
}
- $r->print('<tr class="LC_info_row"><td colspan="7" class="LC_right_item"><br /><input type="submit" name="counters" value="'.$lt{'rese'}.'" /></td></tr></form>');
+ $r->print('<tr class="LC_info_row"><td colspan="7" class="LC_right_item"><br /><input type="button" name="counters" value="'.$lt{'rese'}.'" onclick="javascript:thresholdreset();" /></td></tr>');
} elsif ($itemserror) {
$r->print('<tr class="LC_empty_row"><td>'.$itemserror.'</td></tr>');
} else {
@@ -1921,7 +1923,7 @@
my $forum_title = $$unread{$ressymb}{'title'};
my $type = 'Resource';
my $feedurl=&Apache::lonfeedback::get_feedurl($ressymb);
- my $disclink = $feedurl.'?symb='.$$unread{$ressymb}{symb};
+ my $disclink = $feedurl.'?symb='.&escape($$unread{$ressymb}{symb});
if ($feedurl =~ /bulletinboard/) {
$type = 'Discussion Board';
}
More information about the LON-CAPA-cvs
mailing list