Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Some JS parsers blow up with certain keywords as unquoted key names.

  • Loading branch information...
commit a3ef335996f06da006c52ed569505f8b5b1eec15 1 parent b60aa7f
@jcxplorer authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 public/javascripts/application.js
View
16 public/javascripts/application.js
@@ -14,8 +14,8 @@ function updateSiteCounters() {
function createChart() {
var options = {
- lines: { show: true, fill: true },
- points: { show: true },
+ lines: { "show": true, "fill": true },
+ points: { "show": true },
colors: ["#ccc", "#d18b2c"],
yaxis: { min: 0, tickDecimals: 0 },
xaxis: { tickSize: 2, tickFormatter: function(number) {
@@ -53,14 +53,14 @@ jQuery(function() {
var div = $("<div/>").addClass("input referrer"),
ts = new Date().getTime(),
label = $("<label/>", {
- for: "sensor_hosts_attributes_" + ts + "_host"
+ "for": "sensor_hosts_attributes_" + ts + "_host"
}).html("Referrer host"),
input = $("<input/>", {
- id: "sensor_hosts_attributes_" + ts + "_host",
- maxlength: 255,
- name: "sensor[hosts_attributes][" + ts + "][host]",
- size: 50,
- type: "text"
+ "id": "sensor_hosts_attributes_" + ts + "_host",
+ "maxlength": 255,
+ "name": "sensor[hosts_attributes][" + ts + "][host]",
+ "size": 50,
+ "type": "text"
}),
remove = $('<a href="#" class="remove">remove<a/>');
Please sign in to comment.
Something went wrong with that request. Please try again.