bug fix not click on add
This commit is contained in:
parent
3c5f2279a9
commit
839c13ed88
19
js/main.js
19
js/main.js
|
|
@ -37,6 +37,12 @@ function loadHTML() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$("#menu li ul").each(function() {
|
||||||
|
$(this).html($(this).children('li').sort(function(a, b) {
|
||||||
|
return ($(b).data('position')) < ($(a).data('position')) ? 1 : -1;
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
|
||||||
$(".additem")
|
$(".additem")
|
||||||
.click(
|
.click(
|
||||||
function() {
|
function() {
|
||||||
|
|
@ -49,6 +55,10 @@ function loadHTML() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
$("#tocraft")
|
$("#tocraft")
|
||||||
.append(
|
.append(
|
||||||
|
|
@ -73,11 +83,6 @@ function loadHTML() {
|
||||||
});
|
});
|
||||||
$("#" + tagid).val(1)
|
$("#" + tagid).val(1)
|
||||||
})
|
})
|
||||||
$("#menu li ul").each(function(){
|
|
||||||
$(this).html($(this).children('li').sort(function(a, b){
|
|
||||||
return ($(b).data('position')) < ($(a).data('position')) ? 1 : -1;
|
|
||||||
}));
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadJSON(itemname) {
|
function loadJSON(itemname) {
|
||||||
|
|
@ -134,6 +139,10 @@ $(document)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
$("#tocraft")
|
$("#tocraft")
|
||||||
.append(
|
.append(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue