post tooltips: add disable option (#3689).

* Add "disable post tooltips" account setting.
* Add back title attribute for when fancy tooltips are disabled.
This commit is contained in:
evazion
2018-04-28 23:18:49 -05:00
parent 1a29b96579
commit a6499b5169
7 changed files with 20 additions and 3 deletions

View File

@@ -277,6 +277,10 @@ class AnonymousUser
false
end
def disable_post_tooltips?
false
end
User::Roles.reject {|r| r == :anonymous}.each do |name|
define_method("is_#{name}?") do
false