diff --git a/include/layout.js b/include/layout.js index a3eb9d6c05..3f112a6f28 100644 --- a/include/layout.js +++ b/include/layout.js @@ -132,13 +132,13 @@ $.fn.replaceOptions = function(options, selected) { $.each(options, function(index, option) { if (selected == option.value) { - $option = $("") - .attr("value", option.value) - .prop("selected", true) + $option = $('') + .attr('value', option.value) + .prop('selected', true) .text(option.text); }else{ - $option = $("") - .attr("value", option.value) + $option = $('') + .attr('value', option.value) .text(option.text); } self.append($option); @@ -151,8 +151,8 @@ $.fn.textWidth = function(text){ var org = $(this); var html = $('' + (text || org.html()) + ''); if (!text) { - html.css("font-family", org.css("font-family")); - html.css("font-weight", org.css("font-weight")); + html.css('font-family', org.css('font-family')); + html.css('font-weight', org.css('font-weight')); } $('body').append(html); var width = html.width(); @@ -241,14 +241,14 @@ $.fn.serializeObject = function() { // Plugin to apply numeric format for tablesorter $.tablesorter.addParser({ - id: "numberFormat", + id: 'numberFormat', is: function(s) { return /^[0-9]?[0-9,\.]*$/.test(s); }, format: function(s) { return $.tablesorter.formatFloat(s.replace(/,/g, '')); }, - type: "numeric" + type: 'numeric' }); /** Mini jquery plugin to determine if an element has a scrollbar present */ @@ -582,7 +582,6 @@ function ajaxAnchors() { /* execute an ajax request to load the data */ href = $(this).attr('href'); - console.log('hello'); if (href == '#') { return false; }