mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-12-23 03:43:48 +01:00
Toolbar manage the concept of single and multiple actions over the mindmap.
This commit is contained in:
parent
a4e6325b12
commit
93da41dcf5
@ -151,17 +151,24 @@ function updateToolbar() {
|
||||
$("#mindmapListTable tbody input:not(:checked)").parent().parent().removeClass('row-selected');
|
||||
|
||||
var inputs = $("#mindmapListTable tbody input:checked");
|
||||
var selected = inputs.length > 0;
|
||||
if (selected) {
|
||||
$("#actionsBtn").show();
|
||||
$("#deleteBtn").show();
|
||||
$("#infoBtn").show();
|
||||
} else {
|
||||
$("#actionsBtn").hide();
|
||||
$("#deleteBtn").hide();
|
||||
$("#infoBtn").hide();
|
||||
|
||||
$("#buttonsToolbar .act-multiple").hide();
|
||||
$("#buttonsToolbar .act-single").hide();
|
||||
|
||||
|
||||
console.log($("#buttonsToolbar .act-multiple"));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (inputs.length > 0) {
|
||||
if (inputs.length == 1) {
|
||||
$("#buttonsToolbar .act-single").show();
|
||||
$("#buttonsToolbar .act-multiple").show();
|
||||
} else {
|
||||
$("#buttonsToolbar .act-multiple").show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -265,15 +265,15 @@
|
||||
<button class="btn" id="importBtn"><i class="icon-upload"></i> Import</button>
|
||||
</div>
|
||||
|
||||
<div class="btn-group" id="deleteBtn" style="display:none">
|
||||
<div class="btn-group act-multiple" id="deleteBtn" style="display:none">
|
||||
<button class="btn"><i class="icon-trash"></i> Delete</button>
|
||||
</div>
|
||||
|
||||
<div class="btn-group" id="infoBtn" style="display:none">
|
||||
<div class="btn-group act-single" id="infoBtn" style="display:none">
|
||||
<button class="btn"><i class="icon-exclamation-sign"></i> Info</button>
|
||||
</div>
|
||||
|
||||
<div class="btn-group" id="actionsBtn" style="display:none">
|
||||
<div class="btn-group act-single" id="actionsBtn" style="display:none">
|
||||
<button class="btn dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="icon-asterisk"></i> More
|
||||
<span class="caret"></span>
|
||||
|
Loading…
Reference in New Issue
Block a user