allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jetm...@apache.org
Subject [13/16] allura git commit: [#7999] ticket:861 Change new projects js to work with new parameters format
Date Wed, 18 Nov 2015 16:06:12 GMT
[#7999] ticket:861 Change new projects js to work with new parameters format


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/751891bb
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/751891bb
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/751891bb

Branch: refs/heads/ib/7999a
Commit: 751891bbdf76663d98d0f5383ce5f85aa0d64889
Parents: 283d525
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Wed Nov 18 15:59:10 2015 +0200
Committer: Igor Bondarenko <jetmind2@gmail.com>
Committed: Wed Nov 18 15:59:10 2015 +0200

----------------------------------------------------------------------
 Allura/allura/controllers/site_admin.py               | 2 +-
 Allura/allura/public/nf/js/site_admin_new_projects.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/751891bb/Allura/allura/controllers/site_admin.py
----------------------------------------------------------------------
diff --git a/Allura/allura/controllers/site_admin.py b/Allura/allura/controllers/site_admin.py
index 4776dd5..b6c0223 100644
--- a/Allura/allura/controllers/site_admin.py
+++ b/Allura/allura/controllers/site_admin.py
@@ -386,7 +386,7 @@ class DeleteProjectsController(object):
         projects = self.format_parsed_projects(parsed_projects)
         edit_link = u'./?projects={}&reason={}&disable_users={}'.format(
             h.urlquoteplus(projects),
-            h.urlquoteplus(reason),
+            h.urlquoteplus(reason or ''),
             h.urlquoteplus(disable_users))
         return {'projects': projects,
                 'parsed_projects': parsed_projects,

http://git-wip-us.apache.org/repos/asf/allura/blob/751891bb/Allura/allura/public/nf/js/site_admin_new_projects.js
----------------------------------------------------------------------
diff --git a/Allura/allura/public/nf/js/site_admin_new_projects.js b/Allura/allura/public/nf/js/site_admin_new_projects.js
index 148e3de..302f4f7 100644
--- a/Allura/allura/public/nf/js/site_admin_new_projects.js
+++ b/Allura/allura/public/nf/js/site_admin_new_projects.js
@@ -24,7 +24,7 @@ $(document).ready(function() {
       urls.push($(val).attr('data-url'));
     });
     if (urls.length > 0) {
-      var url = '/nf/admin/delete_projects?projects=' + urls.join(' ');
+      var url = '/nf/admin/delete_projects/?projects=' + encodeURIComponent(urls.join('\n'));
       var url = $('<a>Delete selected projects</a>').attr('href', url);
       $('#delete-projects-url').html(url);
     } else {


Mime
View raw message