diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-09-29 14:45:58 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-09-29 14:45:58 +0000 |
commit | 7129ea88b61aee345121503fe02196e6572d15ef (patch) | |
tree | 7d78140e2144082b40fd3004d5d98d4d23742f47 | |
parent | a03de8da1d5af33c465c035b90c0d82afe0f9a90 (diff) | |
download | acf-freeradius3-7129ea88b61aee345121503fe02196e6572d15ef.tar.bz2 acf-freeradius3-7129ea88b61aee345121503fe02196e6572d15ef.tar.xz |
Move + for new line creation to the beginning of editmacauthfile HTML view
-rw-r--r-- | freeradius3-editmacauthfile-html.lsp | 6 |
1 files 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 @@ </td>'; var addEntry = '<tr><td> \ <a href="javascript:;"><img src="<%= html.html_escape(page_info.wwwprefix..page_info.staticdir) %>/tango/16x16/actions/list-add.png" width="16" height="16" title="Insert entry"></a> \ - </td></tr>'; + </td><td></td></tr>'; function deleteLine(){ $(this).parent().parent().replaceWith(); } function addLine(){ - addLinks($(this).parent().parent().before('<tr><td><input type="text" value=""></td></tr>').prev()); + addLinks($(this).parent().parent().after('<tr><td><input type="text" value=""></td></tr>').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); }); </script> |