Skip to content

Commit a64b405

Browse files
up JC.FChart
1 parent 7819e8e commit a64b405

File tree

13 files changed

+37
-23
lines changed

13 files changed

+37
-23
lines changed

comps/AjaxTree/AjaxTree.js

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -788,24 +788,31 @@
788788
_p.nodeImgClick( _nodeId );
789789
_callback && _callback();
790790
} else {/* 通过ajxa获取数据 */
791-
_nodeImg.removeClass('folder_img_closed').addClass('folder_img_loading');
791+
_nodeImg.removeClass('folder_img_closed');
792+
_p.showDataLoading( _node );
792793
_nodeUl.data( 'inited', true );
793794

794795
if( !_model.data().url ){
796+
_p.hideDataLoading( _node );
795797
return;
796798
}
799+
797800
_p._model.ajaxData( _nodeId, function( _data ){
798801
_pntLi.addClass('folder_open').removeClass('folder_closed');
799-
_nodeImg.removeClass('folder_img_loading').addClass('folder_img_open');
802+
_p.hideDataLoading( _node );
800803
_p._process( _data.data, _nodeUl.show() );
801804
_callback && _callback();
802805
});
803806
}
804807
}
805-
, showDataLoading:
806-
function( _node ){
807-
_node.siblings('span').removeClass('folder_img_closed').addClass('folder_img_loading');
808-
}
808+
809+
, showDataLoading: function( _node ){
810+
_node.siblings('span').removeClass('folder_img_closed').addClass('folder_img_loading');
811+
}
812+
813+
, hideDataLoading: function( _node ){
814+
_node.siblings('span').removeClass('folder_img_loading').addClass('folder_img_open');
815+
}
809816
});
810817
/**
811818
* 树节点的点击事件

comps/FChart/swf/CurveGram.swf

196 Bytes
Binary file not shown.

comps/FChart/swf/Histogram.swf

189 Bytes
Binary file not shown.

comps/FChart/swf/VHistogram.swf

7.39 KB
Binary file not shown.

comps/FChart/swf/ZHistogram.swf

-5.76 KB
Binary file not shown.

deploy/comps/AjaxTree/AjaxTree.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deploy/comps/FChart/swf/CurveGram.swf

196 Bytes
Binary file not shown.

deploy/comps/FChart/swf/Histogram.swf

189 Bytes
Binary file not shown.
7.39 KB
Binary file not shown.
-5.76 KB
Binary file not shown.

docs_api/classes/JC.AjaxTree.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ <h3 class="name"><code>lastHover</code></h3>
972972
<div class="meta">
973973
<p>
974974
Defined in
975-
<a href="../files/.._comps_AjaxTree_AjaxTree.js.html#l851"><code>..&#x2F;comps&#x2F;AjaxTree&#x2F;AjaxTree.js:851</code></a>
975+
<a href="../files/.._comps_AjaxTree_AjaxTree.js.html#l858"><code>..&#x2F;comps&#x2F;AjaxTree&#x2F;AjaxTree.js:858</code></a>
976976
</p>
977977
</div>
978978
<div class="description">
@@ -990,7 +990,7 @@ <h3 class="name"><code>change</code></h3>
990990
<div class="meta">
991991
<p>
992992
Defined in
993-
<a href="../files/.._comps_AjaxTree_AjaxTree.js.html#l819"><code>..&#x2F;comps&#x2F;AjaxTree&#x2F;AjaxTree.js:819</code></a>
993+
<a href="../files/.._comps_AjaxTree_AjaxTree.js.html#l826"><code>..&#x2F;comps&#x2F;AjaxTree&#x2F;AjaxTree.js:826</code></a>
994994
</p>
995995
</div>
996996
<div class="description">
@@ -1022,7 +1022,7 @@ <h3 class="name"><code>click</code></h3>
10221022
<div class="meta">
10231023
<p>
10241024
Defined in
1025-
<a href="../files/.._comps_AjaxTree_AjaxTree.js.html#l810"><code>..&#x2F;comps&#x2F;AjaxTree&#x2F;AjaxTree.js:810</code></a>
1025+
<a href="../files/.._comps_AjaxTree_AjaxTree.js.html#l817"><code>..&#x2F;comps&#x2F;AjaxTree&#x2F;AjaxTree.js:817</code></a>
10261026
</p>
10271027
</div>
10281028
<div class="description">
@@ -1054,7 +1054,7 @@ <h3 class="name"><code>FolderClick</code></h3>
10541054
<div class="meta">
10551055
<p>
10561056
Defined in
1057-
<a href="../files/.._comps_AjaxTree_AjaxTree.js.html#l841"><code>..&#x2F;comps&#x2F;AjaxTree&#x2F;AjaxTree.js:841</code></a>
1057+
<a href="../files/.._comps_AjaxTree_AjaxTree.js.html#l848"><code>..&#x2F;comps&#x2F;AjaxTree&#x2F;AjaxTree.js:848</code></a>
10581058
</p>
10591059
</div>
10601060
<div class="description">
@@ -1087,7 +1087,7 @@ <h3 class="name"><code>RenderLabel</code></h3>
10871087
<div class="meta">
10881088
<p>
10891089
Defined in
1090-
<a href="../files/.._comps_AjaxTree_AjaxTree.js.html#l829"><code>..&#x2F;comps&#x2F;AjaxTree&#x2F;AjaxTree.js:829</code></a>
1090+
<a href="../files/.._comps_AjaxTree_AjaxTree.js.html#l836"><code>..&#x2F;comps&#x2F;AjaxTree&#x2F;AjaxTree.js:836</code></a>
10911091
</p>
10921092
</div>
10931093
<div class="description">

docs_api/data.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4559,7 +4559,7 @@
45594559
},
45604560
{
45614561
"file": "../comps/AjaxTree/AjaxTree.js",
4562-
"line": 810,
4562+
"line": 817,
45634563
"description": "树节点的点击事件",
45644564
"itemtype": "event",
45654565
"name": "click",
@@ -4578,7 +4578,7 @@
45784578
},
45794579
{
45804580
"file": "../comps/AjaxTree/AjaxTree.js",
4581-
"line": 819,
4581+
"line": 826,
45824582
"description": "树节点的change事件",
45834583
"itemtype": "event",
45844584
"name": "change",
@@ -4597,7 +4597,7 @@
45974597
},
45984598
{
45994599
"file": "../comps/AjaxTree/AjaxTree.js",
4600-
"line": 829,
4600+
"line": 836,
46014601
"description": "树节点的展现事件",
46024602
"itemtype": "event",
46034603
"name": "RenderLabel",
@@ -4621,7 +4621,7 @@
46214621
},
46224622
{
46234623
"file": "../comps/AjaxTree/AjaxTree.js",
4624-
"line": 841,
4624+
"line": 848,
46254625
"description": "树文件夹的点击事件",
46264626
"itemtype": "event",
46274627
"name": "FolderClick",
@@ -4640,7 +4640,7 @@
46404640
},
46414641
{
46424642
"file": "../comps/AjaxTree/AjaxTree.js",
4643-
"line": 851,
4643+
"line": 858,
46444644
"description": "树的最后的 hover 节点\n<br />树的 hover 是全局属性, 页面上的所有树只会有一个当前 hover",
46454645
"itemtype": "property",
46464646
"name": "lastHover",

docs_api/files/.._comps_AjaxTree_AjaxTree.js.html

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,24 +1040,31 @@ <h1 class="file-heading">File: ../comps/AjaxTree/AjaxTree.js</h1>
10401040
_p.nodeImgClick( _nodeId );
10411041
_callback &amp;&amp; _callback();
10421042
} else {/* 通过ajxa获取数据 */
1043-
_nodeImg.removeClass(&#x27;folder_img_closed&#x27;).addClass(&#x27;folder_img_loading&#x27;);
1043+
_nodeImg.removeClass(&#x27;folder_img_closed&#x27;);
1044+
_p.showDataLoading( _node );
10441045
_nodeUl.data( &#x27;inited&#x27;, true );
10451046

10461047
if( !_model.data().url ){
1048+
_p.hideDataLoading( _node );
10471049
return;
10481050
}
1051+
10491052
_p._model.ajaxData( _nodeId, function( _data ){
10501053
_pntLi.addClass(&#x27;folder_open&#x27;).removeClass(&#x27;folder_closed&#x27;);
1051-
_nodeImg.removeClass(&#x27;folder_img_loading&#x27;).addClass(&#x27;folder_img_open&#x27;);
1054+
_p.hideDataLoading( _node );
10521055
_p._process( _data.data, _nodeUl.show() );
10531056
_callback &amp;&amp; _callback();
10541057
});
10551058
}
10561059
}
1057-
, showDataLoading:
1058-
function( _node ){
1059-
_node.siblings(&#x27;span&#x27;).removeClass(&#x27;folder_img_closed&#x27;).addClass(&#x27;folder_img_loading&#x27;);
1060-
}
1060+
1061+
, showDataLoading: function( _node ){
1062+
_node.siblings(&#x27;span&#x27;).removeClass(&#x27;folder_img_closed&#x27;).addClass(&#x27;folder_img_loading&#x27;);
1063+
}
1064+
1065+
, hideDataLoading: function( _node ){
1066+
_node.siblings(&#x27;span&#x27;).removeClass(&#x27;folder_img_loading&#x27;).addClass(&#x27;folder_img_open&#x27;);
1067+
}
10611068
});
10621069
/**
10631070
* 树节点的点击事件

0 commit comments

Comments
 (0)