Skip to content
Permalink
Browse files

Useability tweak - "Clear" to "Set all to Zero"

  • Loading branch information
rtennys committed Dec 28, 2012
1 parent 1b613c7 commit ceef281612c71b179e62888d4c516ebf061c22bd
Showing with 3 additions and 3 deletions.
  1. +2 −2 Momo.UI/Views/ShoppingLists/AddItem.cshtml
  2. +1 −1 Momo.UI/Views/ShoppingLists/Show.cshtml
@@ -43,7 +43,7 @@
return $('<li>')
.attr('data-icon', 'false')
.attr('data-listitem-name', value.Name)
.attr('data-listitem-quantity', value.Quantity)
.attr('data-listitem-quantity', value.Quantity == 0 ? 1 : value.Quantity)
.attr('data-listitem-isle', value.Isle)
.attr('data-listitem-price', value.Price)
.append($('<a href="#">').text(value.Name))
@@ -71,7 +71,7 @@
var li = $(this);
$('#Name').val(li.data('listitem-name'));
$('#Quantity').val(li.data('listitem-quantity'));
$('#Quantity').val(li.data('listitem-quantity')).focus().select();
$('#Isle').val(li.data('listitem-isle'));
$('#Price').val(li.data('listitem-price'));
@@ -15,7 +15,7 @@
{
@Html.AntiForgeryToken()
@Html.HiddenFor(m => m.Id)
<input type="submit" value="Clear" data-icon="refresh" data-mini="true" data-inline="true" onclick=" return confirm('Clear this list?'); " />
<input type="submit" value="Set all to Zero" data-icon="refresh" data-mini="true" data-inline="true" onclick=" return confirm('Setting a quantity to zero removes the item from view, but doesn\'t forget it. Set all quantities to zero?'); " />
}

<div id="islePrompt" data-role="popup" class="ui-content">

0 comments on commit ceef281

Please sign in to comment.
You can’t perform that action at this time.