0.0.12
This commit is contained in:
@@ -95,6 +95,19 @@
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.el-form-create-ticket-select:focus-visible{
|
||||
border: none;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.el-form-create-ticket-select > option {
|
||||
border: none;
|
||||
outline: none;
|
||||
-webkit-appearance: none;
|
||||
-webkit-border-radius: 0;
|
||||
outline-offset: -1px;
|
||||
}
|
||||
|
||||
.el-form-create-ticket{
|
||||
width: calc(100% - 40px);
|
||||
height: 20px;
|
||||
|
||||
@@ -46,11 +46,13 @@ function inputQuest (){
|
||||
|
||||
|
||||
function attachFileCreateTicket () {
|
||||
event.preventDefault()
|
||||
let input = document.querySelector(".create-ticket-file")
|
||||
input.click()
|
||||
console.log("asd")
|
||||
let data = input.value
|
||||
let input = inputQuest()
|
||||
let file = input.files[0]
|
||||
// let file_url = URL.createObjectURL(file)
|
||||
|
||||
|
||||
|
||||
let data = file
|
||||
$.ajax({
|
||||
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
||||
url: '/ru/user_account/support_create_ticket_ajax/',
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
name="name"
|
||||
id="id_name"
|
||||
placeholder="Тема запроса"
|
||||
value="{% if form.adding_machine.name %}{{ form.adding_machine.name }}{% endif %}"
|
||||
value="{% if form.adding_machine.name %}{{ form.initial.name }}{% endif %}"
|
||||
>
|
||||
{% if form.errors.name %}<div class="errors">{{ form.errors.name }}</div>{% endif %}
|
||||
</div>
|
||||
@@ -31,7 +31,7 @@
|
||||
id="id_text"
|
||||
class="el-form-create-ticket-textarea"
|
||||
placeholder="Введите сообщение..."
|
||||
value="{% if form.adding_machine.text %}{{ form.adding_machine.text }}{% endif %}"
|
||||
value="{% if form.adding_machine.text %}{{ form.initial.text }}{% endif %}"
|
||||
onkeyup="countLetters()"></textarea>
|
||||
{% if form.errors.text %}<div class="errors">{{ form.errors.text }}</div>{% endif %}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user