$onchange = 'M.core_group.membersCombo.refreshMembers();';
-echo '<select name="groups[]" multiple="multiple" id="groups" size="15" class="select" onchange="'.$onchange.'"'."\n";
-echo ' onclick="window.status=this.selectedIndex==-1 ? \'\' : this.options[this.selectedIndex].title;" onmouseout="window.status=\'\';">'."\n";
+echo '<select name="groups[]" multiple="multiple" id="groups" size="15" class="select" onchange="'.$onchange.'">'."\n";
$groups = groups_get_all_groups($courseid);
$selectedname = ' ';
*/
function toHtml() {
$text = $this->_attributes['value'];
- $onmouseover = "window.status=\'" . $text . "\';";
- $onmouseout = "window.status=\'\';";
return "<noscript><div>" . parent::toHtml() . '</div></noscript><script type="text/javascript">' . $this->_js . "\n"
- . 'document.write(\'<a href="#" onclick="' . $this->_onclick . '" onmouseover="' . $onmouseover . '" onmouseout="' . $onmouseout . '">'
+ . 'document.write(\'<a href="#" onclick="' . $this->_onclick . '">'
. $text . "</a>');\n</script>";
}
}
var controllerbutton = Y.one(controllerbutton);
var linkname = controllerbutton.get('value');
// Link node which will replace controller button
- var link = Y.Node.create('<a href="#" onmouseover="window.status=\''+linkname+'\';" onmouseout="window.status=\'\';">'+linkname+'</a>');
+ var link = Y.Node.create('<a href="#">'+linkname+'</a>');
// Attach onclick event to link
link.on('click', this.onClick, this);
Y.delegate('cut', M.mod_quiz.secure_window.prevent, document, '*');
Y.delegate('copy', M.mod_quiz.secure_window.prevent, document, '*');
Y.delegate('paste', M.mod_quiz.secure_window.prevent, document, '*');
- M.mod_quiz.secure_window.clear_status;
Y.on('beforeprint', function() {
Y.one(document.body).setStyle('display', 'none');
}, window);
Y.on('key', M.mod_quiz.secure_window.prevent, '*', 'down:67,86,88+meta');
},
- clear_status: function() {
- window.status = '';
- setTimeout(M.mod_quiz.secure_window.clear_status, 10);
- },
-
is_content_editable: function(n) {
if (n.test('[contenteditable=true]')) {
return true;