Hi, I am trying to add "File Upload"[1] in a hbs template which load by UUF client when click on menu tabs. The problem is it's not loading when the file upload code is in the hbs which is loading UUF client. I have to write the click function in callback[2] to achieve this. Is there any better way to do this ?
[1] http://wso2-dev-ux.github.io/theme-wso2/demo/advanced-form-elements/ [2] var callbacks = { onSuccess: function (data) { api_client.getDocuments(api_id,getDocsCallback); $(".browse").on("click", function(){ var elem = $("#swagger-file"); if(elem && document.createEvent) { elem.click(); } }) }, onFailure: function (data) { } }; Thanks, Iqbal -- Irham Iqbal Software Engineer WSO2 phone: +94 777888452 <http://wso2.com/signature>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
