Eric's Blog

有需求才有进步

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
背景:
       接上篇。

分析:
       1,传入三个参数: listId, 修改全部/修改选中,选中的itemId。
       2,修改之前先checkout, 然后记录修改的信息。

实现:

1, 用javascript弹出一个modalDialog窗口:

function GotoEditAuthor(Mode,ListId)
{
    
var DocumentIds = GetSelectedItems("DocumentID"",");
    
var handle = window.showModalDialog('/_layouts/EditAuthorFolder/EditAuthor.aspx?Mode=' + Mode + '&listItems=' + DocumentIds + '&listID=' + ListId, window,'status:off;center=yes;edge:raised;dialogHeight:400px;dialogWidth:450px;help:0;resizable:0;scrollbar=0');
    
if (handle != null && handle != '' && typeof handle != 'undefined'
    
{
        window.location.href
=window.location.href;
    }
    
}

2,  修改的代码:
Code

3,  关闭窗口
Code

效果:

posted on 2008-02-01 14:19  Eric.Chai  阅读(176)  评论(0编辑  收藏  举报