diff options
author | Andrew Dolgov <[email protected]> | 2007-05-15 12:41:39 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-05-15 12:41:39 +0100 |
commit | b07b61da019a85b354ffc2941e94cf3374968c41 (patch) | |
tree | 2d84788f0e2f2cdbd2580b30e43beb14d0beb7c9 /functions.js | |
parent | 3c19b058488d0ff0aa8740d5524aa49c4bcec38f (diff) |
invalidate article cache when editing tags
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/functions.js b/functions.js index fcb086b1c..f922183cc 100644 --- a/functions.js +++ b/functions.js @@ -2,6 +2,14 @@ var hotkeys_enabled = true; var debug_mode_enabled = false; var xmlhttp_rpc = Ajax.getTransport(); +/* add method to remove element from array */ + +Array.prototype.remove = function(s) { + for (var i=0; i < this.length; i++) { + if (s == this[i]) this.splice(i, 1); + } +} + function browser_has_opacity() { return navigator.userAgent.match("Gecko") != null || navigator.userAgent.match("Opera") != null; |