From 7129ea88b61aee345121503fe02196e6572d15ef Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 29 Sep 2014 14:45:58 +0000 Subject: Move + for new line creation to the beginning of editmacauthfile HTML view --- freeradius3-editmacauthfile-html.lsp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/freeradius3-editmacauthfile-html.lsp b/freeradius3-editmacauthfile-html.lsp index fc59628..15a8200 100644 --- a/freeradius3-editmacauthfile-html.lsp +++ b/freeradius3-editmacauthfile-html.lsp @@ -14,13 +14,13 @@ '; var addEntry = ' \ \ - '; + '; function deleteLine(){ $(this).parent().parent().replaceWith(); } function addLine(){ - addLinks($(this).parent().parent().before('').prev()); + addLinks($(this).parent().parent().after('').next()); } function addLinks(rows){ rows.each(function(){ @@ -66,7 +66,7 @@ }); $("#entries").find("input").each(validateLine); addLinks($("#entries").find("tr")); - $("#entries").append(addEntry).find("a:last").click(addLine); + $("#entries").prepend(addEntry).find("a:first").click(addLine); $("form").submit(submitFile); }); -- cgit v1.2.3