From: Errietta Kostala Date: Mon, 11 May 2015 09:19:17 +0000 (+0000) Subject: Allow setting text direction. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7e48fe7e26e40815f826968cf9d6b48f0aa21a1d;p=scpubgit%2Fstemmaweb.git Allow setting text direction. --- diff --git a/lib/stemmaweb/Controller/Root.pm b/lib/stemmaweb/Controller/Root.pm index 7159680..66a0d92 100644 --- a/lib/stemmaweb/Controller/Root.pm +++ b/lib/stemmaweb/Controller/Root.pm @@ -123,12 +123,15 @@ sub newtradition :Local :Args(0) { my $name = $c->request->param('name') || 'Uploaded tradition'; my $lang = $c->request->param( 'language' ) || 'Default'; my $public = $c->request->param( 'public' ) ? 1 : undef; + my $direction = $c->request->param('direction') || 'LR'; + my( $ext ) = $upload->filename =~ /\.(\w+)$/; my %newopts = ( 'name' => $name, 'language' => $lang, 'public' => $public, - 'file' => $upload->tempname + 'file' => $upload->tempname, + 'direction' => $direction, ); my $tradition; diff --git a/root/src/index.tt b/root/src/index.tt index 4066c6e..ad6ab59 100644 --- a/root/src/index.tt +++ b/root/src/index.tt @@ -225,6 +225,15 @@ var textOnLoad = "[% withtradition %]";

+ + + +
+