mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-54687 core_message: added ability to delete messages
- Loading branch information
Showing
14 changed files
with
165 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
{{#blocktime}} | ||
<div class="blocktime"> | ||
{{.}} | ||
{{#displayblocktime}} | ||
<div id="blocktime-{{id}}{{isread}}" class="blocktime" data-blocktime="{{blocktime}}"> | ||
{{blocktime}} | ||
</div> | ||
{{/displayblocktime}} | ||
<div id="message-{{id}}{{isread}}" class="message row-fluid" data-blocktime="{{blocktime}}"> | ||
<div class="span1 deletemessagecheckbox"> | ||
<input type="checkbox" data-messageid="{{id}}" data-messageread="{{isread}}"/> | ||
</div> | ||
<div class="span11 content {{position}}"> | ||
{{{text}}} | ||
<span class="timesent"> | ||
{{timesent}} | ||
</span> | ||
</div> | ||
{{/blocktime}} | ||
<div class="message {{position}}"> | ||
{{{text}}} | ||
<span class="timesent"> | ||
{{timesent}} | ||
</span> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
<div class="messaging-area" data-userid="{{userid}}"> | ||
<div class="row-fluid"> | ||
<div class="span4 contacts-area"> | ||
{{#contacts}} | ||
{{> core_message/contacts }} | ||
{{/contacts}} | ||
</div> | ||
<div class="span8 messages-area"> | ||
{{#messages}} | ||
{{> core_message/messages }} | ||
{{/messages}} | ||
<div class="messaging-area-all" data-loggedinuserid="{{loggedinuserid}}" data-userid="{{userid}}"> | ||
<input class="choosemessagestodeletebtn" type="button" value="{{#str}}delete{{/str}}"/> | ||
<div class="messaging-area"> | ||
<div class="row-fluid"> | ||
<div class="span4 contacts-area"> | ||
{{#contacts}} | ||
{{> core_message/contacts }} | ||
{{/contacts}} | ||
</div> | ||
<div class="span8 messages-area"> | ||
{{#messages}} | ||
{{> core_message/messages }} | ||
{{/messages}} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{{#js}} | ||
require(['core_message/message-area'], function(Messagearea) { | ||
var messageArea = new Messagearea('.messaging-area'); | ||
var messageArea = new Messagearea('.messaging-area-all'); | ||
}); | ||
{{/js}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<strong>{{#str}}selectmessagestodelete, message{{/str}}</strong> | ||
<input class="canceldeletemessagesbtn" type="button" value="{{#str}}cancel{{/str}}" /> | ||
<input class="deletemessagesbtn" type="button" value="{{#str}}delete{{/str}}" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<textarea id="sendmessagetxt"></textarea> | ||
<input class="sendmessagebtn" type="button" value="{{#str}}send, message{{/str}}" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters