isudatateam / datateam

Require template literals instead of string concatenation JS-0246
Anti-pattern
Minor
3 months ago3 months old
Unexpected string concatenation
176	// Read any hash links
177	var hash = document.location.hash;
178	if (hash) {
179		$('.nav-tabs a[href="'+hash.replace(prefix,"")+'"]').tab('show');180	}
181};
182
Unexpected string concatenation
171	// Change hash for page-reload
172	var prefix = "tab_";
173	$('.nav-tabs.maintabs a').on('shown.bs.tab', function (e) {
174	    window.location.hash = e.target.hash.replace("#", "#" + prefix);175	})
176	// Read any hash links
177	var hash = document.location.hash;
Unexpected string concatenation
151	});
152	$(".sa").click(function(){
153		var tabtitle = $(this).attr("id").replace("-selectall", "");
154		$("#" + tabtitle +"-ui input:enabled[type='checkbox']").prop('checked', true);155	});
156	$("#missingvalue").change(function(){
157		if ($(this).val() == '__custom__'){
Unexpected string concatenation
143		var currentdiv = TABS[CURRENTTAB] +"-ui";
144		$("#"+currentdiv).css("display", "block");
145		var btndiv = TABS[CURRENTTAB] +"-btn";
146		$("#"+btndiv).removeClass().addClass("btn btn-primary");147
148		$('#next-btn').prop('disabled', ((CURRENTTAB + 1) == TABS.length));
149		$('#prev-btn').prop('disabled', (CURRENTTAB  == 0));
Unexpected string concatenation
142
143		var currentdiv = TABS[CURRENTTAB] +"-ui";
144		$("#"+currentdiv).css("display", "block");
145		var btndiv = TABS[CURRENTTAB] +"-btn";146		$("#"+btndiv).removeClass().addClass("btn btn-primary");
147
148		$('#next-btn').prop('disabled', ((CURRENTTAB + 1) == TABS.length));