FEATURE #1435: few smaller UI tweaks in creating new content page
This commit is contained in:
+5
@@ -13032,4 +13032,9 @@ a:focus {
|
||||
color: #FF4444;
|
||||
font-size: 13px;
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
.tab-with-error {
|
||||
color: red !important;
|
||||
font-weight: bold;
|
||||
}
|
||||
@@ -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