flymis/WebRoot/dojojs/src/widget/TreeRpcControllerV3.js
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.widget.TreeRpcControllerV3");
dojo.require("dojo.event.*");
dojo.require("dojo.json")
dojo.require("dojo.io.*");
dojo.require("dojo.widget.TreeLoadingControllerV3");
dojo.widget.defineWidget(
"dojo.widget.TreeRpcControllerV3",
dojo.widget.TreeLoadingControllerV3,
{
// TODO: do something with addChild / setChild, so that RpcController become able
// to hook on this and report to server
extraRpcOnEdit: false,
/**
* Make request to server about moving children.
*
* Request returns "true" if move succeeded,
* object with error field if failed
*
* I can't leave DragObject floating until async request returns, need to return false/true
* so making it sync way...
*
* Also, "loading" icon is not shown until function finishes execution, so no indication for remote request.
*/
doMove: function(child, newParent, index, sync){
//if (newParent.isTreeNode) newParent.markLoading();
var params = {
// where from
child: this.getInfo(child),
childTree: this.getInfo(child.tree),
// where to
newParent: this.getInfo(newParent),
newParentTree: this.getInfo(newParent.tree),
newIndex: index
};
var deferred = this.runRpc({
url: this.getRpcUrl('move'),
sync: sync,
params: params
});
后面还有 364 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。