Changeset 800 for cprs/branches/tmg-cprs/CPRS-Chart/fNotes.pas
- Timestamp:
- Jun 14, 2010, 12:37:31 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/tmg-cprs/CPRS-Chart/fNotes.pas
r793 r800 4643 4643 i, AddResult: integer; 4644 4644 oneImage: string; 4645 ImageFName : string; 4645 4646 begin 4646 4647 inherited; 4648 UploadForm.AllowNonImages := false; //only allow selection of IMAGES 4647 4649 AddResult := UploadForm.ShowModal; 4650 UploadForm.AllowNonImages := true; // restore to allow any file 4648 4651 if IsAbortResult(AddResult) then exit; 4649 4652 for i := 0 to UploadForm.UploadedImages.Count-1 do begin 4650 oneImage := '<img src="'+CPRSDir+'\Cache\' + UploadForm.UploadedImages.Strings[i] + '" ' +4651 4653 ImageFName := CPRSDir+'\Cache\' + UploadForm.UploadedImages.Strings[i]; 4654 oneImage := '<img src="'+ ImageFName + '" ' + ALT_IMG_TAG_CONVERT + ' >'; 4652 4655 HTMLEditor.InsertHTMLAtCaret(oneImage+#13#10); 4653 4656 end;
Note:
See TracChangeset
for help on using the changeset viewer.