Skip to content

Commit

Permalink
Merge pull request silverstripe#4 from silverstripe-superchargers/fea…
Browse files Browse the repository at this point in the history
…ture/sd-8

feature/sd-8: Tidied up scss files, updated variables with bootstrap 4 variables
  • Loading branch information
MasseyIsaako authored Nov 28, 2018
2 parents 6c0ef73 + e1cf448 commit 28223a5
Show file tree
Hide file tree
Showing 73 changed files with 2,793 additions and 2,409 deletions.
718 changes: 361 additions & 357 deletions dist/css/editor.css

Large diffs are not rendered by default.

1,612 changes: 848 additions & 764 deletions dist/css/main.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6672,15 +6672,15 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
var validatorSettings = __WEBPACK_IMPORTED_MODULE_0_jquery___default()(this).validate().settings;

validatorSettings.highlight = function (element) {
__WEBPACK_IMPORTED_MODULE_0_jquery___default()(element).closest('.form-group').addClass('has-error');
__WEBPACK_IMPORTED_MODULE_0_jquery___default()(element).closest('.form-group').addClass('has-error text-danger');
};

validatorSettings.unhighlight = function (element) {
__WEBPACK_IMPORTED_MODULE_0_jquery___default()(element).closest('.form-group').removeClass('has-error');
__WEBPACK_IMPORTED_MODULE_0_jquery___default()(element).closest('.form-group').removeClass('has-error text-danger');
};

validatorSettings.errorElement = 'span';
validatorSettings.errorClass = 'help-block';
validatorSettings.errorClass = 'form-text text-danger';

validatorSettings.errorPlacement = function (error, element) {
if (element.parent('.input-group').length || element.prop('type') === 'checkbox' || element.prop('type') === 'radio') {
Expand Down
Loading

0 comments on commit 28223a5

Please sign in to comment.