[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm
raeburn
raeburn at source.lon-capa.org
Sun Feb 16 17:04:15 EST 2014
raeburn Sun Feb 16 22:04:15 2014 EDT
Modified files:
/loncom/interface loncommon.pm
Log:
- Stored Links interface.
- set_wishlistlink() function which opens the pop-up window needs to encode
title and path attributes in the query string it appends to /adm/wishlist
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.1174 loncom/interface/loncommon.pm:1.1175
--- loncom/interface/loncommon.pm:1.1174 Wed Feb 12 20:29:35 2014
+++ loncom/interface/loncommon.pm Sun Feb 16 22:04:14 2014
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.1174 2014/02/12 20:29:35 raeburn Exp $
+# $Id: loncommon.pm,v 1.1175 2014/02/16 22:04:14 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -7656,9 +7656,11 @@
title = document.title;
title = title.replace(/^LON-CAPA /,'');
}
+ title = encodeURIComponent(title);
if (!path) {
path = location.pathname;
}
+ path = encodeURIComponent(path);
Win = window.open('/adm/wishlist?mode=newLink&setTitle='+title+'&setPath='+path,
'wishlistNewLink','width=560,height=350,scrollbars=0');
}
More information about the LON-CAPA-cvs
mailing list