Fix conversation modal on contacts page
This commit is contained in:
parent
7d32000bd0
commit
db00bd1b03
2 changed files with 7 additions and 3 deletions
|
|
@ -8,7 +8,8 @@ app.pages.Contacts = Backbone.View.extend({
|
|||
"click #contacts_visibility_toggle" : "toggleContactVisibility",
|
||||
"click #chat_privilege_toggle" : "toggleChatPrivilege",
|
||||
"click #change_aspect_name" : "showAspectNameForm",
|
||||
"keyup #contact_list_search" : "searchContactList"
|
||||
"keyup #contact_list_search" : "searchContactList",
|
||||
"click .conversation_button": "showMessageModal"
|
||||
},
|
||||
|
||||
initialize: function(opts) {
|
||||
|
|
@ -77,6 +78,10 @@ app.pages.Contacts = Backbone.View.extend({
|
|||
this.stream.search($(e.target).val());
|
||||
},
|
||||
|
||||
showMessageModal: function(){
|
||||
app.helpers.showModal("#conversationModal");
|
||||
},
|
||||
|
||||
setupAspectSorting: function() {
|
||||
$("#aspect_nav .list-group").sortable({
|
||||
items: "a.aspect[data-aspect-id]",
|
||||
|
|
|
|||
|
|
@ -13,8 +13,7 @@ module ContactsHelper
|
|||
content_tag :i,
|
||||
nil,
|
||||
class: "entypo-mail contacts-header-icon",
|
||||
title: t("contacts.index.start_a_conversation"),
|
||||
data: {toggle: "modal", target: "#conversationModal"}
|
||||
title: t("contacts.index.start_a_conversation")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue