Skip to content

Commit

Permalink
Fixed issue #08810: When importing a question entering a question cod…
Browse files Browse the repository at this point in the history
…e is required which doesn't make sense

Dev: better jquery selector : restrict to submit on frmeditquestion ...
Dev: add required to the_file : uneeded script validatefilename but leave it for dumb browser
Dev: add HTML5/accept : not really used actually : but idea for a new global script
  • Loading branch information
Shnoulle committed Mar 5, 2014
1 parent 019b94a commit c3d9329
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -330,7 +330,7 @@
<ul>
<li>
<label for='the_file'><?php $clang->eT("Select LimeSurvey question file (*.lsq/*.csv)"); ?>:</label>
<input name='the_file' id='the_file' type="file"/>
<input name='the_file' id='the_file' type="file" required="required" accept=".lsq,.csv" />
</li>
<li>
<label for='translinksfields'><?php $clang->eT("Convert resource links?"); ?></label>
Expand Down
2 changes: 1 addition & 1 deletion scripts/admin/questions.js
Expand Up @@ -19,7 +19,7 @@ $(document).on('blur','#frmeditquestion :not(:hidden)[name="title"]',function(){
/**
* Validate question object before click on a submit button
*/
$(document).on('click',':submit',{validated:false},function(event,data){
$(document).on('click','#frmeditquestion :submit',{validated:false},function(event,data){
data = data || event.data;
if(data.validated){
return true;
Expand Down

0 comments on commit c3d9329

Please sign in to comment.