mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-02-01 18:25:05 -05:00
mobile/compact still needs save_thing() and unsave_thing()
This commit is contained in:
@@ -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"]')
|
||||
|
||||
Reference in New Issue
Block a user