Prevent undefined error
This commit is contained in:
parent
10a74c05ef
commit
6d48a8e1fb
|
|
@ -630,6 +630,9 @@ var tarteaucitron = {
|
||||||
tarteaucitron.userInterface.jsSizing('cookie');
|
tarteaucitron.userInterface.jsSizing('cookie');
|
||||||
tarteaucitron.userInterface.css('tarteaucitron', 'display', 'none');
|
tarteaucitron.userInterface.css('tarteaucitron', 'display', 'none');
|
||||||
tarteaucitron.userInterface.css('tarteaucitronBack', 'display', 'block');
|
tarteaucitron.userInterface.css('tarteaucitronBack', 'display', 'block');
|
||||||
|
tarteaucitron.fallback(['tarteaucitronInfoBox'], function (elem) {
|
||||||
|
elem.style.display = 'none';
|
||||||
|
}, true);
|
||||||
} else {
|
} else {
|
||||||
div.style.display = 'none';
|
div.style.display = 'none';
|
||||||
tarteaucitron.userInterface.css('tarteaucitron', 'display', 'none');
|
tarteaucitron.userInterface.css('tarteaucitron', 'display', 'none');
|
||||||
|
|
@ -661,7 +664,7 @@ var tarteaucitron = {
|
||||||
"order": function (id) {
|
"order": function (id) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var main = document.getElementById('tarteaucitronServices_' + id),
|
var main = document.getElementById('tarteaucitronServices_' + id),
|
||||||
allDivs = main.childNodes,
|
allDivs,
|
||||||
store = [],
|
store = [],
|
||||||
i;
|
i;
|
||||||
|
|
||||||
|
|
@ -669,6 +672,8 @@ var tarteaucitron = {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
allDivs = main.childNodes;
|
||||||
|
|
||||||
if (typeof Array.prototype.map === 'function') {
|
if (typeof Array.prototype.map === 'function') {
|
||||||
Array.prototype.map.call(main.children, Object).sort(function (a, b) {
|
Array.prototype.map.call(main.children, Object).sort(function (a, b) {
|
||||||
if (tarteaucitron.services[a.id.replace(/Line/g, '')].name > tarteaucitron.services[b.id.replace(/Line/g, '')].name) { return 1; }
|
if (tarteaucitron.services[a.id.replace(/Line/g, '')].name > tarteaucitron.services[b.id.replace(/Line/g, '')].name) { return 1; }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue