From c8a55ba7d09fa091ff64a79b9a8347b6d3191da6 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 17 Jul 2008 13:37:55 +0000 Subject: Modifed tinydns view to combine all record types, except for locations, and display together. git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1313 ab2d0c66-481e-0410-8bed-d214d4d58bed --- tinydns-view-html.lsp | 86 +++++++++++++++++++++++++-------------------------- 1 file changed, 43 insertions(+), 43 deletions(-) (limited to 'tinydns-view-html.lsp') diff --git a/tinydns-view-html.lsp b/tinydns-view-html.lsp index 8ec8b9e..354b199 100644 --- a/tinydns-view-html.lsp +++ b/tinydns-view-html.lsp @@ -19,6 +19,10 @@ require("viewfunctions") }); } } + function toggleEntry(){ + $(this).find("table").toggle(); + $(this).find("pre").toggle(); + } function editEntry(){ window.location.href = "edit?" + this.id; } @@ -31,6 +35,8 @@ require("viewfunctions") $("#filter-list").submit(function(){ return false; }).focus(); + $("#records pre").hide(); + $("#records li").not(":has(ul)").click(toggleEntry); $("#records li").not(":has(ul)").dblclick(editEntry); $("#locations li").not(":has(ul)").dblclick(editEntry); }); @@ -49,14 +55,10 @@ io.write("")

Locations

- - > - -
    - +
@@ -70,14 +72,13 @@ if (view.value) and (view.value['%']) then

") ?>

- - - -
- +end ?> + No locations defined + + +
Records
Filter:
- -
-
    - -
    • -
      - - - - - -
      :
      - -

      ") ?>

      - -
    - -
- + + + + No records defined + +
-- cgit v1.2.3