Skip to content

Commit

Permalink
Change the totoz urls to make the tribune work with the new totoz.eu.
Browse files Browse the repository at this point in the history
  • Loading branch information
n-e committed Jul 30, 2018
1 parent 5aa044d commit a8df569
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/chat.coffee
Expand Up @@ -96,7 +96,7 @@ class Chat
if cfg.totoz_type == "popup"
"<span class=\"totoz\" data-totoz-name=\"#{name}\">#{title}</span>"
else if cfg.totoz_type == "inline"
"<img class=\"totoz\" alt=\"#{title}\" title=\"#{title}\" src=\"#{cfg.totoz_url}#{name}.gif\" style=\"vertical-align: top; background-color: transparent\"/>"
"<img class=\"totoz\" alt=\"#{title}\" title=\"#{title}\" src=\"#{cfg.totoz_url}#{name}\" style=\"vertical-align: top; background-color: transparent\"/>"
idx = totoz.lastIndex
$(@).replaceWith html+orig.slice(idx) if html

Expand Down Expand Up @@ -133,7 +133,7 @@ class Chat
if totoz.size() == 0
totoz = $("<div id=\"totoz-#{totozId}\" class=\"totozimg\"></div>")
.css(display: "none", position: "absolute")
.append("<img src=\"#{@totoz_url}#{totozName}.gif\"/>")
.append("<img src=\"#{@totoz_url}#{totozName}\"/>")
@totoz.append totoz
offset = $(event.target).offset()
[x, y] = [offset.left, offset.top]
Expand Down
2 changes: 1 addition & 1 deletion app/views/devise/registrations/_preferences.html.haml
Expand Up @@ -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"
Expand Down

0 comments on commit a8df569

Please sign in to comment.