Commit b6645390 authored by Ruslan Kabalin's avatar Ruslan Kabalin
Browse files

homeinfo: show help on homeinfo box control (bug #620261)



When user points cursor to Hide button, the inline help pops up underneath the
homeinfo box.
Signed-off-by: default avatarRuslan Kabalin <ruslan.kabalin@luns.net.uk>
parent 541dec20
......@@ -73,7 +73,11 @@ function nevershow() {
sendjsonrequest('homeinfo.json.php', data, 'POST', hideinfo);
}
addLoadEvent(function () {
hideElement($('home-info-help'));
$('hideinfo').onclick = nevershow;
connect('hideinfo', 'onmouseenter', function(e) {
if ($('home-info-help').style.display == 'none') blindDown('home-info-help', {'duration': 0.25});
});
});
JAVASCRIPT;
......@@ -98,6 +102,7 @@ $urls = array(
'views' => $wwwroot . 'view',
'friends' => $wwwroot . 'user/find.php',
'groups' => $wwwroot . 'group/find.php',
'settings'=> $wwwroot . 'account',
);
$smarty->assign('url', $urls);
......
......@@ -927,4 +927,5 @@ $string['sharenetworksubtitle'] = 'Meet friends and join groups';
$string['findfriendslinked'] = 'Find <a href="%s">Friends</a>';
$string['joingroups'] = 'Join <a href="%s">Groups</a>';
$string['sharenetworkdescription'] = 'You can fine-tune who has access to each view, and for how long.';
$string['howtodisable'] = '* You may control this box visibility in <a href="%s">Settings</a>.';
?>
......@@ -1977,6 +1977,10 @@ form#search, form#filter, div.searchform {
.home-info-1 {
margin-left: 4px;
}
#home-info-help {
margin: 0 4px;
float: right;
}
.home-info-inner {
padding: 6px;
min-height: 265px;
......
......@@ -91,5 +91,12 @@
</div>
</td>
</tr>
<tr>
<td colspan="3">
<div id="home-info-help" class="s">
{if $USER->is_logged_in()}{assign var=s value="howtodisable"|str:mahara:$url.settings}{$s|safe}{/if}
</div>
</td>
</tr>
</table>
</div>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment