diff --git a/modules/system/assets/ui/js/input.preset.js b/modules/system/assets/ui/js/input.preset.js index 05d2bc699..4a364d86d 100644 --- a/modules/system/assets/ui/js/input.preset.js +++ b/modules/system/assets/ui/js/input.preset.js @@ -249,7 +249,10 @@ } InputPreset.prototype.formatValue = function() { - if (this.options.inputPresetType == 'namespace') { + if (this.options.inputPresetType == 'exact') { + return this.$src.val(); + } + else if (this.options.inputPresetType == 'namespace') { return this.formatNamespace() } diff --git a/modules/system/assets/ui/storm-min.js b/modules/system/assets/ui/storm-min.js index 127ef9e04..c9f6a6bf4 100644 --- a/modules/system/assets/ui/storm-min.js +++ b/modules/system/assets/ui/storm-min.js @@ -3883,7 +3883,8 @@ $el.val(prefix+self.formatValue())}) this.$el.on('change',function(){self.cancelled=true})} InputPreset.prototype.formatNamespace=function(){var value=toCamel(this.$src.val()) return value.substr(0,1).toUpperCase()+value.substr(1)} -InputPreset.prototype.formatValue=function(){if(this.options.inputPresetType=='namespace'){return this.formatNamespace()} +InputPreset.prototype.formatValue=function(){if(this.options.inputPresetType=='exact'){return this.$src.val();} +else if(this.options.inputPresetType=='namespace'){return this.formatNamespace()} if(this.options.inputPresetType=='camel'){var value=toCamel(this.$src.val())} else{var value=slugify(this.$src.val())} if(this.options.inputPresetType=='url'){value='/'+value}