Ver código fonte

fix for cal preselection of an existing event

Come 7 anos atrás
pai
commit
028ee0873d
1 arquivos alterados com 5 adições e 2 exclusões
  1. 5 2
      tracim/tracim/public/_caldavzap/forms.js

+ 5 - 2
tracim/tracim/public/_caldavzap/forms.js Ver arquivo

2393
 			$('#event_details_template').find('svg[data-type="select_icon"]').replaceWith($('<div>').append($(newSVG).clone()).html());
2393
 			$('#event_details_template').find('svg[data-type="select_icon"]').replaceWith($('<div>').append($(newSVG).clone()).html());
2394
 		}
2394
 		}
2395
 		/*************************** END OF BAD HACKS SECTION ***************************/
2395
 		/*************************** END OF BAD HACKS SECTION ***************************/
2396
-		if(calEvent.etag!='')
2397
-			$('#event_calendar').val(calEvent.res_id);
2396
+		if(calEvent.etag!='') {
2397
+      window.setTimeout(function () {
2398
+        $('#event_calendar').val(calEvent.res_id);
2399
+      }, 1)
2400
+    }
2398
 	}
2401
 	}
2399
 
2402
 
2400
 	if(repeatOne=='editOnly' || $('#recurrenceID').val()!='')
2403
 	if(repeatOne=='editOnly' || $('#recurrenceID').val()!='')