From fc8cda9bdbeb11a6311d5514fd5e18e4742e596f Mon Sep 17 00:00:00 2001 From: cigamit Date: Sun, 11 Sep 2016 07:55:43 -0500 Subject: [PATCH] double to single quote --- include/layout.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) 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; }