<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Control Panel - Mobile</title> <!--include Kendo UI files--> <link href="public/css/kendo.common.min.css" rel="stylesheet" type="text/css" /> <link href="public/css/kendo.default.min.css" rel="stylesheet" type="text/css" /> <link href="public/css/kendo.mobile.all.min.css" rel="stylesheet" type="text/css" /> <script src="public/js/jquery.min.js" type="text/javascript"></script> <script src="public/js/kendo.mobile.min.js" type="text/javascript"></script></head><body> <div data-role="view" data-layout="index_template" data-title="Control Panel - Mobile" id="index"> <?php if (isset($error)){ echo '<p style="color:red">Error: '. $error .'</p>';} ?> <ul data-role="listview" data-style="inset"> <li><a href="/messages/listall">Customer Messages (<span id="unread_messages_hp"><?=$unread_messages?></span>)</a></li> <li><a href="/support/listall">Support Messages (<span id="unread_support_hp"><?=$unread_support?></span>)</a></li> <li><a href="/reviews/listall">Customer Reviews (<span id="new_reviews_hp"><?=$new_reviews?></span>)</a></li> <li><a href="/orders/listall">Orders (<span id="new_orders"><?=$new_orders?></span>)</a></li> </ul> </div> <div data-id="index_template" data-role="layout" data-show="triggerIndexButton"> <div data-role="header"> <div data-role="navbar"> <span data-role="view-title"></span> </div> </div> <div data-role="footer"> <div data-role="tabstrip" > <a href="/" data-icon="home" data-rel="external">Home</a> <a href="/logout" data-icon="settings">Logout</a> </div> </div> </div> <div data-id="main_template" data-role="layout"> <div data-role="header"> <div data-role="navbar"> <a class="nav-button" data-align="left" data-role="backbutton" id="back">Back</a> <span data-role="view-title"></span> </div> </div> <div data-role="footer"> <div data-role="tabstrip"> <a href="/" data-icon="home" data-rel="external">Home</a> <a href="/settings" data-icon="settings">Logout</a> </div> </div> </div> <script id="treeview-template" type="text/kendo-ui-template">
# var id = item.id; #
# var name = item.text; #
# var parentId = item.parentId; #
#= item.parentid #
# if (item.parentid == null) { #
test
# } #
<span categoryId="#= id #" class="#= parentId #">#= name #</span>
<input type="hidden" name="#= name #" value="#= id #" />
</script>
Any way for me to disable the nodes where the parentId is null?
I tried doing this without success:-
# if (item.parentid == null) { #
<span categoryId="#= id #" class="k-denied">#= name #</span>
# } #
Thanks
Gregor