[LON-CAPA-cvs] cvs: loncom /interface lonfeedback.pm
www
www at source.lon-capa.org
Sat Dec 10 18:16:36 EST 2011
www Sat Dec 10 23:16:36 2011 EDT
Modified files:
/loncom/interface lonfeedback.pm
Log:
Bug #2359: modal windows for feedback
Index: loncom/interface/lonfeedback.pm
diff -u loncom/interface/lonfeedback.pm:1.307 loncom/interface/lonfeedback.pm:1.308
--- loncom/interface/lonfeedback.pm:1.307 Sat Dec 10 22:54:34 2011
+++ loncom/interface/lonfeedback.pm Sat Dec 10 23:16:36 2011
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Feedback
#
-# $Id: lonfeedback.pm,v 1.307 2011/12/10 22:54:34 www Exp $
+# $Id: lonfeedback.pm,v 1.308 2011/12/10 23:16:36 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1104,14 +1104,8 @@
if ($outputtarget ne 'tex') {
if (&editing_allowed($escsymb.':::'.$idx,$group)) {
if (($env{'user.domain'} eq $contrib{$idx.':senderdomain'}) && ($env{'user.name'} eq $contrib{$idx.':sendername'})) {
- $sender.=' <a href="/adm/feedback?editdisc='.
- $escsymb.':::'.$idx;
- if ($$newpostsflag) {
- $sender .= '&previous='.$prevread;
- }
- $sender .= &group_args($group);
- $sender .= '">'.&mt('Edit').'</a>';
-
+ $sender.=' '.
+ &discussion_link($symb,&mt('Edit'),'editdisc',$idx,$$newpostsflag,$prevread,&group_args($group));
unless ($seeid) {
my $grpargs = &group_args($group);
$sender.=" <a href=\"javascript:verifydelete('studentdelete','$escsymb','$idx','$$newpostsflag','$prevread','$grpargs')";
@@ -1122,21 +1116,12 @@
if ($seeid) {
if ($hiddens{$idx}) {
unless ($studenthidden) {
- $sender.=' <a href="/adm/feedback?unhide='.
- $escsymb.':::'.$idx;
- if ($$newpostsflag) {
- $sender .= '&previous='.$prevread;
- }
- $sender .= '">'.&mt('Make Visible').'</a>';
+ $sender.=' '.
+ &discussion_link($symb,&mt('Make Visible'),'unhide',$idx,$$newpostsflag,$prevread,&group_args($group));
}
} else {
- $sender.=' <a href="/adm/feedback?hide='.
- $escsymb.':::'.$idx;
- if ($$newpostsflag) {
- $sender .= '&previous='.$prevread;
- }
- $sender .= &group_args($group);
- $sender .= '">'.&mt('Hide').'</a>';
+ $sender.=' '.
+ &discussion_link($symb,&mt('Hide'),'hide',$idx,$$newpostsflag,$prevread,&group_args($group));
}
my $grpargs = &group_args($group);
$sender.=
@@ -1312,9 +1297,8 @@
my @postversions = ();
$$discussionitems[$idx] .= &mt('This post has been edited by the author.');
if ($seeid) {
- $$discussionitems[$idx] .= ' <a href="/adm/feedback?allversions='.$escsymb.':::'.$idx;
- $$discussionitems[$idx] .= &group_args($group);
- $$discussionitems[$idx] .= '">'.&mt('Display all versions').'</a>';
+ $$discussionitems[$idx] .= ' '.
+ &discussion_link($symb,&mt('Display all versions'),'allversions',$idx,$$newpostsflag,$prevread,&group_args($group));
}
$$discussionitems[$idx].='<br/>'.&mt('Earlier version(s) were posted on: ');
if ($contrib{$idx.':history'} =~ m/:/) {
More information about the LON-CAPA-cvs
mailing list