add default numbers for restore tool if one isn't provided: #594

This commit is contained in:
Tyler Renelle 2013-03-06 13:32:10 -05:00
parent 1ecebe4cbb
commit 75aadf6eb1

View file

@ -82,7 +82,7 @@ module.exports.app = (appExports, model) ->
batch = new BatchUpdate(model)
batch.startTransaction()
$('#restore-form input').each ->
batch.set $(this).attr('data-for'), parseInt($(this).val())
batch.set $(this).attr('data-for'), parseInt($(this).val() || 1)
batch.commit()
user.on 'set', 'flags.customizationsNotification', (captures, args) ->