update
This commit is contained in:
parent
bea66d3a88
commit
b4a638411d
1 changed files with 2 additions and 17 deletions
|
|
@ -145,6 +145,7 @@ $colspan = 11;
|
|||
$me_name = str_replace($search, $replace, $row['me_name']);
|
||||
?>
|
||||
<article class="<?php echo $bg; ?> menu_list menu_group_<?php echo substr($row['me_code'], 0, 2); ?>"
|
||||
data-code="<?php echo substr($row['me_code'], 0, 2); ?>"
|
||||
data-name="<?php echo $me_name; ?>">
|
||||
<div class="menu_reqset">
|
||||
<div class="al_menu" style="width: 50px">
|
||||
|
|
@ -250,23 +251,7 @@ $colspan = 11;
|
|||
if (!confirm("메뉴를 삭제하시겠습니까?"))
|
||||
return false;
|
||||
|
||||
var $tr = $(this).closest("tr");
|
||||
if ($tr.find("td.sub_menu_class").size() > 0) {
|
||||
$tr.remove();
|
||||
} else {
|
||||
var code = $(this).closest("tr").find("input[name='code[]']").val().substr(0, 2);
|
||||
$("tr.menu_group_" + code).remove();
|
||||
}
|
||||
|
||||
if ($("#menulist tr.menu_list").size() < 1) {
|
||||
var list = "<tr id=\"empty_menu_list\"><td colspan=\"<?php echo $colspan; ?>\" class=\"empty_table\">자료가 없습니다.</td></tr>\n";
|
||||
$("#menulist table tbody").append(list);
|
||||
} else {
|
||||
$("#menulist tr.menu_list").each(function (index) {
|
||||
$(this).removeClass("bg0 bg1")
|
||||
.addClass("bg" + (index % 2));
|
||||
});
|
||||
}
|
||||
$(this).parent().parent().remove();
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue