browserHelper.js
756 Bytes
define(["mUtil"],function(e){return{openBrowserLink:function(e,a,i){if(e){var t,s="/spa/workflow/static4mobileform/index.html#/req?requestid=",r="/spa/document/static4mobile/index.html#/doc/",l=!1;switch(i){case"7":t="/spa/crm/static4mobile/index.html#/customerCard/";break;case"8":t="/spa/prj/static4mobile/index.html#/ProjectDetails/0/";break;case"16":t=s;break;case"9":t=r;break;case"37":l=!0,t=r;break;case"171":case"152":l=!0,t=s;break;default:return}if(l){e=e.split(","),a=a.split(",");for(var o=[],c=0;c<e.length;c++){var n={},b=e[c];b&&(n.menuValue=b,n.text="<div class='wev-ellipsis'>"+a[c]+"</div>",n.callback=function(){Mobile_NS.openWebView(t+$(this).attr("data-value"))},o.push(n))}Mobile_NS.footerMenu(o)}else Mobile_NS.openWebView(t+e)}}}});