Projet

Général

Profil

0001-orleans-highlight-widgets-with-errors-50565.patch

Serghei Mihai (congés, retour 15/05), 27 janvier 2021 10:23

Télécharger (1,24 ko)

Voir les différences:

Subject: [PATCH] orleans: highlight widgets with errors (#50565)

 static/orleans/_custom.scss | 9 +++++++++
 static/orleans/extra.js     | 4 ++++
 2 files changed, 13 insertions(+)
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
-