try {
$idx = $lx->add_matching_form( $strrep ) - 1;
} catch( Text::Tradition::Error $e ) {
- # TODO catch other errors e.g. Moose ones
$c->response->status( '403' );
$errmsg = $e->message;
+ } catch {
+ # Something else went wrong, probably a Moose error
+ $c->response->status( '403' );
+ $errmsg = 'Something went wrong with the request';
}
}
$lx->disambiguate( $idx ) if defined $idx;
'normal_form': $('#reading_normal_form').val() };
// Add the morphology values
$('.reading_morphology').each( function() {
- var rmid = $(this).attr('id');
- rmid = rmid.substring(8);
- form_values[rmid] = $(this).val();
+ if( $(this).val() != '(Click to select)' ) {
+ var rmid = $(this).attr('id');
+ rmid = rmid.substring(8);
+ form_values[rmid] = $(this).val();
+ }
});
// Make the JSON call
ncpath = getReadingURL( reading_id );
$("#dialog_overlay").height( $("#enlargement_container").height() );
$("#dialog_overlay").width( $("#enlargement_container").innerWidth() );
$("#dialog_overlay").offset( $("#enlargement_container").offset() );
+ $("#reading-form").parent().find('.ui-button').button("enable");
},
close: function() {
$("#dialog_overlay").hide();