Always include udraggable and autocomplete code
authorJoey Schulze <joey@infodrom.org>
Thu, 27 Jul 2017 21:04:16 +0000 (23:04 +0200)
committerJoey Schulze <joey@infodrom.org>
Sat, 6 Oct 2018 17:30:26 +0000 (19:30 +0200)
Styles/service.style
src/InfoCon/sprit/list.wml

index d043889..0b0256a 100644 (file)
 <meta name="author" content="joey@infodrom.org (Martin Schulze)">
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 <link href="<root_prefix>infodrom.css" rel="stylesheet" type="text/css">
-<script type="text/javascript" src="<root_prefix>/jquery-2.1.0.min.js"></script>
-<script type="text/javascript" src="<root_prefix>/infodrom.js"></script>
+<script type="text/javascript" src="<root_prefix>jquery-2.1.0.min.js"></script>
+<script type="text/javascript" src="<root_prefix>jquery.udraggable.js"></script>
+<script type="text/javascript" src="<root_prefix>jquery.event.ue.js"></script>
+<script type="text/javascript" src="<root_prefix>jquery.autocomplete.min.js"></script>
+<script type="text/javascript" src="<root_prefix>infodrom.js"></script>
 </head>
 <body>
 
@@ -102,18 +105,6 @@ img.calendar {
 <img class="calendar" src="<root_prefix>pix/calendar.gif" onclick="event.cancelBubble=true;popcalendar('%0');">
 </define-tag>
 
-<define-tag popups>
-<script type="text/javascript" src="<root_prefix>jquery.udraggable.js"></script>
-<script type="text/javascript" src="<root_prefix>jquery.event.ue.js"></script>
-<script type="text/javascript">
-$(function(){
-    $('div.popup').udraggable({
-        'handle': 'div.popup_title'
-    })
-});
-</script>
-</define-tag>
-
 <define-tag future>
 <?php
 $dir = getcwd();
index 3527477..ee99c57 100644 (file)
@@ -5,7 +5,6 @@
 <script type="text/javascript" src="<root_prefix>jquery.autocomplete.min.js"></script>
 <script type="text/javascript" src="<root_prefix>jquery.editable.js"></script>
 <calendar_init -5>
-<popups>
 <style type="text/css">
 div#details {
     width: 270px;
@@ -80,6 +79,9 @@ table.spritlog tbody tr:hover {
     $out = <<<EOT
 <script type="text/javascript">
 $(function(){
+    $('div.popup').udraggable({
+        'handle': 'div.popup_title'
+    })
     load_year({$list[0]->year});
     $('div.bar').click(toggle_year);
 });