Skip to content
Extraits de code Groupes Projets
Valider f45c5be9 rédigé par Florian Staudacher's avatar Florian Staudacher
Parcourir les fichiers

Merge branch 'hotfix/mobile-bookmarklet'

fix view layout determination for mobile bookmarklet
parents ad158975 a26dc34a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -11,7 +11,17 @@ class StatusMessagesController < ApplicationController
:mobile,
:json
layout 'blank', :only => [ :bookmarklet ]
layout :bookmarklet_layout, :only => :bookmarklet
# Define bookmarklet layout depending on whether
# user is in mobile or desktop mode
def bookmarklet_layout
if request.format == :mobile
'application'
else
'blank'
end
end
# Called when a user clicks "Mention" on a profile page
# @param person_id [Integer] The id of the person to be mentioned
......
......@@ -18,4 +18,4 @@
});
- content_for(:head) do
= javascript_include_tag :mobile
\ No newline at end of file
= javascript_include_tag :jquery, :mobile
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter