2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-28 10:02:10 +00:00
troggle/media/jslib
2022-07-05 14:16:21 +03:00
..
CaveView Caveview enabled - local copy 3MB 2021-04-02 19:02:10 +01:00
CaveView installation.mhtml CaveView - how to install 2022-07-05 14:16:21 +03:00
demo 3d cave viewer.url CaveView - how to install 2022-07-05 14:16:21 +03:00
readme.txt jslib docum 2021-10-31 17:59:11 +02:00
Releases · aardgoose-CaveView.js · GitHub.url CaveView - how to install 2022-07-05 14:16:21 +03:00

settings.JSLIB_URL == /JAVASCRIPT/
http://localhost:8000/pathsreport to check
JSLIB_ROOT	/mnt/c/EXPO/troggle/media/jslib	
JSLIB_URL	/javascript/	

links to JS files are in the ../templates/*.html files

but _also_, and peculiarly, in the troggle/admin.py files (which are dead links)
i.e.
class TroggleModelAdmin(admin.ModelAdmin):
    
    def save_model(self, request, obj, form, change):
        """overriding admin save to fill the new_since parsing_field"""
        obj.new_since_parsing=True
        obj.save()
    
    class Media:
        js = ('jquery/jquery.min.js','js/QM_helper.js')

NB any *Admin class is used in the Django control panel only.

The jquery links have been REMOVED from the templates as they were not used anywhere.
templates/editentrance.html:

{% extends "cavebase.html" %}

{% block title %}Edit Entrance{% endblock %}
{% block extraheaders %}

<link rel="stylesheet" href="{{ settings.JSLIB_URL }}jquery-ui/css/lightness/jquery-ui.css" type="text/css" media="all" />
<script src="{{ settings.JSLIB_URL }}jquery-ui/jquery-ui.min.js" type="text/javascript"></script>
<!--<script src="{{ settings.TINY_MCE_MEDIA_URL }}tiny_mce.js" type="text/javascript"></script>-->
{% endblock %}
{% block content %}
etc

{% endblock %}