背景:
接上篇。
分析:
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
效果:
![]()
接上篇。
分析:
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, 修改的代码:
3, 关闭窗口:
效果:



浙公网安备 33010602011771号