FEATURE #1435: few smaller UI tweaks in creating new content page
This commit is contained in:
@@ -1430,13 +1430,13 @@ $ (document).ready (function () {
|
||||
target.val (slugify (source.val (), true));
|
||||
});
|
||||
|
||||
// find if any error occured and mark tab with that error
|
||||
$('.has-error').each(function () {
|
||||
var error = $(this);
|
||||
var tabCard = error.closest('.tab-pane');
|
||||
|
||||
$("#"+tabCard.prop('id')+"-tab").css('background-color', 'red');
|
||||
$("#"+tabCard.prop('id')+"-tab").addClass('tab-with-error');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user