diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-09-09 11:07:01 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:20:58 +0100 |
commit | 3297cdadc31ea857ed51317081d7d3174af7dbc9 (patch) | |
tree | 206966ec7684d85811f7a8686fd781d3ab9d9fd4 /ishtar_common/static | |
parent | 07e3e2e9c3da9f05634a45f65723504c229f2baa (diff) | |
download | Ishtar-3297cdadc31ea857ed51317081d7d3174af7dbc9.tar.bz2 Ishtar-3297cdadc31ea857ed51317081d7d3174af7dbc9.zip |
Migration to Django 2.2 - fixes
- remove django-ajax-select
- fix migrations
Diffstat (limited to 'ishtar_common/static')
-rw-r--r-- | ishtar_common/static/ajax_select/css/ajax_select.css | 49 | ||||
-rw-r--r-- | ishtar_common/static/ajax_select/js/bootstrap.js | 30 |
2 files changed, 0 insertions, 79 deletions
diff --git a/ishtar_common/static/ajax_select/css/ajax_select.css b/ishtar_common/static/ajax_select/css/ajax_select.css deleted file mode 100644 index 379b5be96..000000000 --- a/ishtar_common/static/ajax_select/css/ajax_select.css +++ /dev/null @@ -1,49 +0,0 @@ -.results_on_deck .ui-icon-trash { - float: left; - cursor: pointer; -} -.results_on_deck { - padding: 0.25em 0; -} -form .aligned .results_on_deck { - padding-left: 38px; - margin-left: 7em; -} -.results_on_deck > div { - margin-bottom: 0.5em; -} -.ui-autocomplete-loading { - background: url('../images/loading-indicator.gif') no-repeat; - background-origin: content-box; - background-position: right; -} -ul.ui-autocomplete { - /* - this is the dropdown menu. - - if max-width is not set and you are using django-admin - then the dropdown is the width of your whole page body (totally wrong). - - this sets max-width at 60% which is graceful at full page or in a popup - or on a small width window. - - fixed width is harder see http://stackoverflow.com/questions/4607164/changing-width-of-jquery-ui-autocomplete-widgets-individually - */ - max-width: 60%; - margin: 0; - padding: 0; - position: absolute; -} -ul.ui-autocomplete li { - list-style-type: none; - padding: 0; -} -ul.ui-autocomplete li a { - display: block; - padding: 2px 3px; - cursor: pointer; -} - -.results_on_deck .ajax-label{ - line-height: 18px; -} diff --git a/ishtar_common/static/ajax_select/js/bootstrap.js b/ishtar_common/static/ajax_select/js/bootstrap.js deleted file mode 100644 index cb742eaa9..000000000 --- a/ishtar_common/static/ajax_select/js/bootstrap.js +++ /dev/null @@ -1,30 +0,0 @@ -(function(w) { - /** - * load jquery and jquery-ui if needed - */ - - function not(thing) { - return typeof thing === 'undefined'; - } - - function loadJS(src) { - document.write('<script type="text/javascript" src="' + src + '"><\/script>'); - } - - function loadCSS(href) { - var script = document.createElement('link'); - script.href = href; - script.type = 'text/css'; - script.rel = 'stylesheet'; - document.head.appendChild(script); - } - - if (not(w.jQuery)) { - loadJS('//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'); - } - - if (not(w.jQuery) || not(w.jQuery.ui) || not(w.jQuery.ui.autocomplete)) { - loadJS('//code.jquery.com/ui/1.10.3/jquery-ui.js'); - loadCSS('//code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css'); - } -})(window); |