Skip to content

Commit e6846e9

Browse files
committed
Add tooltip explanation for stroke types
1 parent 396fdc3 commit e6846e9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<ul class="dropdown-menu bb-pattern-player-stokes-dropdown-menu">
22
<li ng-class="{active: !pattern[instrumentKey][i] || pattern[instrumentKey][i]==' '}"><a href="javascript:" ng-click="pattern[instrumentKey][i]=' '"> </a></li><li
3-
ng-repeat="stroke in config.instruments[instrumentKey].strokes" ng-class="{active: pattern[instrumentKey][i]==stroke}"><a href="javascript:" ng-click="pattern[instrumentKey][i]=stroke">{{config.strokes[stroke]}}</a></li>
3+
ng-repeat="stroke in config.instruments[instrumentKey].strokes" ng-class="{active: pattern[instrumentKey][i]==stroke}"><a href="javascript:" ng-click="pattern[instrumentKey][i]=stroke" uib-tooltip="{{config.strokesDescription[stroke]}}">{{config.strokes[stroke]}}</a></li>
44
</ul>

app/shared/ui/pattern-player/pattern-player.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
<a href="javascript:" ng-click="mute(instrumentKey)" ng-class="playerOptions.mute[instrumentKey] ? 'active' : 'inactive'"><span class="glyphicon glyphicon-volume-off"></span></a>
3636
</td>
3737
<td ng-repeat="(i,a) in utils.getNumber(pattern.length*pattern.time) track by $index" class="stroke" ng-class="getStrokeClass(i)">
38-
<span ng-if="!editable" class="stroke-inner">{{config.strokes[pattern[instrumentKey][i]] || ' '}}</span>
39-
<a ng-if="editable && !strokeDropdownOpen" href="javascript:" tabindex="0" class="stroke-inner" uib-popover-template="'app/shared/ui/pattern-player/pattern-player-stroke-dropdown.html'" popover-placement="bottom" popover-trigger="focus">{{config.strokes[pattern[instrumentKey][i]] || ' '}}</a>
38+
<span ng-if="!editable" class="stroke-inner" uib-tooltip="{{config.strokesDescription[pattern[instrumentKey][i]]}}">{{config.strokes[pattern[instrumentKey][i]] || ' '}}</span>
39+
<a ng-if="editable && !strokeDropdownOpen" href="javascript:" tabindex="0" class="stroke-inner" uib-tooltip="{{config.strokesDescription[pattern[instrumentKey][i]]}}" uib-popover-template="'app/shared/ui/pattern-player/pattern-player-stroke-dropdown.html'" popover-placement="bottom" popover-trigger="focus">{{config.strokes[pattern[instrumentKey][i]] || ' '}}</a>
4040
</td>
4141
</tr>
4242
</tbody>

0 commit comments

Comments
 (0)