word/edit: hide manual crop coordinates input
authorMischa POSLAWSKY <perl@shiar.org>
Tue, 11 Jan 2022 00:12:17 +0000 (01:12 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Tue, 1 Mar 2022 20:02:26 +0000 (21:02 +0100)
Managed by js interface, values not needed as long as it works correctly.
Being hidden prevents workarounds so bugs are maybe forced to be fixed.

word/edit.plp

index f41b0ab787a387c1f5fd33d904edc4bc08fa5c2a..e4428519f3c09afb06fb372ed211f0bd094fdd5f 100644 (file)
@@ -111,7 +111,7 @@ my %wordcol = (
        convert => {-label => 'Convert options', -json => 'image', -multiple => 1, -src => sub {
                return "data/word/32/$_[0]->{id}.jpg";
        }},
        convert => {-label => 'Convert options', -json => 'image', -multiple => 1, -src => sub {
                return "data/word/32/$_[0]->{id}.jpg";
        }},
-       crop32  => {-label => 'Crop 3:2', -json => 'image'},
+       crop32  => {-json => 'image', type => 'hidden'}, # set by javascript interface
        story   => {-label => 'Story', type => 'textarea', hidden => 'hidden'},
 );
 
        story   => {-label => 'Story', type => 'textarea', hidden => 'hidden'},
 );