0001-orleans-highlight-widgets-with-errors-50565.patch
static/orleans/_custom.scss | ||
---|---|---|
288 | 288 |
} |
289 | 289 |
} |
290 | 290 |
} |
291 | ||
292 |
div.widget-with-error { |
|
293 |
.content { |
|
294 |
input, textarea, select, div.file-button { |
|
295 |
background-color: #f2d8df; |
|
296 |
border: 1px solid red; |
|
297 |
} |
|
298 |
} |
|
299 |
} |
static/orleans/extra.js | ||
---|---|---|
2 | 2 |
$('div.wcsformsofcategorycell').delegate('h2', 'click', function() { |
3 | 3 |
$(this).parents('div.wcsformsofcategorycell').toggleClass('toggled'); |
4 | 4 |
}); |
5 |
/* reset error class when contents is changed */ |
|
6 |
$('input, select, textarea').on('change', function() { |
|
7 |
$(this).parents('.widget-with-error').removeClass('widget-with-error'); |
|
8 |
}); |
|
5 | 9 |
}); |
6 |
- |