From a8df569b94b3c878734e24eeb31da052a1b3ff8f Mon Sep 17 00:00:00 2001 From: Nicolas Even Date: Mon, 30 Jul 2018 13:09:16 +0200 Subject: [PATCH] Change the totoz urls to make the tribune work with the new totoz.eu. --- app/assets/javascripts/chat.coffee | 4 ++-- app/views/devise/registrations/_preferences.html.haml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/chat.coffee b/app/assets/javascripts/chat.coffee index bfbc9d00e..ea4303f20 100644 --- a/app/assets/javascripts/chat.coffee +++ b/app/assets/javascripts/chat.coffee @@ -96,7 +96,7 @@ class Chat if cfg.totoz_type == "popup" "#{title}" else if cfg.totoz_type == "inline" - "\"#{title}\"" + "\"#{title}\"" idx = totoz.lastIndex $(@).replaceWith html+orig.slice(idx) if html @@ -133,7 +133,7 @@ class Chat if totoz.size() == 0 totoz = $("
") .css(display: "none", position: "absolute") - .append("") + .append("") @totoz.append totoz offset = $(event.target).offset() [x, y] = [offset.left, offset.top] diff --git a/app/views/devise/registrations/_preferences.html.haml b/app/views/devise/registrations/_preferences.html.haml index e2c211e53..34cb6b0ef 100644 --- a/app/views/devise/registrations/_preferences.html.haml +++ b/app/views/devise/registrations/_preferences.html.haml @@ -74,7 +74,7 @@ = f.label :totoz_style_none, "Ne pas afficher" %h3 Source des totoz %p - = f.select :totoz_source, {"totoz.moul.es" => "https://totoz.moules.es/", "totoz.moul.es (NSFW)" => "https://nsfw.totoz.moul.es/", "claudex.be/sfwttz" => "https://claudex.be/sfwttz/", "claudex.be/ttz (NSFW)" => "https://claudex.be/ttz/"} + = f.select :totoz_source, {"totoz.eu" => "https://totoz.eu/img/", "totoz.eu (NSFW)" => "https://nsfw.totoz.eu/img/", "claudex.be/sfwttz" => "https://claudex.be/sfwttz/", "claudex.be/ttz (NSFW)" => "https://claudex.be/ttz/"} %p %label.factice Sûr de vos modifications ? = f.submit "Enregistrer"