Commit 75205994 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent 61856705
......@@ -173,7 +173,7 @@ class Deck extends Spine.Controller
if count < 3 #TODO: lflist
card_usage.count++
card_usage.save()
history.pushState(CardUsage.toJSON(), @deck_name, @location())
minus: (e)->
e.preventDefault()
card_usage = $(e.target).tmplItem().data
......@@ -184,7 +184,6 @@ class Deck extends Spine.Controller
card_usage.destroy()
history.pushState(CardUsage.toJSON(), @deck_name, @location())
$(document).ready ->
$('#name').html $.url().param('name')
$("#deck_share_dialog").dialog
......
......@@ -444,8 +444,9 @@
}
if (count < 3) {
card_usage.count++;
return card_usage.save();
card_usage.save();
}
return history.pushState(CardUsage.toJSON(), this.deck_name, this.location());
};
Deck.prototype.minus = function(e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment