Manage attachments
Class members
Method Summary |
|||||||
constructor |
constructor( id,openViewer_Click,upload_click ) Initialize the class |
||||||
add |
add( fid,descr,fn ) Add Attachment to the list
|
||||||
del |
del(fid) delete attachment form list |
||||||
upload |
upload(url,cb) Upload file |
||||||
viewList |
viewList() Display View List |
||||||
attachmentPathForbidden |
Display folders, which allowed |
||||||
getButtons |
getButtosn() return HTML Script for display Buttons |
||||||
run |
run() activate all needed events for VlewList |
this.attachmentsViewer = new attachments('iHAttachments',this.attachments_view,null);
this.attachmentsViewer.add('Id','Info','FileName');
this.appData.attachements = [];
html_itemInfo += this.attachmentsViewer.getButtons();
this.attachmentsViewer.run();