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")
|
||||
.click(
|
||||
function() {
|
||||
|
|
@ -49,6 +55,10 @@ function loadHTML() {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
$("#tocraft")
|
||||
.append(
|
||||
|
|
@ -73,11 +83,6 @@ function loadHTML() {
|
|||
});
|
||||
$("#" + 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) {
|
||||
|
|
@ -134,6 +139,10 @@ $(document)
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
$("#tocraft")
|
||||
.append(
|
||||
|
|
|
|||
Loading…
Reference in New Issue