diff --git a/static/mailing_settings/css/main.css b/static/mailing_settings/css/main.css index 5f285b53..ff95a8d7 100644 --- a/static/mailing_settings/css/main.css +++ b/static/mailing_settings/css/main.css @@ -62,6 +62,10 @@ box-sizing: border-box; } +:focus{ + outline: 0 none; +} + .container{ max-width: 1140px; margin: 0 auto; @@ -694,4 +698,66 @@ h3{ border-radius: 3px; background-color: #fff; padding: 15px; -} \ No newline at end of file +} + +.autocomplete_block{ + position: relative; + margin-bottom: 5px; +} + +.autocomplete_input{ + display: block; + min-width: 100%; + border: 0; + border-bottom: 1px dotted #cdcdcd; + height: 35px; + padding: 0 15px; + font-size: 15px; + color: rgb(34, 34, 34); + font-weight: 300; +} + +.autocomplete_themes_results{ + list-style: none; + max-height: 230px; + overflow-y: auto; + background-color: #fff; + border: 1px solid #cdcdcd; + position: absolute; + top: calc(100% - 1px); + left: 0; + right: 0; + z-index: 1; + display: none; +} + +.autocomplete_themes_results li{ + padding: 2px 10px; + cursor: pointer; + color: #464646; +} + +.autocomplete_themes_results li:hover{ + color: #ff6600; +} + +.autocomplete_themes_results span{ + color: #ababab; +} + +.selected_values{ + border-bottom: 1px dotted #cdcdcd; + margin-bottom: 5px; + padding-bottom: 5px; + display: none; +} + +.selected_values li { + margin-bottom: 3px; + margin-right: 3px; + padding: 3px 5px; +} + +.selected_values li a{ + margin-left: 5px; +} diff --git a/static/mailing_settings/js/main.js b/static/mailing_settings/js/main.js index 6066989c..78d00d55 100644 --- a/static/mailing_settings/js/main.js +++ b/static/mailing_settings/js/main.js @@ -12,17 +12,17 @@ function sendForm () { }) } + // Выбор тем (function () { var $themes_modal = $('.popup-window.themes'), + $autocomplete = $('#autocomplete_themes', $themes_modal), + $autocomplete_results = $('#autocomplete_themes_results', $themes_modal), $themes_select = $('#id_th'), $tags_select = $('#id_tg'), - $selected_themes = $('#selected_themes'), - $selected_tags = $('#selected_tags'), - user_choice = { - th: {}, - tg: {} - }, + $selected_themes = $('.selected_themes'), + timer, + tags_ids = [], renderSublistItem = function (data) { return '