Skip to content
This repository has been archived by the owner on May 14, 2018. It is now read-only.

Commit

Permalink
Fixed conversation list not poping in thread pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Serubin committed May 13, 2017
1 parent f8e3c8a commit 20cf956
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions resources/js/Conversations.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@
* limitations under the License.
*/

function Conversations(data, $elem) {
function Conversations(data, elem) {
var page_id;
var $elem;

if(typeof $elem == "undefined")
if(typeof elem == "undefined")
$elem = $("#conversation-list");
else
$elem = elem;

var $parent = $("[data-content=inserted]");

Expand Down Expand Up @@ -68,7 +71,8 @@ function Conversations(data, $elem) {
formatPhoneNumber(localStorage.getItem("phone_number"))
);

Nav();
if(typeof elem == "undefined")
Nav();

$refresh_btn.on('click', function() {
$elem.empty();
Expand Down

0 comments on commit 20cf956

Please sign in to comment.