removing duplicate methoads

This commit is contained in:
kamidu 2017-01-18 10:07:59 +05:30
parent 7b3db2bdd6
commit 7698c12d80

View File

@ -117,7 +117,9 @@ function addDeviceSelectedClass(checkbox) {
}
function toTitleCase(str) {
return str.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});
return str.replace(/\w\S*/g, function (txt) {
return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
});
}
var deviceTypeCount, compiledDeviceTypesCount = 0;
@ -126,10 +128,6 @@ function htmlspecialchars(text){
return jQuery('<div/>').text(text).html();
}
function htmlspecialchars(text){
return jQuery('<div/>').text(text).html();
}
function loadDevices(searchType, searchParam) {
var deviceListing = $("#device-listing");
var deviceListingSrc = deviceListing.attr("src");
@ -189,7 +187,6 @@ function openCollapsedNav(){
}
/*
* DOM ready functions.
*/