Start working on a folders support.
This commit is contained in:
@@ -52,12 +52,6 @@
|
||||
return '<a href="c/map/' + obj.aData.id + '/edit.htm">' + obj.aData.title + '</a>';
|
||||
}
|
||||
},
|
||||
{
|
||||
bVisible: false,
|
||||
bSearchable : false,
|
||||
sTitle : "Owner Email",
|
||||
mDataProp: "ownerEmail"
|
||||
},
|
||||
{
|
||||
sTitle : "Owner",
|
||||
mDataProp :"owner"
|
||||
@@ -78,7 +72,7 @@
|
||||
oLanguage : {
|
||||
"sSearch" : "",
|
||||
"sInfo" : "_START_-_END_ of _TOTAL_",
|
||||
"sEmptyTable": "Hey, you don't have any mindmap. Go ahead and create one clicking on the 'New' button !!!"
|
||||
"sEmptyTable": "No mindmap available for the selected filter criteria."
|
||||
},
|
||||
bStateSave:true
|
||||
});
|
||||
@@ -233,12 +227,24 @@
|
||||
$("#actionButtons .tagMap").click(function() {
|
||||
});
|
||||
|
||||
$("#actionButtons .share").click(function() {
|
||||
});
|
||||
|
||||
$("#actionButtons .tags").click(function() {
|
||||
});
|
||||
|
||||
|
||||
$('#foldersContainer li').click(function(event) {
|
||||
// Deselect previous option ...
|
||||
$('#foldersContainer li').removeClass('active');
|
||||
$('#foldersContainer i').removeClass('icon-white');
|
||||
|
||||
// Select the new item ...
|
||||
var dataTable = $('#mindmapListTable').dataTable();
|
||||
$(this).addClass('active').filter('i').addClass('icon-white');
|
||||
|
||||
// Reload the table data ...
|
||||
dataTable.fnReloadAjax("../service/maps?q=" + $(this).attr('data-filter'));
|
||||
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
|
||||
// Register time update functions ....
|
||||
@@ -265,13 +271,13 @@
|
||||
</div>
|
||||
|
||||
<div id="mindmapListContainer">
|
||||
<div style="width: 15%;float: left;margin-right: 2%;margin-top: 80px">
|
||||
<div id="foldersContainer">
|
||||
<ul class="nav nav-list">
|
||||
<li class="nav-header">Folders</li>
|
||||
|
||||
<li class="active"><a href="#"><i class="icon-inbox"></i> All</a></li>
|
||||
<li><a href="#"><i class="icon-share"></i> Shared With Me</a></li>
|
||||
<li><a href="#"><i class="icon-globe"></i> Public Maps</a></li>
|
||||
<li data-filter="all" class="active"><a href="#"><i class="icon-inbox"></i> All</a></li>
|
||||
<li data-filter="my_maps" ><a href="#"><i class="icon-user"></i> My Maps</a></li>
|
||||
<li data-filter="shared_with_me"><a href="#"><i class="icon-share"></i> Shared With Me</a></li>
|
||||
<li data-filter="public"><a href="#"><i class="icon-globe"></i> Public Maps</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user