fileTree.js 577 B

12345678910111213141516171819202122232425262728
  1. /**
  2. ** 打开文件夹选择器
  3. @param id 选择文件夹后回填的控件id
  4. */
  5. function openFolder(id){
  6. $.dialog({
  7. content: 'url:generateController.do?goFileTree',
  8. lock : true,
  9. width:500,
  10. zIndex:2100,
  11. parent:frameElement.api,
  12. height:300,
  13. title:'文件夹选择',
  14. opacity : 0.3,
  15. cache:false,
  16. ok: function(){
  17. iframe = this.iframe.contentWindow;
  18. iframe.fillPath(id);
  19. return true;
  20. },
  21. cancelVal: '关闭',
  22. cancel: true /*为true等价于function(){}*/
  23. });
  24. }
  25. function selectCallback(id,path){
  26. $("#"+id).val(path);
  27. }