mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	Change validation process (currently broken)
This commit is contained in:
		@@ -133,6 +133,7 @@ nopaque.Forms.init = function() {
 | 
			
		||||
        window.location.href = JSON.parse(this.responseText).redirect_url;
 | 
			
		||||
      }
 | 
			
		||||
      if (request.status === 400) {
 | 
			
		||||
        console.log(request);
 | 
			
		||||
        for (let [field, errors] of Object.entries(JSON.parse(this.responseText))) {
 | 
			
		||||
          fieldElement = form.querySelector(`input[name="add-job-form-${field}"]`).closest(".input-field");
 | 
			
		||||
          for (let error of errors) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user