Merge 2f3b9fe527 into cbb55df039
This commit is contained in:
commit
71d9f9308a
|
|
@ -174,11 +174,6 @@ rescale = function(factor) {
|
||||||
factor = 0.1;
|
factor = 0.1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (conf.scale === factor) {
|
|
||||||
//Util.Debug("Display already scaled to '" + factor + "'");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
conf.scale = factor;
|
conf.scale = factor;
|
||||||
x = c.width - c.width * factor;
|
x = c.width - c.width * factor;
|
||||||
y = c.height - c.height * factor;
|
y = c.height - c.height * factor;
|
||||||
|
|
|
||||||
|
|
@ -37,11 +37,14 @@ if (!window.$D) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// init log level reading the logging HTTP param
|
// init log level reading the logging HTTP param
|
||||||
WebUtil.init_logging = function() {
|
WebUtil.init_logging = function(level) {
|
||||||
Util._log_level = (document.location.href.match(
|
if (typeof level === 'undefined') {
|
||||||
/logging=([A-Za-z0-9\._\-]*)/) ||
|
Util._log_level = (document.location.href.match(
|
||||||
['', Util._log_level])[1];
|
/logging=([A-Za-z0-9\._\-]*)/) ||
|
||||||
|
['', Util._log_level])[1];
|
||||||
|
} else {
|
||||||
|
Util._log_level = level;
|
||||||
|
}
|
||||||
Util.init_logging();
|
Util.init_logging();
|
||||||
};
|
};
|
||||||
WebUtil.init_logging();
|
WebUtil.init_logging();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue