Simplify JS code causing browser console warnings
This commit is contained in:
Родитель
d64d368bc2
Коммит
29693b06a8
12
ext/intro.js
12
ext/intro.js
|
@ -295,18 +295,6 @@
|
|||
*/
|
||||
function _previousStep() {
|
||||
return;
|
||||
this._direction = 'backward';
|
||||
|
||||
if (this._currentStep === 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var nextStep = this._introItems[--this._currentStep];
|
||||
if (typeof (this._introBeforeChangeCallback) !== 'undefined') {
|
||||
this._introBeforeChangeCallback.call(this, nextStep.element);
|
||||
}
|
||||
|
||||
_showElement.call(this, nextStep);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -264,28 +264,6 @@
|
|||
}
|
||||
|
||||
var accelDevice = false;
|
||||
|
||||
function redirectClient(val) {
|
||||
return;
|
||||
var qs = location.search.substr(1);
|
||||
var newQs = '?';
|
||||
|
||||
$.each(qs.split('&'), function (i, s) {
|
||||
if (i > 0) {
|
||||
newQs += '&';
|
||||
}
|
||||
if (s.indexOf('client') !== 0) {
|
||||
newQs += s;
|
||||
|
||||
}
|
||||
});
|
||||
if (newQs.length > 1) {
|
||||
newQs += '&';
|
||||
}
|
||||
newQs += 'client=' + val;
|
||||
location.href = '/webclient' + newQs + location.hash;
|
||||
|
||||
}
|
||||
|
||||
function isAccelDevice() {
|
||||
return accelDevice;
|
||||
|
|
Загрузка…
Ссылка в новой задаче