web: rename help modal

This commit is contained in:
Simon Michael 2014-07-09 00:00:23 -07:00
parent 8c07e68c4a
commit ed3fd58fb9
3 changed files with 5 additions and 5 deletions

View File

@ -119,7 +119,7 @@ searchform VD{..} = [hamlet|
<input .form-control style="font-size:18px; padding-bottom:2px;" name=q value=#{q} title="Enter hledger search patterns to filter the data below">
<td width="1%" style="white-space:nowrap;">
<button .btn style="font-size:18px;" type=submit title="Apply search terms">Search
<button .btn style="font-size:18px;" type=button data-toggle="modal" data-target="#searchhelpmodal" title="Show search and general help">?
<button .btn style="font-size:18px;" type=button data-toggle="modal" data-target="#helpmodal" title="Show search and general help">?
|]
where
filtering = not $ null q

View File

@ -23,8 +23,8 @@ $(document).ready(function() {
$('#sidebar td').mouseleave(function(){ $(this).removeClass('mouseover'); });
/* keyboard shortcuts */
$(document).bind('keydown', 'shift+/', function(){ $('#searchhelpmodal').modal('toggle'); return false; });
$(document).bind('keydown', 'h', function(){ $('#searchhelpmodal').modal('toggle'); return false; });
$(document).bind('keydown', 'shift+/', function(){ $('#helpmodal').modal('toggle'); return false; });
$(document).bind('keydown', 'h', function(){ $('#helpmodal').modal('toggle'); return false; });
$(document).bind('keydown', 'j', function(){ location.href = '/journal'; return false; });
$(document).bind('keydown', 's', function(){ sidebarToggle(); return false; });
$(document).bind('keydown', 'a', function(){ addformFocus(); return false; });

View File

@ -47,12 +47,12 @@ $newline never
window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})
\<![endif]-->
<div .modal.fade #searchhelpmodal tabindex="-1" role="dialog" aria-labelledby="searchHelpLabel" aria-hidden="true">
<div .modal.fade #helpmodal tabindex="-1" role="dialog" aria-labelledby="helpLabel" aria-hidden="true">
<div .modal-dialog .modal-lg>
<div .modal-content>
<div .modal-header>
<button type="button" .close data-dismiss="modal" aria-hidden="true">&times;
<h3 .modal-title #searchHelpLabel>Help
<h3 .modal-title #helpLabel>Help
<div .modal-body>
<div .row>
<div .col-xs-6>