-
Notifications
You must be signed in to change notification settings - Fork 1
/
admin_category.php
35 lines (30 loc) · 1021 Bytes
/
admin_category.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php do_admin_action(); ?>
<div id='cat_list_div'>
<?php echo make_category_edit_list(); ?>
</div>
<script type="text/javascript">
function category_edit(node)
{
var cat_list_cat_op_td_node = node.parentNode;
if (cat_list_cat_op_td_node)
{
var cat_list_cat_edit_td = cat_list_cat_op_td_node.previousSibling;
if (cat_list_cat_edit_td)
{
var category_name_input_node = cat_list_cat_edit_td.firstChild;
if (category_name_input_node)
{
if (category_name_input_node.style.display == "none")
{
category_name_input_node.style.display = "block";
}
else if (category_name_input_node.style.display == "block")
{
category_name_input_node.style.display = "none";
}
}
}
}
return;
}
</script>