Permalink
Browse files

mobile/compact still needs save_thing() and unsave_thing()

  • Loading branch information...
1 parent 9691a1a commit 3b02c44f4d67f6452925305b96e11b755b0351c2 @Deimos Deimos committed Mar 6, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 r2/r2/public/static/js/reddit.js
@@ -207,6 +207,14 @@ function read_thing(elem) {
$.request("read_message", {"id": $(t).thing_id()});
}
+function save_thing(elem) {
+ $(elem).thing().addClass("saved");
+}
+
+function unsave_thing(elem) {
+ $(elem).thing().removeClass("saved");
+}
+
function toggle_save(elem) {
var form = $(elem).parents("form").first()
var next_text = form.find('[name="executed"]')

0 comments on commit 3b02c44

Please sign in to comment.