glossary MDL-23369 made glossary item autolink filter popups the right size

This commit is contained in:
Andrew Davis
2010-07-22 05:51:40 +00:00
parent f954e12ea8
commit aa28106896
2 changed files with 10 additions and 2 deletions
+9 -1
View File
@@ -1554,6 +1554,14 @@ function old_onload_focus(formid, controlname) {
}
function build_querystring(obj) {
return convert_object_to_string(obj, '&');
}
function build_windowoptionsstring(obj) {
return convert_object_to_string(obj, ',');
}
function convert_object_to_string(obj, separator) {
if (typeof obj !== 'object') {
return null;
}
@@ -1569,7 +1577,7 @@ function build_querystring(obj) {
list.push(k+'='+encodeURIComponent(value));
}
}
return list.join('&');
return list.join(separator);
}
function stripHTML(str) {
+1 -1
View File
@@ -29,7 +29,7 @@ YUI.add('moodle-mod_glossary-autolinker', function(Y) {
openpopup(e, {
url : this.getAttribute('href')+'&popup=1',
name : popupname,
options : build_querystring(popupoptions)
options : build_windowoptionsstring(popupoptions)
})
}, Y.one(document.body), 'a.glossary.autolink');
}