Skip to content

Commit

Permalink
add relation link on right click
Browse files Browse the repository at this point in the history
  • Loading branch information
okkype committed Apr 3, 2019
1 parent 665147b commit 2f4c1da
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 28 deletions.
28 changes: 0 additions & 28 deletions requirement.txt

This file was deleted.

7 changes: 7 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
django-bootstrap3>=10.0.1
django-htmlmin>=0.10.0
django-nvd3==0.9.7
django-progressive-web-app>=0.1.1
Django>=1.11,<2.0
python-telegram-bot>=11.1
requests>=2.20.0
5 changes: 5 additions & 0 deletions sihipo_root/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ body {
font-weight: 900;
}

.dropdown-menu {
left: unset !important;
right: 0 !important;
}

textarea, .CodeMirror {
font-family: courier, monospace !important;
resize: vertical;
Expand Down
6 changes: 6 additions & 0 deletions sihipo_root/templates/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
</div>
{% endblock %}
{% block jquery %}
$('select').contextmenu(function () {
target = '/' + $(this).attr('name').replace(/_/g, '') + '/update/' + $(this).val();
$.get(target, function () {
location.href = target;
});
});
{% for datetime_field in datetime_fields %}
$('#id_{{ datetime_field }}').datetimepicker({format:'YYYY-MM-DD HH:mm:ss'});
{% endfor %}
Expand Down

0 comments on commit 2f4c1da

Please sign in to comment.