diff --git a/backend/web/js/option.js b/backend/web/js/option.js
index 1894753..3c3ae52 100755
--- a/backend/web/js/option.js
+++ b/backend/web/js/option.js
@@ -159,6 +159,8 @@ $(document).ready(function(){
removeSpecializationTags()
newAddSpecializationTags()
checkSpecialization()
+ selectAllInBox()
+ loadList()
function addSpecializationTagsLoad(){
var specTags = $('.admin-page .third-ul-menu input:checked')
@@ -169,6 +171,29 @@ $(document).ready(function(){
}
}
+ function loadList(){
+ $( '.new-spec-block .content-menu-first :checkbox:checked' ).each(function(){
+ var ThisTxt = $(this).parents('a').text();
+ Thisid = $(this).attr('id');
+
+ $(".admin-specialization-selected ul").append('
'+ThisTxt+'');
+ });
+ $(".admin-specialization-selected ul li").click(function(){
+ var specIdThis = ($(this).data('spec-id'));
+ $('.new-spec-block .content-menu-first').find("#"+specIdThis).prop('checked', false);
+ $(this).remove();
+ });
+ }
+
+ function selectAllInBox(){
+
+ $(".new-spec-block .content-menu-first li a").click(function(){
+ $(this).parent().find("ul input[type=checkbox]").prop('checked', true);
+ $(".admin-specialization-selected").find("li").remove();
+ loadList();
+ });
+ }
+
function removeSpecializationTags(){
$('body').on('click', '.admin-page .admin-specialization-selected ul li', function(){
var removeSpecTagsId = $(this).attr('data-spec-id')
@@ -194,7 +219,7 @@ $(document).ready(function(){
}
- if( ($('.admin-page .admin-specialization-selected ul li').length)>0 ){
+ if( ($('.admin-page .admin-specialization-selected ul li, .new-spec-block .admin-specialization-selected ul li').length)>0 ){
$('.input-blocks-wrapper.admin-menu-list .admn-menu-err').addClass('has-error').removeClass('has-error')
} else {
$('.input-blocks-wrapper.admin-menu-list .admn-menu-err').addClass('has-error')
@@ -220,4 +245,5 @@ $(document).ready(function(){
$('.admin-page .admin-menu-list .content-menu-first a').addClass('no-click')
$('.admin-page .admin-menu-list .content-menu-first a.remove-link, .third-ul-menu a').removeClass('no-click')
$('.admin-page .admin-menu-list .content-menu-first a.no-click').click(function(e){e.preventDefault()})
+
})
diff --git a/frontend/web/css/style.css b/frontend/web/css/style.css
index 979720c..2efbd52 100755
--- a/frontend/web/css/style.css
+++ b/frontend/web/css/style.css
@@ -12447,4 +12447,79 @@ li.active-menu-admin:hover a .ico_num {
right: -13px;
top: 50%;
margin-top: -9px;
+}
+
+/* specialisations */
+
+.new-spec-block{
+ width: 100%;
+ position: relative;
+ font-size: 13px;
+ margin-bottom: 15px;
+}
+.new-spec-block .content-menu-first{width: 100%;}
+.new-spec-block ul.content-menu-first li {
+ width: 100%;
+ list-style: none;
+ box-sizing: border-box;
+ border-top: 1px solid #dfdfdf;
+ border-right: 1px solid #dfdfdf;
+ height: 30px;
+ line-height: 30px;
+ cursor: pointer;
+ transition: 0.3s;
+ background: #fff;
+}
+.new-spec-block ul.content-menu-first li > ul {
+ position: absolute;
+ top: 0;
+ left: 100%;
+ width: 235px;
+ height: 100%;
+}
+.new-spec-block ul.content-menu-first li > ul li {
+ height: auto;
+ line-height: 14px;
+ min-height: 30px;
+ padding: 8px 8px 7px 19px;
+ width: 235px;
+}
+.new-spec-block ul.content-menu-first li > ul {
+ position: absolute;
+ top: 0;
+ left: 100%;
+ width: 235px;
+ height: 100%;
+}
+.new-spec-block ul.third-ul-menu li {
+ background: #fff !important;
+ border-left: 1px solid #dfdfdf;
+ line-height: 18px!important;
+ width: 235px!important;
+}
+.new-spec-block .search-work-form input[type="checkbox"] + label span {
+ width: 12px;
+ height: 12px;
+ background: url('/images/check.png') no-repeat;
+ float: left;
+ transition: 0.2s;
+ margin-top: 3px;
+}
+.new-spec-block ul.content-menu-first li > ul li {
+ height: auto;
+ min-height: 30px;
+ padding: 8px 8px 7px 19px;
+}
+.new-spec-block .form-group {margin-bottom: 0px!important;}
+.new-spec-block .control-label {font-weight: 100!important;}
+.left-search-work .admin-specialization-selected ul {
+ width: 105%;
+ max-height: 250px;
+ overflow-x: hidden;
+ overflow-y: auto;
+ margin: 0px 0px 15px -10px;
+}
+.left-search-work .admin-specialization-selected ul li {border-bottom:none;float: initial;padding-right: 20px;}
+.left-search-work .admin-specialization-selected ul li:before {
+ right: 8px;
}
\ No newline at end of file
--
libgit2 0.21.4