aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rwxr-xr-xview/tpl/admin_plugins.tpl3
-rw-r--r--view/tpl/admin_plugins_addrepo.tpl1
2 files changed, 3 insertions, 1 deletions
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 @@
<p class="descriptive-text">{{$desc}}</p>
{{include file="field_input.tpl" field=$repoURL}}
+ {{include file="field_input.tpl" field=$repoName}}
<div class="btn-group pull-right">
<button id="add-plugin-repo-submit" class="btn btn-primary" type="submit" name="submit" onclick="adminPluginsAddRepo(); return false;">{{$submit}}</button>
</div>