Skip to content

Commit

Permalink
display 0 when no playlist limit is set
Browse files Browse the repository at this point in the history
  • Loading branch information
takeit committed Apr 1, 2015
1 parent 7b6ad09 commit ae1b3d8
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -235,7 +235,8 @@
<input ng-change="updateParentLimit(this)" type="number" name="input" ng-model="playlist.selected.maxItems" min="0" max="99" class="form-control input-sm" id="playlistId">
<span class="error-custom" ng-show="limitForm.input.$error.number">{{ 'Not valid number'|trans}}!</span>
{% else %}
<span style="line-height: 28px;">{[{ playlist.selected.maxItems }]}</span>
<span ng-if="playlist.selected.maxItems" style="line-height: 28px;">{[{ playlist.selected.maxItems }]}</span>
<span ng-if="!playlist.selected.maxItems" style="line-height: 28px;">0</span>
{% endif %}
</form>
</div>
Expand Down

0 comments on commit ae1b3d8

Please sign in to comment.