allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [49/50] [abbrv] allura git commit: [#7919] don't need to check length since we specify maxlength; > 61 was wrong anyway
Date Fri, 08 Jan 2016 19:30:54 GMT
[#7919] don't need to check length since we specify maxlength; > 61 was wrong anyway


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

Branch: refs/heads/master
Commit: 613c4ff95de0ffd18ab3da65f6949a6966ac5faa
Parents: f41db3e
Author: Dave Brondsema <dave@brondsema.net>
Authored: Fri Dec 18 12:48:08 2015 -0500
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Fri Jan 8 14:06:19 2016 -0500

----------------------------------------------------------------------
 Allura/allura/ext/admin/templates/project_install_tool.html | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/613c4ff9/Allura/allura/ext/admin/templates/project_install_tool.html
----------------------------------------------------------------------
diff --git a/Allura/allura/ext/admin/templates/project_install_tool.html b/Allura/allura/ext/admin/templates/project_install_tool.html
index 456953f..900b031 100644
--- a/Allura/allura/ext/admin/templates/project_install_tool.html
+++ b/Allura/allura/ext/admin/templates/project_install_tool.html
@@ -99,12 +99,7 @@
         var v = $(mp).val();
         var mp_exists = _.contains(_existingMountPoints, $(mp).val());
 
-        if(v.length > 61){
-            submit_button.attr('disabled', true);
-            $(url_error).text("The path entered is too long");
-            mp.setCustomValidity("Must be less than 63 characters");
-        }
-        else if (!v.match(_re)) {
+        if (!v.match(_re)) {
             submit_button.attr('disabled', true);
             $(url_error).text("You have entered an invalid character");
             mp.setCustomValidity("Invalid character");


Mime
View raw message