summaryrefslogtreecommitdiff
path: root/design/templates/admin/jrnl/change_form.html
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-02-02 16:43:02 -0600
committerluxagraf <sng@luxagraf.net>2018-02-02 16:43:02 -0600
commit56956009a2a1f02a60d7591cddcdd5f627d88258 (patch)
tree1d9ef873d2ffef77295335163bcc3155f8dec8e8 /design/templates/admin/jrnl/change_form.html
parenta936af5ccda54b6f366caca579a2453898c9e671 (diff)
simplified image inserts
Diffstat (limited to 'design/templates/admin/jrnl/change_form.html')
-rw-r--r--design/templates/admin/jrnl/change_form.html29
1 files changed, 0 insertions, 29 deletions
diff --git a/design/templates/admin/jrnl/change_form.html b/design/templates/admin/jrnl/change_form.html
index e3edae0..06f2d9d 100644
--- a/design/templates/admin/jrnl/change_form.html
+++ b/design/templates/admin/jrnl/change_form.html
@@ -4,22 +4,6 @@
{% block extrahead %}{{ block.super }}
<script type="text/javascript" src="{% url 'admin:jsi18n' %}"></script>
{{ media }}
-<script>
-if (!$) {
- $ = django.jQuery;
-}
-$(function(){
- $('#id_body_markdown').each(function(){
- $(this).after('<iframe frameborder="0" style="border: #dddddd 1px solid;margin-left: 20px;width:330px; height:720px;" src="/luximages/insert/?textarea='+this.id+'"></iframe>');
- });
- $('#id_images').css('width', '500px').css('height', '400px');
- $('#id_images option').each(function(){
- $(this).attr('style', 'background: url('+$(this).text().split("qq")[1]+') no-repeat; background-size: 120px 80px; height: 80px; padding-left: 125px; line-height: 80px; margin-bottom: 4px; padding-bottom: 5px;border-bottom: #eee 1px solid;');
- $(this).html($(this).text().split("qq")[0] + ' &ndash; <a href="/admin/photos/luximage/'+ $(this).text().split("qq")[2]+'/change/">edit</a>')
- });
-});
-</script>
-
{% endblock %}
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}" />{% endblock %}
@@ -40,24 +24,11 @@ $(function(){
{% endif %}
{% block content %}
- <a class="btn" onclick="geoFindMe();" href="javascript:void(0);" class="historylink">Get Location</a>
<div id="content-main">
{% block object-tools %}
{% if change %}{% if not is_popup %}
<ul class="object-tools">
{% block object-tools-items %}
-
- <li>
- <a onclick="geoFindMe();" href="javascript:void(0);" class="historylink">Get Location</a>
- </li>
- <li>
- <a href="{% url opts|admin_urlname:'history' original.pk|admin_urlquote %}" class="historylink">{% trans "History" %}</a>
- </li>
- {% if has_absolute_url %}
- <li>
- <a href="{% url 'admin:view_on_site' content_type_id original.pk %}" class="viewsitelink">{% trans "View on site" %}</a>
- </li>
- {% endif %}
<li>
{% url opts|admin_urlname:'history' original.pk|admin_urlquote as history_url %}
<a href="{% add_preserved_filters history_url %}" class="historylink">{% trans "History" %}</a>