|
@@ -117,25 +117,25 @@ U.MD.O.W.Panel.IsSynergy.saveAsync = function (r) {
|
|
|
*
|
|
|
* @param fileinfo {object} 文件信息
|
|
|
*/
|
|
|
-U.MD.O.W.Panel.LoadPlayUser = function (fileinfo) {
|
|
|
- var _coopwindow, _frienddiv, _example, _wordsize, _marginleft, _shareLink, _cBox;
|
|
|
- //如果不存在团队成员窗口,则创建一个团队成员窗口。
|
|
|
- if (!$("#U_MD_O_H_body_left_invite_user")[0]) {
|
|
|
- _wordsize = U.UF.EL.getElementInfo($("#U_MD_O_W_E_body")[0]); //获取编辑器域的父亲。用于获取长度大小,用于定位
|
|
|
- _marginleft = _wordsize["OW"] + 50; //团队窗口的位置间距编辑器50像素
|
|
|
- //创建邀请协助人员窗口
|
|
|
- _coopwindow = $("#U_MD_O_H_body_left")[0];
|
|
|
- _cBox = $$("div", {});
|
|
|
- _shareLink = $$("div", { className: 'U_MD_O_H_body_left_invite_linkTxt', "onclick": function () { U.MD.O.W.Panel.IsSynergy(U.MD.O.W.Panel.shareLink); }, "innerText": "第三方链接邀请" }, _cBox);
|
|
|
- _frienddiv = $$("div", { "className": "U_MD_O_H_body_left_invite_user", "id": "U_MD_O_H_body_left_invite_user" }, _cBox); //好友内容区域
|
|
|
- _example = $$("div", { "className": "U_MD_O_H_body_left_invite_user_a", "onclick": function () { U.MD.O.W.Panel.displayInsertUser(); } }, _frienddiv); //默认邀请按钮
|
|
|
- $$("div", { "className": "U_MD_O_H_body_left_invite_user_a_img" }, _example);
|
|
|
- $$("div", { "className": "U_MD_O_H_body_left_invite_user_a_div", "innerHTML": "邀请" }, _example);
|
|
|
- new U.UF.UI.form("邀请协作人员", _cBox, { style: { border: "none", position: "absolute", width: "300px", "min-width": "200px", height: "250px", top: "140px", left: "auto", "box-shadow": "none"} },
|
|
|
- { isenlarge: false, isnarrow: false }, { style: { margin: "0px 5px", "border-bottom": "1px solid #d6def0", color: "#000", background: "#fff"} }, null, null, _coopwindow);
|
|
|
- }
|
|
|
- U.MD.O.W.Panel.disPlayUser(fileinfo); //获取协作人员
|
|
|
-}
|
|
|
+// U.MD.O.W.Panel.LoadPlayUser = function (fileinfo) {
|
|
|
+// var _coopwindow, _frienddiv, _example, _wordsize, _marginleft, _shareLink, _cBox;
|
|
|
+// //如果不存在团队成员窗口,则创建一个团队成员窗口。
|
|
|
+// if (!$("#U_MD_O_H_body_left_invite_user")[0]) {
|
|
|
+// _wordsize = U.UF.EL.getElementInfo($("#U_MD_O_W_E_body")[0]); //获取编辑器域的父亲。用于获取长度大小,用于定位
|
|
|
+// _marginleft = _wordsize["OW"] + 50; //团队窗口的位置间距编辑器50像素
|
|
|
+// //创建邀请协助人员窗口
|
|
|
+// _coopwindow = $("#U_MD_O_H_body_left")[0];
|
|
|
+// _cBox = $$("div", {});
|
|
|
+// _shareLink = $$("div", { className: 'U_MD_O_H_body_left_invite_linkTxt', "onclick": function () { U.MD.O.W.Panel.IsSynergy(U.MD.O.W.Panel.shareLink); }, "innerText": "第三方链接邀请" }, _cBox);
|
|
|
+// _frienddiv = $$("div", { "className": "U_MD_O_H_body_left_invite_user", "id": "U_MD_O_H_body_left_invite_user" }, _cBox); //好友内容区域
|
|
|
+// _example = $$("div", { "className": "U_MD_O_H_body_left_invite_user_a", "onclick": function () { U.MD.O.W.Panel.displayInsertUser(); } }, _frienddiv); //默认邀请按钮
|
|
|
+// $$("div", { "className": "U_MD_O_H_body_left_invite_user_a_img" }, _example);
|
|
|
+// $$("div", { "className": "U_MD_O_H_body_left_invite_user_a_div", "innerHTML": "邀请" }, _example);
|
|
|
+// new U.UF.UI.form("邀请协作人员", _cBox, { style: { border: "none", position: "absolute", width: "300px", "min-width": "200px", height: "250px", top: "140px", left: "auto", "box-shadow": "none"} },
|
|
|
+// { isenlarge: false, isnarrow: false }, { style: { margin: "0px 5px", "border-bottom": "1px solid #d6def0", color: "#000", background: "#fff"} }, null, null, _coopwindow);
|
|
|
+// }
|
|
|
+// U.MD.O.W.Panel.disPlayUser(fileinfo); //获取协作人员
|
|
|
+// }
|
|
|
|
|
|
/**
|
|
|
* 初始化查看团队成员
|
|
@@ -332,21 +332,21 @@ U.MD.O.W.Panel.shareLinkTemplate = function (fileinfo) {
|
|
|
*
|
|
|
* @param {element} 换页元素
|
|
|
*/
|
|
|
-U.MD.O.W.Panel.LoadHotTemplates = function (fileinfo) {
|
|
|
- var _UDTD, _el, _USM, _UW;
|
|
|
- if (!$("#U_MD_O_H_body_left_template_hot")[0]) {
|
|
|
- _UDTD = $("#U_MD_O_H_body_left")[0];
|
|
|
- _USM = U.UF.EL.getElementInfo($("#U_MD_O_W_E_body")[0]);
|
|
|
- _UW = _USM["OW"] + 50;
|
|
|
- //热门模板提供
|
|
|
- _el = $$("div", { "className": "U_MD_O_H_body_left_template_user", id: "U_MD_O_H_body_left_template_hot" });
|
|
|
-
|
|
|
- //new U.UF.UI.form("<div class='U_MD_F_S_TI'>热门模板提供</div>", _UDTD, { "className": "U_MD_F_S", "style": { "border": "1px #d6dff0 solid", "width": "300px", "height": "270px", "position": "absolute", "top": "840px", "left": _UW + "px"} }, { isdrag: false, isenlarge: false, isnarrow: false });
|
|
|
- new U.UF.UI.form("热门模板提供", _el, { style: { border: "none", width: "300px", height: "477px", position: "absolute", top: "695px", left: "auto", "box-shadow": "none"} }, { isenlarge: false, isnarrow: false }, { style: { margin: "0px 5px", "border-bottom": "1px solid #d6def0", color: "#000", background: "#fff"} }, null, null, _UDTD);
|
|
|
- }
|
|
|
- U.MD.O.W.Panel.GetHotTemplates("00000000-0000-0000-0000-000000000000", 1, 10); //热门模板
|
|
|
-
|
|
|
-}
|
|
|
+// U.MD.O.W.Panel.LoadHotTemplates = function (fileinfo) {
|
|
|
+// var _UDTD, _el, _USM, _UW;
|
|
|
+// if (!$("#U_MD_O_H_body_left_template_hot")[0]) {
|
|
|
+// _UDTD = $("#U_MD_O_H_body_left")[0];
|
|
|
+// _USM = U.UF.EL.getElementInfo($("#U_MD_O_W_E_body")[0]);
|
|
|
+// _UW = _USM["OW"] + 50;
|
|
|
+// //热门模板提供
|
|
|
+// _el = $$("div", { "className": "U_MD_O_H_body_left_template_user", id: "U_MD_O_H_body_left_template_hot" });
|
|
|
+
|
|
|
+// //new U.UF.UI.form("<div class='U_MD_F_S_TI'>热门模板提供</div>", _UDTD, { "className": "U_MD_F_S", "style": { "border": "1px #d6dff0 solid", "width": "300px", "height": "270px", "position": "absolute", "top": "840px", "left": _UW + "px"} }, { isdrag: false, isenlarge: false, isnarrow: false });
|
|
|
+// new U.UF.UI.form("热门模板提供", _el, { style: { border: "none", width: "300px", height: "477px", position: "absolute", top: "695px", left: "auto", "box-shadow": "none"} }, { isenlarge: false, isnarrow: false }, { style: { margin: "0px 5px", "border-bottom": "1px solid #d6def0", color: "#000", background: "#fff"} }, null, null, _UDTD);
|
|
|
+// }
|
|
|
+// U.MD.O.W.Panel.GetHotTemplates("00000000-0000-0000-0000-000000000000", 1, 10); //热门模板
|
|
|
+
|
|
|
+// }
|
|
|
|
|
|
/**
|
|
|
* 初始化加载模板
|
|
@@ -442,29 +442,29 @@ U.MD.O.W.Panel.loadlink = function (wordinfo) {
|
|
|
default: _type = 'word'; break;
|
|
|
}
|
|
|
if (!_date.length) {
|
|
|
- _linkdiv = $$("div", { "className": "U_MD_O_H_body_left_href_pay_a", id: "U_MD_O_H_body_left_href_pay_a", "innerHTML": "将此站点生成链接", "onclick": function () { //生成链接
|
|
|
- var _wordinfo = U.MD.O.W.fileinfo;
|
|
|
- if (_wordinfo.UserDirectoryID && _wordinfo.UserId && _wordinfo.UserallDirectoryName) {
|
|
|
- top.U.MD.DS.autoCreateDomain(_wordinfo, _type, function (dnsinfo) {
|
|
|
- var _hrefEl = $("#U_MD_O_H_body_left_href_pay_a")[0]
|
|
|
- _hrefEl.parentNode.removeChild(_hrefEl);
|
|
|
- U.MD.O.W.Panel.loadlink(wordinfo);
|
|
|
- });
|
|
|
- // $$('div', { innerText: '自动生成', style: { cssText: "display:inline-block; width: 100px; padding:10px 0; background-color: #444; color: #fff;cursor: pointer" }, onclick: function () {
|
|
|
- // top.U.MD.DS.autoCreateDomain(_wordinfo, _type);
|
|
|
- // }
|
|
|
- // }, _box)
|
|
|
- // $$('div', { innerText: '自定义', style: { cssText: "display:inline-block; width: 100px; padding:10px 0; background-color: #444; color: #fff; margin-left: 14px;cursor: pointer" }, onclick: function () {
|
|
|
- // if (_wordinfo.UserDirectoryID && _wordinfo.UserId && _wordinfo.UserallDirectoryName) {
|
|
|
- // top.U.MD.DS.dnsInit(_wordinfo, _type)
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }, _box);
|
|
|
- } else {
|
|
|
- $('#U_MD_O_H_save')[0].onclick();
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
+ // _linkdiv = $$("div", { "className": "U_MD_O_H_body_left_href_pay_a", id: "U_MD_O_H_body_left_href_pay_a", "innerHTML": "将此站点生成链接", "onclick": function () { //生成链接
|
|
|
+ // var _wordinfo = U.MD.O.W.fileinfo;
|
|
|
+ // if (_wordinfo.UserDirectoryID && _wordinfo.UserId && _wordinfo.UserallDirectoryName) {
|
|
|
+ // top.U.MD.DS.autoCreateDomain(_wordinfo, _type, function (dnsinfo) {
|
|
|
+ // var _hrefEl = $("#U_MD_O_H_body_left_href_pay_a")[0]
|
|
|
+ // _hrefEl.parentNode.removeChild(_hrefEl);
|
|
|
+ // U.MD.O.W.Panel.loadlink(wordinfo);
|
|
|
+ // });
|
|
|
+ // // $$('div', { innerText: '自动生成', style: { cssText: "display:inline-block; width: 100px; padding:10px 0; background-color: #444; color: #fff;cursor: pointer" }, onclick: function () {
|
|
|
+ // // top.U.MD.DS.autoCreateDomain(_wordinfo, _type);
|
|
|
+ // // }
|
|
|
+ // // }, _box)
|
|
|
+ // // $$('div', { innerText: '自定义', style: { cssText: "display:inline-block; width: 100px; padding:10px 0; background-color: #444; color: #fff; margin-left: 14px;cursor: pointer" }, onclick: function () {
|
|
|
+ // // if (_wordinfo.UserDirectoryID && _wordinfo.UserId && _wordinfo.UserallDirectoryName) {
|
|
|
+ // // top.U.MD.DS.dnsInit(_wordinfo, _type)
|
|
|
+ // // }
|
|
|
+ // // }
|
|
|
+ // // }, _box);
|
|
|
+ // } else {
|
|
|
+ // $('#U_MD_O_H_save')[0].onclick();
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // });
|
|
|
} else {
|
|
|
var _url = _date[0].AppId + ".1473.cn/" + _date[0].Domain;
|
|
|
_linkdiv = $$("div", { "className": "U_MD_O_H_body_left_href_pay_a", id: "U_MD_O_H_body_left_href_pay_a" });
|
|
@@ -553,23 +553,23 @@ U.MD.O.W.Panel.AsynCreatelink = function (r) {
|
|
|
*
|
|
|
* @param
|
|
|
*/
|
|
|
-U.MD.O.W.Panel.LoadOfficeHistory = function (fileinfo) {
|
|
|
- var _el, _UDTD, _USM, _UW;
|
|
|
- if (!$("#U_MD_O_H_body_left_invite_history")[0]) {
|
|
|
- _UDTD = $("#U_MD_O_H_body_left")[0];
|
|
|
- _USM = U.UF.EL.getElementInfo($("#U_MD_O_W_E_body")[0]);
|
|
|
- _UW = _USM["OW"] + 50;
|
|
|
- //编辑历史
|
|
|
- _el = $$("div", { "className": "U_MD_O_H_body_left_invite_user", "id": "U_MD_O_H_body_left_invite_history" });
|
|
|
- //new U.UF.UI.form("<div class='U_MD_F_S_TI'>编辑历史</div>", _UDTD, { "className": "U_MD_F_S", "style": { "width": "300px", "height": "250px", "position": "absolute", "top": "300px", "left": _UW + "px", "border-radius": "0px", "border": "1px #d6dff0 solid"} }, { isdrag: false, isenlarge: false, isnarrow: false });
|
|
|
- new U.UF.UI.form("编辑历史", _el, { style: { width: "300px", height: "284px", position: "absolute", top: "400px", left: "auto", "border-radius": "0px", border: "none", "box-shadow": "none", "border-radius": "5px"} }, { isenlarge: false, isnarrow: false }, { style: { margin: "0px 5px", "border-bottom": "1px solid #d6def0", color: "#000", background: "#fff"} }, null, null, _UDTD);
|
|
|
- }
|
|
|
- if (fileinfo) {
|
|
|
- U.MD.O.W.Panel.ViewEditHistory(fileinfo.UserDirectoryID, U.MD.O.W.historyid, 1, 100); //历史记录
|
|
|
- } else {
|
|
|
- $$("div", { "innerHTML": "暂无历史", "style": { "text-align": "center", "margin-top": "50px"} }, _el);
|
|
|
- }
|
|
|
-}
|
|
|
+// U.MD.O.W.Panel.LoadOfficeHistory = function (fileinfo) {
|
|
|
+// var _el, _UDTD, _USM, _UW;
|
|
|
+// if (!$("#U_MD_O_H_body_left_invite_history")[0]) {
|
|
|
+// _UDTD = $("#U_MD_O_H_body_left")[0];
|
|
|
+// _USM = U.UF.EL.getElementInfo($("#U_MD_O_W_E_body")[0]);
|
|
|
+// _UW = _USM["OW"] + 50;
|
|
|
+// //编辑历史
|
|
|
+// _el = $$("div", { "className": "U_MD_O_H_body_left_invite_user", "id": "U_MD_O_H_body_left_invite_history" });
|
|
|
+// //new U.UF.UI.form("<div class='U_MD_F_S_TI'>编辑历史</div>", _UDTD, { "className": "U_MD_F_S", "style": { "width": "300px", "height": "250px", "position": "absolute", "top": "300px", "left": _UW + "px", "border-radius": "0px", "border": "1px #d6dff0 solid"} }, { isdrag: false, isenlarge: false, isnarrow: false });
|
|
|
+// new U.UF.UI.form("编辑历史", _el, { style: { width: "300px", height: "284px", position: "absolute", top: "400px", left: "auto", "border-radius": "0px", border: "none", "box-shadow": "none", "border-radius": "5px"} }, { isenlarge: false, isnarrow: false }, { style: { margin: "0px 5px", "border-bottom": "1px solid #d6def0", color: "#000", background: "#fff"} }, null, null, _UDTD);
|
|
|
+// }
|
|
|
+// if (fileinfo) {
|
|
|
+// U.MD.O.W.Panel.ViewEditHistory(fileinfo.UserDirectoryID, U.MD.O.W.historyid, 1, 100); //历史记录
|
|
|
+// } else {
|
|
|
+// $$("div", { "innerHTML": "暂无历史", "style": { "text-align": "center", "margin-top": "50px"} }, _el);
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
/**
|
|
|
* 插入历史
|