lib/rawbotz/public/rawbotz.js in rawbotz-0.1.4 vs lib/rawbotz/public/rawbotz.js in rawbotz-0.1.5
- old
+ new
@@ -29,11 +29,11 @@
}).autocomplete("instance")._renderItem = function(ul, item) {
return $("<li>").append(item.name).appendTo(ul);
};
// For Non-Remote Order Forms: add a pack
- $("button.plus-pack").click(function(e) {
+ $("a.plus-pack").click(function(e) {
e.preventDefault();
input_id = $(this).data("reference_input_id");
inputField = $('#' + input_id);
@@ -48,10 +48,10 @@
inputField.val(current + packsize);
return false;
});
// For Non-Remote Order Forms: subtract a pack
- $("button.minus-pack").click(function(e) {
+ $("a.minus-pack").click(function(e) {
e.preventDefault();
input_id = $(this).data("reference_input_id");
inputField = $("#" + input_id);
current = parseInt(inputField.val());