Song.Site/Manage/Content/Scripts/Columns.js

(开头部分) 8KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

//document.onselectstart = document.ondrag = function(){
//    return false;
//}
//分类的根节点
var rootid=$().getPara("pcid");
rootid=parseInt(rootid)<0 ? 0 : parseInt(rootid);
//
$(
	function()
	{
		initloyout();
		//控制编辑面板,默认为编辑根节点
		setEditPanel("root");
		//载入树形菜单的数据
		$().SoapAjax("Columns","Order",{result:""},funcc,loading,unloading);		
	}
);
//页面初始化布局
function initloyout()
{
	$("input[type='text']").addClass("TextBox");
	$("textarea").addClass("TextBox");
	//页面可控布局
	var cont=$(".pageWinContext");
	//左侧菜单树区域
	var left=$("#MenuTreePanel");
	var h=document.documentElement.clientHeight;
	left.height(h-120);
	//右侧编辑区域
	var right=$("#Panel");
	var h=document.documentElement.clientHeight;
	right.height(h-153);
	
	//右侧编辑区事件
	$("#EditPanelTitle div").click(function(){
		var type=$(this).attr("type");				
		setEditPanel(type);
	});
	//保存按钮修改子节点信息
	$("input[name$='btnSave']").click(function(){
		if($.trim($("#name").val())!="")
		{
			xml = encodeURIComponent(updateNode());	
			$().SoapAjax("Columns","Update ",{result:xml},funcc,loading,unloading);
		}			
		return false;
	});
	//新增按钮
	$("input[name$='btnAdd']").click(function()	{		
		if($.trim($("#addname").val())!="")
		{
			var xml = encodeURIComponent(addNode());
			$().SoapAjax("Columns","Add",{result:xml},funcc,loading,unloading);
		}
		return false;
	});	
}
//数据载入完成后的事件
//data:完整数据源,webservice输出
function funcc(data)
后面还有 192 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。