whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] 01/02: Use availid for emeritus filename
Date Thu, 21 May 2020 15:06:43 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git

commit 5853015f33af05a2ba23c4cca416422df28cefd5
Author: Sebb <sebb@apache.org>
AuthorDate: Thu May 21 14:58:22 2020 +0100

    Use availid for emeritus filename
---
 www/secretary/workbench/views/forms/emeritus-request.js.rb | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/www/secretary/workbench/views/forms/emeritus-request.js.rb b/www/secretary/workbench/views/forms/emeritus-request.js.rb
index acf5c96..c4111b0 100644
--- a/www/secretary/workbench/views/forms/emeritus-request.js.rb
+++ b/www/secretary/workbench/views/forms/emeritus-request.js.rb
@@ -32,7 +32,6 @@ class EmeritusRequest < Vue
       name = "#{parts[1].strip()} #{parts[0]}"
     end
     @search = name
-    @filename = self.gen_file_name(name)
   end
 
   def render
@@ -57,7 +56,7 @@ class EmeritusRequest < Vue
             _li do
               _input type: :radio, name: 'search', id: availid, onClick: lambda {
                 @availid = availid
-                @filename = self.gen_file_name(name)
+                @filename = availid
                 @disabled = false
               }
               _label name, for: availid
@@ -87,7 +86,4 @@ class EmeritusRequest < Vue
     end
   end
 
-  def gen_file_name(name)
-    return asciize(name.strip()).downcase().gsub(/\W+/, '-')
-  end
 end


Mime
View raw message