-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added button to send a message in user profiles
- Loading branch information
Albert Gasset
committed
Apr 22, 2013
1 parent
42e32f5
commit 10e90bc
Showing
7 changed files
with
69 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
YUI(M.yui.loader).use('node', function(Y) { | ||
Y.on('domready', function() { | ||
var node = Y.one('.userprofile'); | ||
if (node) { | ||
var html = '<div class="local_mail_sendmessage">' | ||
+ '<form action="' + M.cfg.wwwroot + '/local/mail/create.php" method="post">' | ||
+ '<input type="hidden" name="c" value="' + M.local_mail.course +'" />' | ||
+ '<input type="hidden" name="r" value="' + M.local_mail.recipient +'" />' | ||
+ '<input type="hidden" name="sesskey" value="' + M.cfg.sesskey +'" />' | ||
+ '<input type="submit" value="' + M.util.get_string('sendmessage', 'local_mail') + '" />' | ||
+ '</form>' | ||
+ '</div>'; | ||
var form = Y.Node.create(html); | ||
node.append(form); | ||
} | ||
}); | ||
}); |