mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-11-02 09:47:14 +00:00
updated vendor files and paths
This commit is contained in:
15
static/scripts/utils.js
Normal file
15
static/scripts/utils.js
Normal file
@@ -0,0 +1,15 @@
|
||||
Array.prototype.remove = function() {
|
||||
var what, a = arguments, L = a.length, ax;
|
||||
while (L && this.length) {
|
||||
what = a[--L];
|
||||
while ((ax = this.indexOf(what)) !== -1) {
|
||||
this.splice(ax, 1);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
};
|
||||
|
||||
function escapeHTML(html) {
|
||||
return document.createElement('div').appendChild(
|
||||
document.createTextNode(html)).parentNode.innerHTML;
|
||||
}
|
||||
Reference in New Issue
Block a user