mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-54687 core_message: added ability to toggle between tabs
This commit is contained in:
parent
879e2bef23
commit
9aa012b5a1
6 changed files with 259 additions and 2 deletions
34
message/templates/loading.mustache
Normal file
34
message/templates/loading.mustache
Normal file
|
@ -0,0 +1,34 @@
|
|||
{{!
|
||||
This file is part of Moodle - http://moodle.org/
|
||||
|
||||
Moodle is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Moodle is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template core_message/loading
|
||||
|
||||
Loading spinner shown while waiting for an ajax request
|
||||
|
||||
Classes required for JS:
|
||||
* None
|
||||
|
||||
Data attibutes required for JS:
|
||||
* None
|
||||
|
||||
Context variables required for this template:
|
||||
* None
|
||||
|
||||
Example context (json):
|
||||
{ }
|
||||
}}
|
||||
{{#pix}}y/loading, core, {{#str}}loading, core_message{{/str}}{{/pix}}
|
|
@ -1,4 +1,4 @@
|
|||
<div class="messaging-area">
|
||||
<div class="messaging-area" data-userid="{{userid}}">
|
||||
<div class="row-fluid">
|
||||
<div class="span4 contacts-area">
|
||||
{{#contacts}}
|
||||
|
@ -11,4 +11,9 @@
|
|||
{{/messages}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{#js}}
|
||||
require(['core_message/message-area'], function(Messagearea) {
|
||||
var messageArea = new Messagearea('.messaging-area');
|
||||
});
|
||||
{{/js}}
|
Loading…
Add table
Add a link
Reference in a new issue