Authored by FengRuwei

remove 增删按钮

... ... @@ -22,14 +22,6 @@
<div class="widget-title">
<h5>Tree Title</h5>
</div>
<ul class="ui-widget ui-helper-clearfix" id="icons" style="float: left;margin-left: 165px;">
<li title=".ui-icon-plusthick" class="ui-state-default ui-corner-all" onclick="deletebtn()"><span
class="ui-icon ui-icon-plusthick"></span></li>
</ul>
<ul class="ui-widget ui-helper-clearfix" id="icons" style="margin-right: 12px;">
<li title=".ui-icon-minusthick" class="ui-state-default ui-corner-all" onclick="editbtn()"><span
class="ui-icon ui-icon-minusthick"></span></li>
</ul>
<div id="jstree" class="jstree jstree-default jstree-default-small" role="tree" aria-multiselectable="true"
tabindex="0" style="height: 400px"></div>
</div>
... ... @@ -105,18 +97,6 @@
});
var dom = document.getElementById("icons");
var str = dom.getAttribute("style");
str = str.replace(/height\b\s*\:\s*\d+\px;?/ig, "");
dom.setAttribute("style", str);
function deletebtn() {
alert(1);
}
function editbtn() {
alert(2);
}
</script>
<script>
... ... @@ -215,11 +195,11 @@
$(function () {
$.get("type/all", function (data, state) {
// console.log(state)
console.log(data);
console.log(state)
// console.log(data);
var jsonData = JSON.parse(data);
treeData = []; //重置
$.each(jsonData, function (n, val) {
$.each(jsonData.data, function (n, val) {
var treeNode = {};
treeNode.id = "" + val.typeId;
treeNode.parent = "" + (val.typeParentId == 0 ? "#" : val.typeParentId);
... ...