Hi Malaka, It seems the message(Popup body content) we are passing to the CARBON.showPopupDialog() function is html encoded inside the function[1]. So the html content we are passing is considered as text and shown as text content inside the popup window body. So IMO we need to set the html content directly to the popup dialog body without encoding it as text.
[1]. https://github.com/wso2/carbon-kernel/blob/4.4.x/core/org.wso2.carbon.ui/src/main/resources/web/dialog/js/dialog.js#L231 Thanks, Heshitha. On Wed, Jan 17, 2018 at 10:14 AM, Malaka Gangananda <[email protected]> wrote: > Select Error Codes section does not work properly when configuring advance > properties of end points. > When Select Error Codes section is selected while trying to configure > suspend or timeout error codes in Address Endpoints it just pop up a html > code rather than showing the actual error codes as shown in below. > > > > > > > > > Reason behind this is in endpoint-utils.js code it uses > the CARBON.showPopupDialog method, and it passes the html code which needs > to create the pop up menu into this method. > But in showPopupDialog method it uses the htmlEncode method and convert > the html content into text and put within a newly created html section. > So the popup menu shown as text as mentioned above. > CARBON.showPopupDialog method has been used to edit inline throttle > policy as well and that section also shows this error. > So how to proceed with this ? > > Thanks, > -- > Malaka. > -- > Malaka Gangananda - Software Engineer | WSO2 > Email : [email protected] > Mobile : +94713564340 <+94%2071%20356%204340> > Web : http://wso2.com > <http://wso2.com/signature> > -- Heshitha Hettihewa *Software Engineer* Mobile : +94716866386 <%2B94%20%280%29%20773%20451194> [email protected]
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
