Remove extra span tags
This commit is contained in:
parent
9483e9b564
commit
72b7c8d291
1 changed files with 11 additions and 1 deletions
|
@ -57,6 +57,12 @@
|
||||||
return this.indexOf(searchString, position) === position;
|
return this.indexOf(searchString, position) === position;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
if (!String.prototype.endsWith) {
|
||||||
|
String.prototype.endsWith = function(suffix, length) {
|
||||||
|
var l = length || this.length;
|
||||||
|
return this.indexOf(suffix, l - suffix.length) !== -1;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
function getPageId() {
|
function getPageId() {
|
||||||
var id = document.location.href.split('#')[1];
|
var id = document.location.href.split('#')[1];
|
||||||
|
@ -1234,7 +1240,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function pathSplitter(path) {
|
function pathSplitter(path) {
|
||||||
return '<span>' + path.replace(/::/g, '::</span><span>');
|
var tmp = '<span>' + path.replace(/::/g, '::</span><span>');
|
||||||
|
if (tmp.endsWith("<span>")) {
|
||||||
|
return tmp.slice(0, tmp.length - 6);
|
||||||
|
}
|
||||||
|
return tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
function addTab(array, query, display) {
|
function addTab(array, query, display) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue