FEATURE #1435: few smaller UI tweaks in creating new content page

This commit is contained in:
Michal Kváček
2016-08-19 13:20:16 +02:00
parent 0d1d692c45
commit f6fd924cbd
7 changed files with 22 additions and 7 deletions
+5
View File
@@ -13032,4 +13032,9 @@ a:focus {
color: #FF4444;
font-size: 13px;
display: block !important;
}
.tab-with-error {
color: red !important;
font-weight: bold;
}
+2 -2
View File
@@ -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');
});
});