Remove all whitespace when parsing MNTP allowed doctypes.

This commit is contained in:
crgrieve
2016-11-07 20:53:59 +00:00
parent fcca95787b
commit e429f8611e

View File

@@ -259,7 +259,7 @@ angular.module("umbraco").controller("Umbraco.Dialogs.TreePickerController",
}
});
} else {
var a = dialogOptions.filter.toLowerCase().split(',');
var a = dialogOptions.filter.toLowerCase().replace(/\s/g, '').split(',');
angular.forEach(nodes, function (value, key) {
var found = a.indexOf(value.metaData.contentType.toLowerCase()) >= 0;