Skip to content
This repository has been archived by the owner on Jun 20, 2018. It is now read-only.

Wrap id's of selectors in quotes #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions gargoyle/media/js/gargoyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ $(document).ready(function () {

$(this).
parents("tr:first").
find("div[data-path=" + field[0] + "." + field[1] + "]").show();
find("div[data-path='" + field[0] + "." + field[1] + "']").show();
});

$("div.conditionsForm form").live("submit", function (ev) {
Expand All @@ -154,7 +154,7 @@ $(document).ready(function () {

api(GARGOYLE.addCondition, data, function (swtch) {
var result = $("#switchData").tmpl(swtch);
$("table.switches tr[data-switch-key="+ data.key + "]").replaceWith(result);
$("table.switches tr[data-switch-key='"+ data.key + "']").replaceWith(result);
});
});

Expand All @@ -172,7 +172,7 @@ $(document).ready(function () {

api(GARGOYLE.delCondition, data, function (swtch) {
var result = $("#switchData").tmpl(swtch);
$("table.switches tr[data-switch-key="+ data.key + "]").replaceWith(result);
$("table.switches tr[data-switch-key='"+ data.key + "']").replaceWith(result);
});

});
Expand Down Expand Up @@ -208,7 +208,7 @@ $(document).ready(function () {

$.facebox.close();
} else {
$("table.switches tr[data-switch-key=" + curkey + "]").replaceWith(result);
$("table.switches tr[data-switch-key='" + curkey + "']").replaceWith(result);
$.facebox.close();
}
result.click();
Expand Down