multipleSeparator: " "*/\r
\r
formatItem: function(row, i, max, value) {\r
- return row[1].split(".")[0] + " (" + row[1].split(".")[1] + ")";\r
+ return row[1] + " (" + row[2] + ")";\r
},\r
\r
formatResult: function(row, i, max, value){\r
- return row[0];\r
+ return row[1];\r
}\r
\r
});\r
\r
function yourWorkWillBeLost(e) {\r
if(browserTester('chrome')) {\r
- return "You sure you want to leave? Your work will be lost.";\r
+ return "Are you sure you want to leave? Your work will be lost.";\r
} else if(browserTester('safari')) {\r
- return "You sure you want to leave? Your work will be lost.";\r
+ return "Are you sure you want to leave? Your work will be lost.";\r
} else {\r
if(!e) e = window.event;\r
e.cancelBubble = true;\r
- e.returnValue = 'If you leave your work will be lost.';\r
+ e.returnValue = 'If you leave, your work will be lost.';\r
\r
if (e.stopPropagation) {\r
e.stopPropagation();\r
}\r
\r
function browserTester(browserString) {\r
- var test = navigator.userAgent;\r
return navigator.userAgent.toLowerCase().indexOf(browserString) > -1;\r
+}\r
+\r
+// Add missing IE functionality\r
+if (!window.addEventListener) {\r
+ if (window.attachEvent) {\r
+ window.addEventListener = function (type, listener, useCapture) {\r
+ window.attachEvent('on' + type, listener);\r
+ };\r
+ window.removeEventListener = function (type, listener, useCapture) {\r
+ window.detachEvent('on' + type, listener);\r
+ };\r
+ } else {\r
+ window.addEventListener = function (type, listener, useCapture) {\r
+ window['on' + type] = listener;\r
+ };\r
+ window.removeEventListener = function (type, listener, useCapture) {\r
+ window['on' + type] = null;\r
+ };\r
+ }\r
}
\ No newline at end of file