MDL-42597 yui: remove stale built files
This commit is contained in:
-58
@@ -1,58 +0,0 @@
|
||||
YUI.add('moodle-core-maintenancemode', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
* Maintenance mode timer display.
|
||||
*
|
||||
* @module moodle-core-maintenancemodetimer
|
||||
*/
|
||||
var MAINTENANCEMODETIMER = function() {
|
||||
MAINTENANCEMODETIMER.superclass.constructor.apply(this, arguments);
|
||||
};
|
||||
|
||||
Y.extend(MAINTENANCEMODE, Y.Base, {
|
||||
timeleftinsec: 0,
|
||||
maintenancenode: Y.one('.box.maintenancewarning'),
|
||||
|
||||
/**
|
||||
* Initialise timer if maintenancemode set.
|
||||
*
|
||||
* @param config {Array} array with timeleftinsec set.
|
||||
*/
|
||||
initializer: function(config) {
|
||||
if (this.maintenancenode) {
|
||||
this.timeleftinsec = config.timeleftinsec;
|
||||
this.maintenancenode.setAttribute('aria-live', 'polite');
|
||||
Y.later(1000, this, 'updatetimer', null, true);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Decrement time left and update display text.
|
||||
*/
|
||||
updatetimer: function() {
|
||||
this.timeleftinsec -= 1;
|
||||
if (this.timeleftinsec <= 0) {
|
||||
this.maintenancenode.set('text', M.str.admin.sitemaintenance);
|
||||
} else {
|
||||
var a = {};
|
||||
a.sec = this.timeleftinsec % 60;
|
||||
a.min = Math.floor(this.timeleftinsec / 60);
|
||||
this.maintenancenode.set('text', M.util.get_string('maintenancemodeisscheduled', 'admin', a));
|
||||
}
|
||||
// Set error class to highlight the importance.
|
||||
if (this.timeleftinsec < 30) {
|
||||
this.maintenancenode.addClass('error')
|
||||
.removeClass('warning');
|
||||
} else {
|
||||
this.maintenancenode.addClass('warning')
|
||||
.removeClass('error');
|
||||
}
|
||||
}
|
||||
});
|
||||
M.core = M.core || {};
|
||||
M.core.maintenancemodetimer = M.core.maintenancemodetimer || function(config) {
|
||||
return new MAINTENANCEMODETIMER(config);
|
||||
};
|
||||
|
||||
|
||||
}, '@VERSION@', {"requires": ["base", "node"]});
|
||||
@@ -1 +0,0 @@
|
||||
YUI.add("moodle-core-maintenancemode",function(e,t){var n=function(){n.superclass.constructor.apply(this,arguments)};e.extend(MAINTENANCEMODE,e.Base,{timeleftinsec:0,maintenancenode:e.one(".box.maintenancewarning"),initializer:function(t){this.maintenancenode&&(this.timeleftinsec=t.timeleftinsec,this.maintenancenode.setAttribute("aria-live","polite"),e.later(1e3,this,"updatetimer",null,!0))},updatetimer:function(){this.timeleftinsec-=1;if(this.timeleftinsec<=0)this.maintenancenode.set("text",M.str.admin.sitemaintenance);else{var e={};e.sec=this.timeleftinsec%60,e.min=Math.floor(this.timeleftinsec/60),this.maintenancenode.set("text",M.util.get_string("maintenancemodeisscheduled","admin",e))}this.timeleftinsec<30?this.maintenancenode.addClass("error").removeClass("warning"):this.maintenancenode.addClass("warning").removeClass("error")}}),M.core=M.core||{},M.core.maintenancemodetimer=M.core.maintenancemodetimer||function(e){return new n(e)}},"@VERSION@",{requires:["base","node"]});
|
||||
@@ -1,58 +0,0 @@
|
||||
YUI.add('moodle-core-maintenancemode', function (Y, NAME) {
|
||||
|
||||
/**
|
||||
* Maintenance mode timer display.
|
||||
*
|
||||
* @module moodle-core-maintenancemodetimer
|
||||
*/
|
||||
var MAINTENANCEMODETIMER = function() {
|
||||
MAINTENANCEMODETIMER.superclass.constructor.apply(this, arguments);
|
||||
};
|
||||
|
||||
Y.extend(MAINTENANCEMODE, Y.Base, {
|
||||
timeleftinsec: 0,
|
||||
maintenancenode: Y.one('.box.maintenancewarning'),
|
||||
|
||||
/**
|
||||
* Initialise timer if maintenancemode set.
|
||||
*
|
||||
* @param config {Array} array with timeleftinsec set.
|
||||
*/
|
||||
initializer: function(config) {
|
||||
if (this.maintenancenode) {
|
||||
this.timeleftinsec = config.timeleftinsec;
|
||||
this.maintenancenode.setAttribute('aria-live', 'polite');
|
||||
Y.later(1000, this, 'updatetimer', null, true);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Decrement time left and update display text.
|
||||
*/
|
||||
updatetimer: function() {
|
||||
this.timeleftinsec -= 1;
|
||||
if (this.timeleftinsec <= 0) {
|
||||
this.maintenancenode.set('text', M.str.admin.sitemaintenance);
|
||||
} else {
|
||||
var a = {};
|
||||
a.sec = this.timeleftinsec % 60;
|
||||
a.min = Math.floor(this.timeleftinsec / 60);
|
||||
this.maintenancenode.set('text', M.util.get_string('maintenancemodeisscheduled', 'admin', a));
|
||||
}
|
||||
// Set error class to highlight the importance.
|
||||
if (this.timeleftinsec < 30) {
|
||||
this.maintenancenode.addClass('error')
|
||||
.removeClass('warning');
|
||||
} else {
|
||||
this.maintenancenode.addClass('warning')
|
||||
.removeClass('error');
|
||||
}
|
||||
}
|
||||
});
|
||||
M.core = M.core || {};
|
||||
M.core.maintenancemodetimer = M.core.maintenancemodetimer || function(config) {
|
||||
return new MAINTENANCEMODETIMER(config);
|
||||
};
|
||||
|
||||
|
||||
}, '@VERSION@', {"requires": ["base", "node"]});
|
||||
Reference in New Issue
Block a user