Fixed not parsing partially selected size values into invalid size strings.

This fixes #2099
This commit is contained in:
Kenneth Skovhede
2016-11-27 12:01:37 +01:00
parent 9877c3cc2e
commit 83762d5664
2 changed files with 3 additions and 4 deletions
@@ -179,7 +179,7 @@ backupApp.directive('parseAdvancedOptionSizeNumber', function(AppUtils) {
if (name == null)
return null;
return name + '=' + txt + multiplier;
return name + '=' + (txt || '0') + (multiplier || '');
});
ctrl[0].$formatters.push(function(src) {
@@ -231,7 +231,7 @@ backupApp.directive('parseAdvancedOptionSizeMultiplier', function(AppUtils) {
if (name == null)
return null;
return name + '=' + (number || '') + txt;
return name + '=' + (number || '0') + (txt || '');
});
ctrl[0].$formatters.push(function(src) {
@@ -9,8 +9,7 @@ backupApp.directive('parseSizeNumber', function(AppUtils) {
var multiplier = null;
ctrl[0].$parsers.push(function(txt) {
txt = txt || '0';
return txt + (multiplier || '');
return (txt || '0') + (multiplier || '');
});
ctrl[0].$formatters.push(function(src) {