Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosSantos95 committed Nov 13, 2019
1 parent 6e445f8 commit 0dec24f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion background.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
{{#multiView}}
<div class = 'card-blackboard-multiview oneCard' id = {{id}}>
<p class="titleCardBlackboard">{{title}}</p>
<p class="contentCardBlackboard">{{content}}</p>
<p class="contentCardBlackboard">{{{textlink}}}</p>
</div>
{{/multiView}}
{{/isViewMode}}
Expand Down
12 changes: 6 additions & 6 deletions js/views/conversation_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -2484,7 +2484,6 @@
className: 'blackboard-view',
template: $('#blackboard-view').html(),
render_attributes() {

return {
model: this.model,
isViewMode: this.isViewMode,
Expand All @@ -2494,8 +2493,7 @@
}
},
initialize(options) {

this.isMultiViewMode = true;
this.isMultiViewMode = true;
this.isViewMode = false;
this.currentId = null;
this.company_id = options.company_id;
Expand All @@ -2506,7 +2504,7 @@
'click .card-blackboard': 'openDetailView',
'click #imageGoBackBlackboard': 'backMultiView',
'click #openEditCard': 'openEditCard'

},
async openDetailView(event){
try {
Expand All @@ -2519,7 +2517,7 @@
} catch (error) {
this.isAdmin = false
}

const id = event.currentTarget.id;
this.currentId = id;
console.log('ID of click ========> ', id);
Expand All @@ -2529,6 +2527,8 @@
'note_id':this.currentId,
}
this.multiView = await getIndividualCardBlackboard( this.company_id, data)
const test = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig
this.multiView.textlink = this.multiView.content.replace(test, '<a target=\'_blank\' rel=\'noopener noreferrer nofollow\' href=\'$1\'>$1</a>');
this.render();
},
backMultiView(){
Expand Down Expand Up @@ -2576,7 +2576,7 @@
'click #EditCardClosePanel': 'closePanel',
'click #sendEditCard': 'saveEditCard',
'click #removeCard': 'removeCard'

},
closePanel(){
document.getElementsByClassName('edit-card-blackboard')[0].remove();
Expand Down

0 comments on commit 0dec24f

Please sign in to comment.