[LON-CAPA-cvs] cvs: loncom /interface londocs.pm lonfeedback.pm lonmsgdisplay.pm lonsupportreq.pm portfolio.pm /publisher lonpubdir.pm
raeburn
raeburn at source.lon-capa.org
Sun Aug 11 11:15:44 EDT 2019
raeburn Sun Aug 11 15:15:44 2019 EDT
Modified files:
/loncom/interface londocs.pm lonfeedback.pm lonmsgdisplay.pm
lonsupportreq.pm portfolio.pm
/loncom/publisher lonpubdir.pm
Log:
- Prepend LC_ to id of hidden form element used in client-side checking for
uploaded file size, for purposes of namespacing.
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.662 loncom/interface/londocs.pm:1.663
--- loncom/interface/londocs.pm:1.662 Wed Aug 7 16:08:04 2019
+++ loncom/interface/londocs.pm Sun Aug 11 15:15:39 2019
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.662 2019/08/07 16:08:04 raeburn Exp $
+# $Id: londocs.pm,v 1.663 2019/08/11 15:15:39 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -5968,7 +5968,7 @@
$quotainfo
$lt{'file'}:<br />
<input type="file" name="uploaddoc" class="LC_flUpload" size="40" $disabled />
- <input type="hidden" id="free_space" value="$free_space" />
+ <input type="hidden" id="LC_free_space" value="$free_space" />
FIUP
my $checkbox=(<<CHBO);
Index: loncom/interface/lonfeedback.pm
diff -u loncom/interface/lonfeedback.pm:1.381 loncom/interface/lonfeedback.pm:1.382
--- loncom/interface/lonfeedback.pm:1.381 Wed Aug 7 16:08:04 2019
+++ loncom/interface/lonfeedback.pm Sun Aug 11 15:15:39 2019
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Feedback
#
-# $Id: lonfeedback.pm,v 1.381 2019/08/07 16:08:04 raeburn Exp $
+# $Id: lonfeedback.pm,v 1.382 2019/08/11 15:15:39 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2061,7 +2061,7 @@
$r->print(<<END);
<p>
$lt{'atta'} $attachmaxtext: <input type="file" name="attachment" class="LC_flUpload" />
-<input type="hidden" id="free_space" value="131072" />
+<input type="hidden" id="LC_free_space" value="131072" />
</p>
END
}
Index: loncom/interface/lonmsgdisplay.pm
diff -u loncom/interface/lonmsgdisplay.pm:1.187 loncom/interface/lonmsgdisplay.pm:1.188
--- loncom/interface/lonmsgdisplay.pm:1.187 Wed Aug 7 16:08:04 2019
+++ loncom/interface/lonmsgdisplay.pm Sun Aug 11 15:15:39 2019
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines for messaging display
#
-# $Id: lonmsgdisplay.pm,v 1.187 2019/08/07 16:08:04 raeburn Exp $
+# $Id: lonmsgdisplay.pm,v 1.188 2019/08/11 15:15:39 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1419,7 +1419,7 @@
$attachrow = '<tr><td colspan="3"><b>'.$lt{'atta'}.'</b> '.$attachmax{'text'}
.': <input type="file" name="attachment" class="LC_flUpload" multiple />'
.'</td></tr>'
- .'<input type="hidden" id="free_space" value="'.$attachmax{'num'}.'" />';
+ .'<input type="hidden" id="LC_free_space" value="'.$attachmax{'num'}.'" />';
}
if (&Apache::lonnet::allowed('srm',$env{'request.course.id'})
|| &Apache::lonnet::allowed('srm',$env{'request.course.id'}.
Index: loncom/interface/lonsupportreq.pm
diff -u loncom/interface/lonsupportreq.pm:1.97 loncom/interface/lonsupportreq.pm:1.98
--- loncom/interface/lonsupportreq.pm:1.97 Wed Aug 7 16:08:04 2019
+++ loncom/interface/lonsupportreq.pm Sun Aug 11 15:15:40 2019
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Helpdesk request form
#
-# $Id: lonsupportreq.pm,v 1.97 2019/08/07 16:08:04 raeburn Exp $
+# $Id: lonsupportreq.pm,v 1.98 2019/08/11 15:15:40 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -583,7 +583,7 @@
$showmax = ' ('.sprintf("%.2f",$showmax).' '.&mt('MB max.').')';
$output .= &Apache::lonhtmlcommon::row_title($html_lt{'opfi'},undef,$css[$i])
.' <input type="file" name="screenshot" class="LC_flUpload" size="20" />'
- .'<input type="hidden" id="free_space" value="'.$max.'" />'
+ .'<input type="hidden" id="LC_free_space" value="'.$max.'" />'
.'<br />'."\n".$html_lt{'uplf'}.$showmax."\n"
.&Apache::lonhtmlcommon::row_closure();
$num ++;
Index: loncom/interface/portfolio.pm
diff -u loncom/interface/portfolio.pm:1.260 loncom/interface/portfolio.pm:1.261
--- loncom/interface/portfolio.pm:1.260 Wed Aug 7 16:08:04 2019
+++ loncom/interface/portfolio.pm Sun Aug 11 15:15:40 2019
@@ -1,7 +1,7 @@
# The LearningOnline Network
# portfolio browser
#
-# $Id: portfolio.pm,v 1.260 2019/08/07 16:08:04 raeburn Exp $
+# $Id: portfolio.pm,v 1.261 2019/08/11 15:15:40 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -122,7 +122,7 @@
.'<legend>'.$lt{'upload_label'}.'</legend>'
.$groupitem
.'<input name="uploaddoc" type="file" class="LC_flUpload" />'
- .'<input type="hidden" id="free_space" value="'.$free_space.'" />'
+ .'<input type="hidden" id="LC_free_space" value="'.$free_space.'" />'
.'<input type="hidden" name="currentpath" value="'.$current_path.'" />'
.'<input type="hidden" name="action" value="'.$env{"form.action"}.'" />'
.'<input type="hidden" name="symb" value="'.$env{"form.symb"}.'" />'
Index: loncom/publisher/lonpubdir.pm
diff -u loncom/publisher/lonpubdir.pm:1.171 loncom/publisher/lonpubdir.pm:1.172
--- loncom/publisher/lonpubdir.pm:1.171 Wed Aug 7 16:08:13 2019
+++ loncom/publisher/lonpubdir.pm Sun Aug 11 15:15:43 2019
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Authoring Space Directory Lister
#
-# $Id: lonpubdir.pm,v 1.171 2019/08/07 16:08:13 raeburn Exp $
+# $Id: lonpubdir.pm,v 1.172 2019/08/11 15:15:43 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -587,7 +587,7 @@
<legend>$lt{'updc'}</legend>
<input type="hidden" name="filename" value="/priv$thisdisfn/" />
<input type="file" name="upfile" class="LC_flUpload testclass" size="20" />
- <input type="hidden" id="free_space" value=$free_space />
+ <input type="hidden" id="LC_free_space" value=$free_space />
<input type="button" value="$lt{'uplo'}" onclick="checkUpload(this.form)" />
</fieldset>
</form>
More information about the LON-CAPA-cvs
mailing list