Skip to content

Commit

Permalink
Show modal title when send messages - refs #10308
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Sep 17, 2015
1 parent fdb6474 commit d31059d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions main/inc/lib/social.lib.php
Expand Up @@ -759,7 +759,7 @@ public static function show_social_menu(
$sendMessageText = get_lang('SendMessage');
$sendMessageIcon = Display::return_icon(
'compose_message.png',
get_lang('SendMessage')
$sendMessageText
);
$sendMesssageUrl = api_get_path(WEB_AJAX_PATH)
. 'user_manager.ajax.php?'
Expand All @@ -774,7 +774,8 @@ public static function show_social_menu(
$sendMesssageUrl,
[
'class' => 'ajax',
'title' => get_lang('SendMessage')
'title' => $sendMessageText,
'data-title' => $sendMessageText
]
);
$html .= '</li>';
Expand Down
5 changes: 4 additions & 1 deletion main/social/search.php
Expand Up @@ -99,7 +99,10 @@
$sendMesssageUrl,
'envelope',
'default',
['class' => 'ajax btn-sm']
[
'class' => 'ajax btn-sm',
'data-title' => get_lang('SendMessage')
]
);

$img = '<img src="'.$user_info['avatar'].'" width="100" height="100">';
Expand Down

0 comments on commit d31059d

Please sign in to comment.