[ 
https://jira.duraspace.org/browse/DS-1023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=22457#comment-22457
 ] 

Simon Brown commented on DS-1023:
---------------------------------

A very quick way of doing this, if I recall correctly, is to set the onsubmit 
attribute of the form tag to "return false;" and setting the onclick attribute 
of the submit button to a call to submit the form e.g. 
"document.edit_metadata.submit()".

A nicer way is to set onsubmit to call a validation routine which checks the 
submit event for an enter keypress and returns false if it finds one and true 
otherwise. 

Also, I note that the JSPUI, at least, is using prototype.js, which has event 
observation stuff which works cross-browser; I'm not familiar enough with how 
prototype works to be able to say how to do this with it, but it would probably 
be the best way to go.
                
> No linebreaks allowed in submission form textboxes
> --------------------------------------------------
>
>                 Key: DS-1023
>                 URL: https://jira.duraspace.org/browse/DS-1023
>             Project: DSpace
>          Issue Type: Bug
>          Components: XMLUI
>            Reporter: Bram Luyten (@mire)
>
> Currently, linebreaks or enters are not allowed in metadata textboxes. In the 
> usecase of Description or Abstract, it's often the case that the text 
> contains paragraphs. Including these paragraphs will increase readability for 
> the end users. Furthermore, not being able to hit enter in a paragraph 
> textbox (not talking about text fields) is not the expected behaviour of such 
> a field.
> Its my understanding that the current behaviour is by design, and not 
> identified as a bug. I do hope that these arguments will allow a 
> re-consideration.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.duraspace.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to