diff --git a/www/scripts/apps/login/home/common.js b/www/scripts/apps/login/home/common.js index b7da8f68a2..4283fa3dae 100644 --- a/www/scripts/apps/login/home/common.js +++ b/www/scripts/apps/login/home/common.js @@ -28,6 +28,7 @@ define([ buttonClass: 'btn btn-inverse', maxHeight: 185, includeSelectAllOption: true, + selectAllValue: 'all', selectAllText: i18n.t("all_collections"), buttonText: function(options, select) { if (options.length === 0) { @@ -41,6 +42,10 @@ define([ } } }); + $('form[name="registerForm"]').on('submit', function () { + // must deselect the "select all" checkbox for server side validation. + $("select[multiple='multiple']").multiselect('deselect', 'all'); + }); }; return {