From 174484a51cfc99e2194480a7e7513694028eecb3 Mon Sep 17 00:00:00 2001 From: Andrew Manning Date: Sun, 8 May 2016 09:26:06 -0400 Subject: Custom addon repo name option added. --- view/tpl/admin_plugins.tpl | 3 ++- view/tpl/admin_plugins_addrepo.tpl | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'view') diff --git a/view/tpl/admin_plugins.tpl b/view/tpl/admin_plugins.tpl index 9e1d05a44..87d380a01 100755 --- a/view/tpl/admin_plugins.tpl +++ b/view/tpl/admin_plugins.tpl @@ -54,9 +54,10 @@ function adminPluginsAddRepo() { var repoURL = $('#id_repoURL').val(); + var repoName = $('#id_repoName').val(); $('#chat-rotator').spin('tiny'); $.post( - "/admin/plugins/addrepo", {repoURL: repoURL}, + "/admin/plugins/addrepo", {repoURL: repoURL, repoName: repoName}, function(response) { $('#chat-rotator').spin(false); if (response.success) { diff --git a/view/tpl/admin_plugins_addrepo.tpl b/view/tpl/admin_plugins_addrepo.tpl index fe5fecc25..de7b465bb 100644 --- a/view/tpl/admin_plugins_addrepo.tpl +++ b/view/tpl/admin_plugins_addrepo.tpl @@ -2,6 +2,7 @@

{{$desc}}

{{include file="field_input.tpl" field=$repoURL}} + {{include file="field_input.tpl" field=$repoName}}
-- cgit v1.2.3