Commit 339aab38 authored by 神楽坂玲奈's avatar 神楽坂玲奈

change mode

parent b434167c
......@@ -130,7 +130,6 @@ class Deck extends Spine.Controller
if $('.operate_area').hasClass('text')
@el.jscroll({W: "12px", Btn:
{btn: false}})
else
@url = "http://my-card.in/decks/?name=#{@deck_name}&cards=#{@encode()}"
......@@ -196,6 +195,9 @@ $(document).ready ->
deck.deck_name = $.url().param('name')
deck.tab_control()
deck.decode $.url().param('cards')
$(".rename_ope").click ->
$(".text,.graphic").toggleClass("graphic text")
deck.render()
#window.addEventListener 'popstate', (ev)->
# alert ev.state
#if ev.state
......
......@@ -322,8 +322,6 @@
btn: false
}
});
} else {
}
return this.url = "http://my-card.in/decks/?name=" + this.deck_name + "&cards=" + (this.encode());
};
......@@ -412,7 +410,11 @@
});
deck.deck_name = $.url().param('name');
deck.tab_control();
return deck.decode($.url().param('cards'));
deck.decode($.url().param('cards'));
return $(".rename_ope").click(function() {
$(".text,.graphic").toggleClass("graphic text");
return deck.render();
});
}
});
});
......
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