diff --git a/docs-web/src/main/webapp/Gruntfile.js b/docs-web/src/main/webapp/Gruntfile.js index e2ebe98f..9e51bcc7 100644 --- a/docs-web/src/main/webapp/Gruntfile.js +++ b/docs-web/src/main/webapp/Gruntfile.js @@ -72,12 +72,12 @@ module.exports = function(grunt) { options: { append: true, htmlmin: { - collapseBooleanAttributes: true, + collapseBooleanAttributes: false, collapseWhitespace: true, - removeAttributeQuotes: true, + removeAttributeQuotes: false, removeComments: true, - removeEmptyAttributes: true, - removeRedundantAttributes: true, + removeEmptyAttributes: false, + removeRedundantAttributes: false, removeScriptTypeAttributes: true, removeStyleLinkTypeAttributes: true } @@ -90,12 +90,12 @@ module.exports = function(grunt) { options: { append: true, htmlmin: { - collapseBooleanAttributes: true, + collapseBooleanAttributes: false, collapseWhitespace: true, - removeAttributeQuotes: true, + removeAttributeQuotes: false, removeComments: true, - removeEmptyAttributes: true, - removeRedundantAttributes: true, + removeEmptyAttributes: false, + removeRedundantAttributes: false, removeScriptTypeAttributes: true, removeStyleLinkTypeAttributes: true } diff --git a/docs-web/src/main/webapp/src/app/docs/directive/File.js b/docs-web/src/main/webapp/src/app/docs/directive/File.js index 974ff98f..9e0b0be7 100644 --- a/docs-web/src/main/webapp/src/app/docs/directive/File.js +++ b/docs-web/src/main/webapp/src/app/docs/directive/File.js @@ -9,12 +9,10 @@ angular.module('docs').directive('file', function() { template: '', replace: true, require: 'ngModel', - link: function(scope, element, attr, ctrl) { + link: function(scope, element, attrs, ctrl) { element.bind('change', function() { scope.$apply(function() { - console.log('is multiple?', attr.multiple); - console.log('setting file directive value', attr.multiple ? element[0].files : element[0].files[0]); - attr.multiple ? ctrl.$setViewValue(element[0].files) : ctrl.$setViewValue(element[0].files[0]); + attrs.multiple ? ctrl.$setViewValue(element[0].files) : ctrl.$setViewValue(element[0].files[0]); }); }); }