Fixed not parsing partially selected size values into invalid size strings.
This fixes #2099
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user