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 #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({
|
||||||
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
|
||||||
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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue