1 M.core_message = M.core_message || {};
3 M.core_message.init_focus = function(Y, eid) {
4 document.getElementById(eid).focus();
7 M.core_message.init_refresh_page = function(Y, delay, url) {
8 var delay_callback = function() {
9 document.location.replace(url);
11 setTimeout(delay_callback, delay);
14 M.core_message.combinedsearchgotfocus = function(e) {
15 if (e.target.get('value')==this.defaultsearchterm) {
20 M.core_message.init_editsettings = function(Y) {
24 var disableall = Y.one(".disableallcheckbox");
25 disableall.on('change', editsettings.changeState);
26 disableall.simulate("change");
29 changeState : function(e) {
30 Y.all('.notificationpreference').each(function(node) {
31 var disabled = e.target.get('checked');
33 node.removeAttribute('disabled');
35 node.setAttribute('disabled', 1)