move desktop mode to user pref

This commit is contained in:
r888888888
2017-12-15 13:52:25 -08:00
parent 4dabbde05d
commit a95af95eae
8 changed files with 25 additions and 34 deletions

View File

@@ -28,6 +28,17 @@ $(function() {
$('#notice').fadeOut("fast");
e.preventDefault();
});
$("#desktop-version-link a").click(function() {
$.ajax("/users/" + Danbooru.meta("current-user-id"), {
method: "PUT",
data: {
"user[disable_responsive_mode]": "true"
}
}).success(function() {
location.reload();
});
});
});
var Danbooru = {};