IconDialog.js 590 B

123456789101112131415161718192021222324
  1. function IconDialog(conf){
  2. if(!conf) conf={};
  3. var url=__ctx + "/platform/system/resources/dialog.ht";
  4. if(conf.params)
  5. url += "?" + conf.params;
  6. var dialogWidth=700;
  7. var dialogHeight=400;
  8. conf=$.extend({},{dialogWidth:dialogWidth ,dialogHeight:dialogHeight ,help:0,status:0,scroll:0,center:1},conf);
  9. url=url.getNewUrl();
  10. DialogUtil.open({
  11. height:conf.dialogHeight,
  12. width: conf.dialogWidth,
  13. title : '选择图标',
  14. url: url,
  15. isResize: true,
  16. //自定义参数
  17. sucCall:function(rtn){
  18. if(conf.callback){
  19. conf.callback.call(this,rtn.srcValue);
  20. }
  21. }
  22. });
  23. };