[LON-CAPA-cvs] cvs: loncom /homework grades.pm
www
www at source.lon-capa.org
Fri Dec 23 15:04:46 EST 2011
www Fri Dec 23 20:04:46 2011 EDT
Modified files:
/loncom/homework grades.pm
Log:
Bug #6165: leave it to the browser to decide whether or not to have scrollbars
when composing messages to students
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.667 loncom/homework/grades.pm:1.668
--- loncom/homework/grades.pm:1.667 Wed Dec 21 21:25:36 2011
+++ loncom/homework/grades.pm Fri Dec 23 20:04:46 2011
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.667 2011/12/21 21:25:36 www Exp $
+# $Id: grades.pm,v 1.668 2011/12/23 20:04:46 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1524,17 +1524,15 @@
function savedMsgHeader(Nmsg,usrctr,fullname) {
var height = 70*Nmsg+250;
- var scrollbar = "no";
if (height > 600) {
height = 600;
- scrollbar = "yes";
}
var xpos = (screen.width-600)/2;
xpos = (xpos < 0) ? '0' : xpos;
var ypos = (screen.height-height)/2-30;
ypos = (ypos < 0) ? '0' : ypos;
- pWin = window.open('', 'MessageCenter', 'resizable=yes,toolbar=no,location=no,scrollbars='+scrollbar+',screenx='+xpos+',screeny='+ypos+',width=700,height='+height);
+ pWin = window.open('', 'MessageCenter', 'resizable=yes,toolbar=no,location=no,scrollbars=yes,screenx='+xpos+',screeny='+ypos+',width=700,height='+height);
pWin.focus();
pDoc = pWin.document;
pDoc.$docopen;
More information about the LON-CAPA-cvs
mailing list