--- loncom/interface/lonextresedit.pm 2017/11/30 14:41:20 1.21
+++ loncom/interface/lonextresedit.pm 2017/12/15 16:33:51 1.22
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: lonextresedit.pm,v 1.21 2017/11/30 14:41:20 raeburn Exp $
+# $Id: lonextresedit.pm,v 1.22 2017/12/15 16:33:51 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -563,7 +563,7 @@ sub extedit_form {
'
'.
''.&mt('Append to URL[_1]',
' ('.$providerurl.')
').
- '
'.
+ '
'.
'
';
}
my $chooser = $toolelem;
@@ -673,6 +673,7 @@ sub extedit_javascript {
} else {
$providerurl = $toolsref->{$key}->{'url'};
}
+ $providerurl = &LONCAPA::map::qtunescape($providerurl);
$toolsjs .= ' ltitools['.$i.'] = '."'$key';\n".
' ltitoolsTarget['.$i.'] = '."'$target';\n".
' ltitoolsWidth['.$i.'] = '."'$width';\n".
@@ -1018,13 +1019,13 @@ function updateExttool(caller,form,suppl
document.getElementById(appenddiv).style.display = 'inline';
if (document.getElementById(providerurl)) {
if ((ltitoolsUrl[j] != '') && (ltitoolsUrl[j] != null)) {
- document.getElementById(providerurl).innerHTML.value = ' ('+ltitoolsUrl[j]+')
';
+ document.getElementById(providerurl).innerHTML = ' ('+ltitoolsUrl[j]+')
';
}
}
} else {
document.getElementById(appenddiv).style.display = 'none';
if (document.getElementById(providerurl)) {
- document.getElementById(providerurl).innerHTML.value = '';
+ document.getElementById(providerurl).innerHTML = '';
}
}
}