From 0fcc3797a7cef3f063ebcbc59aecfab5eb89eecb Mon Sep 17 00:00:00 2001 From: Yorhel Date: Mon, 17 Aug 2015 01:10:55 +0200 Subject: js: Add L10N strings to all relevant vars This simplifies the JS code in some places and removes a whole number of L10N strings from the "l10n_str" var, thus shrinking the JS size a bit (uncompressed about 1500 bytes, in fact. 500 bytes after gzip). --- lib/VNDB/Handler/Releases.pm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/VNDB/Handler/Releases.pm b/lib/VNDB/Handler/Releases.pm index 805329af..35cf824c 100644 --- a/lib/VNDB/Handler/Releases.pm +++ b/lib/VNDB/Handler/Releases.pm @@ -433,12 +433,7 @@ sub _form { end; h2 mt '_redit_form_media'; - div id => 'media_div'; - Select; - option value => $_, class => $self->{media}{$_} ? 'qty' : 'noqty', mt "_med_$_", 1 - for (sort keys %{$self->{media}}); - end; - end; + div id => 'media_div', ''; }], ], -- cgit v1.2.3