Skip to content
Extraits de code Groupes Projets
Valider db00bd1b rédigé par Steffen van Bergerem's avatar Steffen van Bergerem
Parcourir les fichiers

Fix conversation modal on contacts page

parent 7d32000b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -8,7 +8,8 @@ app.pages.Contacts = Backbone.View.extend({ ...@@ -8,7 +8,8 @@ app.pages.Contacts = Backbone.View.extend({
"click #contacts_visibility_toggle" : "toggleContactVisibility", "click #contacts_visibility_toggle" : "toggleContactVisibility",
"click #chat_privilege_toggle" : "toggleChatPrivilege", "click #chat_privilege_toggle" : "toggleChatPrivilege",
"click #change_aspect_name" : "showAspectNameForm", "click #change_aspect_name" : "showAspectNameForm",
"keyup #contact_list_search" : "searchContactList" "keyup #contact_list_search" : "searchContactList",
"click .conversation_button": "showMessageModal"
}, },
initialize: function(opts) { initialize: function(opts) {
...@@ -77,6 +78,10 @@ app.pages.Contacts = Backbone.View.extend({ ...@@ -77,6 +78,10 @@ app.pages.Contacts = Backbone.View.extend({
this.stream.search($(e.target).val()); this.stream.search($(e.target).val());
}, },
showMessageModal: function(){
app.helpers.showModal("#conversationModal");
},
setupAspectSorting: function() { setupAspectSorting: function() {
$("#aspect_nav .list-group").sortable({ $("#aspect_nav .list-group").sortable({
items: "a.aspect[data-aspect-id]", items: "a.aspect[data-aspect-id]",
......
...@@ -13,8 +13,7 @@ module ContactsHelper ...@@ -13,8 +13,7 @@ module ContactsHelper
content_tag :i, content_tag :i,
nil, nil,
class: "entypo-mail contacts-header-icon", class: "entypo-mail contacts-header-icon",
title: t("contacts.index.start_a_conversation"), title: t("contacts.index.start_a_conversation")
data: {toggle: "modal", target: "#conversationModal"}
end end
end end
end end
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