Skip to content

Commit

Permalink
SHIBUI-874 Fixed issue with validaiton on logo fields for md sources
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Oct 2, 2018
1 parent 24b16be commit d161396
Showing 1 changed file with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,15 @@
<info-icon [description]="'tooltip.mdui-logo-width' | translate"></info-icon>
</span>
</div>
<input id="logoWidth" type="number" class="form-control" placeholder="" formControlName="logoWidth" step="1" role="textbox" />
<input id="logoWidth"
type="number"
class="form-control"
placeholder=""
formControlName="logoWidth"
step="1"
role="textbox"
min="0"
onkeypress="return (event.charCode == 8 || event.charCode == 0 || event.charCode == 13) ? null : event.charCode >= 48 && event.charCode <= 57"/>
<small class="form-text text-secondary" translate="message.must-be-integer">Must be an integer equal to or greater than 0</small>
</div>
</div>
Expand All @@ -99,7 +107,15 @@
<info-icon [description]="'tooltip.mdui-logo-height' | translate"></info-icon>
</span>
</div>
<input id="logoHeight" type="number" class="form-control" placeholder="" formControlName="logoHeight" step="1" role="textbox" />
<input id="logoHeight"
type="number"
class="form-control"
placeholder=""
formControlName="logoHeight"
step="1"
role="textbox"
min="0"
onkeypress="return (event.charCode == 8 || event.charCode == 0 || event.charCode == 13) ? null : event.charCode >= 48 && event.charCode <= 57" />
<small class="form-text text-secondary" translate="message.must-be-integer">Must be an integer equal to or greater than 0</small>
</div>
</div>
Expand Down

0 comments on commit d161396

Please sign in to comment.