utility.js: remove unused get_url_parameter function.

Unused since 025d66a6.
This commit is contained in:
evazion
2018-08-04 12:25:49 -05:00
parent 7c524f867b
commit 0c5b5e28b5

View File

@@ -114,21 +114,6 @@ Utility.regexp_escape = function(string) {
return string.replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1");
}
Utility.get_url_parameter = function(sParam) {
var sPageURL = decodeURIComponent(window.location.search.substring(1)),
sURLVariables = sPageURL.split('&'),
sParameterName,
i;
for (i = 0; i < sURLVariables.length; i++) {
sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] === sParam) {
return sParameterName[1] === undefined ? true : sParameterName[1];
}
}
};
Utility.sorttable = function(table) {
table.stupidtable();
table.bind("aftertablesort", function(event, data) {
@@ -182,4 +167,4 @@ $(function() {
})
});
export default Utility
export default Utility