glossary MDL-23369 made glossary item autolink filter popups the right size
This commit is contained in:
@@ -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
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user