Plugin Directory

Changeset 2673321


Ignore:
Timestamp:
02/05/2022 07:38:15 AM (4 years ago)
Author:
morphii
Message:

Added intensity validation message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • morphii/trunk/assets/js/morphii-custom.js

    r2665851 r2673321  
    169169   
    170170      if (event.selection_required_valid === true) {
     171      jQuery(".morphii-questions").find(".intensity-error").remove();
    171172        submitButton.removeAttribute('disabled');
    172173      }
    173174      else {
     175          if(jQuery(".morphii-questions").find(".intensity-error").length==0)
     176          jQuery(".morphii-questions").append("<span class='intensity-error'><br/><hr/><p style='color:red'>Oops! You forgot to tell us how intense your feelings are. Use the slider to adjust the facial expression to show us</p></span>");
     177
    174178        submitButton.setAttribute('disabled', 'disabled');
    175179      }
Note: See TracChangeset for help on using the changeset viewer.