X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/2dba0bf4080805a0b712b06bc5c8e1ae67701e04..c07bef148aa59e35fe84e0c0cc8acff2cb5c6ee5:/forum/skins/default/media/js/osqa.main.js?ds=inline diff --git a/forum/skins/default/media/js/osqa.main.js b/forum/skins/default/media/js/osqa.main.js index 34d13b3..79cda45 100644 --- a/forum/skins/default/media/js/osqa.main.js +++ b/forum/skins/default/media/js/osqa.main.js @@ -688,11 +688,11 @@ function pickedTags(){ multipleSeparator: " "*/ formatItem: function(row, i, max, value) { - return row[1].split(".")[0] + " (" + row[1].split(".")[1] + ")"; + return row[1] + " (" + row[2] + ")"; }, formatResult: function(row, i, max, value){ - return row[0]; + return row[1]; } }); @@ -1076,4 +1076,23 @@ function yourWorkWillBeLost(e) { function browserTester(browserString) { return navigator.userAgent.toLowerCase().indexOf(browserString) > -1; +} + +// Add missing IE functionality +if (!window.addEventListener) { + if (window.attachEvent) { + window.addEventListener = function (type, listener, useCapture) { + window.attachEvent('on' + type, listener); + }; + window.removeEventListener = function (type, listener, useCapture) { + window.detachEvent('on' + type, listener); + }; + } else { + window.addEventListener = function (type, listener, useCapture) { + window['on' + type] = listener; + }; + window.removeEventListener = function (type, listener, useCapture) { + window['on' + type] = null; + }; + } } \ No newline at end of file