$("#window").window is not a function
[在此错误处中断] href:"/index.php/Index/sourceAdd"
sourceManage (第 68 行) $('#window').window({
    width: 500,
    modal: true,
    shadow: true,
    closed: true,
    height: 300
  });
 
  $('#list').datagrid({
    url: '__URL__/getSourceList',
    title: '资源管理',
    fitColumns: true,
    pagination:true,
    columns:[[
    {checkbox:true,width:20},
    {field:'SourceId',title:'ID',width:20},
    {field:'SourceName',title:'资源类型名称',width:100},
    {field:'opt',title:'操作',width:100,formatter: function(value,rec) {
        return "<span style='color:red'><a href='#' onClick='edit("+rec.SourceTypeId+")'>Edit</a> <a href='#' onClick='confirmDelete("+rec.SourceTypeId+")'>Delete</a></span>";
      }}
    ]],
    toolbar:[{
      text:'增加',
      iconCls:'icon-add',
      handler: function() {
        $('#window').window({
          href:"__URL__/sourceAdd"
        });
        $("#window").window("open");
      }
 
    },'-',{
      text:'批量删除',
      iconCls:'icon-remove',
      handler: function() {
        batchDelete();
      }
 
    },'-',{
      text:'查询',
      iconCls:'icon-search',
      handler: function() {
        $("#window").window({
          href:"__URL__/sourceTypeSearch/"
        });
        $("#window").window("open");
      }
    }
    ]
  });