1b580735 by Jeff Balicki

fix vaild

1 parent 4deee6eb
...@@ -395,7 +395,7 @@ function changePdfOptions(json, edit) { ...@@ -395,7 +395,7 @@ function changePdfOptions(json, edit) {
395 395
396 e.preventDefault(); 396 e.preventDefault();
397 397
398 398 if ($("#changes").valid()) {
399 399
400 $(tinymce.get()).each(function(i, el) { 400 $(tinymce.get()).each(function(i, el) {
401 401
...@@ -405,7 +405,7 @@ function changePdfOptions(json, edit) { ...@@ -405,7 +405,7 @@ function changePdfOptions(json, edit) {
405 tinymce.get(el.id).remove(); 405 tinymce.get(el.id).remove();
406 }); 406 });
407 407
408 if ($("#changes").valid()) { 408
409 var ids =[]; 409 var ids =[];
410 if(edit == true){ 410 if(edit == true){
411 $("#changes input[type=file]").each(function() { 411 $("#changes input[type=file]").each(function() {
......