removing duplicate methoads

revert-70aa11f8
kamidu 8 years ago
parent 7b3db2bdd6
commit 7698c12d80

@ -117,7 +117,9 @@ function addDeviceSelectedClass(checkbox) {
} }
function toTitleCase(str) { 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; var deviceTypeCount, compiledDeviceTypesCount = 0;
@ -126,10 +128,6 @@ function htmlspecialchars(text){
return jQuery('<div/>').text(text).html(); return jQuery('<div/>').text(text).html();
} }
function htmlspecialchars(text){
return jQuery('<div/>').text(text).html();
}
function loadDevices(searchType, searchParam) { function loadDevices(searchType, searchParam) {
var deviceListing = $("#device-listing"); var deviceListing = $("#device-listing");
var deviceListingSrc = deviceListing.attr("src"); var deviceListingSrc = deviceListing.attr("src");
@ -189,7 +187,6 @@ function openCollapsedNav(){
} }
/* /*
* DOM ready functions. * DOM ready functions.
*/ */

Loading…
Cancel
Save