mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 06:07:57 +01:00
new button is now a dropdown in order to support folders
This commit is contained in:
parent
91b5a08b11
commit
8bdc5f6b05
@ -246,7 +246,7 @@ function callbackOnTableInit() {
|
||||
|
||||
$(function () {
|
||||
// Creation buttons actions ...
|
||||
$("#newBtn").click(
|
||||
$("#newMapBtn").click(
|
||||
function () {
|
||||
$("#new-dialog-modal").dialogForm({
|
||||
redirect:"c/maps/{header.resourceId}/edit",
|
||||
@ -254,6 +254,13 @@ $(function () {
|
||||
});
|
||||
});
|
||||
|
||||
//Eze todo hoy esta creando un dialog de mapa
|
||||
$("#newFolderBtn").click(
|
||||
function() {
|
||||
window.alert('falta crear el dialog de folder')
|
||||
}
|
||||
);
|
||||
|
||||
$("#duplicateBtn").click(function () {
|
||||
// Map to be cloned ...
|
||||
var tableElem = $('#mindmapListTable');
|
||||
|
@ -162,9 +162,29 @@
|
||||
</div>
|
||||
|
||||
<div class="btn-group">
|
||||
<button id="newBtn" class="btn btn-primary"><i class="icon-file icon-white"></i> <spring:message
|
||||
code="NEW"/></button>
|
||||
<button id="importBtn" class="btn btn-primary"><i class="icon-upload icon-white"></i>
|
||||
<button id="newBtn" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="icon-plus icon-white"></i>
|
||||
<spring:message code="NEW"/>
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
|
||||
<ul class="dropdown-menu">
|
||||
<li id="newMapBtn">
|
||||
<a href="#" onclick="return false">
|
||||
<i class="icon-file"></i>
|
||||
<spring:message code="NEW_MAP"/>
|
||||
</a>
|
||||
</li>
|
||||
<li id="newFolderBtn">
|
||||
<a href="#" onclick="return false">
|
||||
<i class="icon-folder-open"></i>
|
||||
<spring:message code="NEW_FOLDER"/>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<button id="importBtn" class="btn btn-primary">
|
||||
<i class="icon-upload icon-white"></i>
|
||||
<spring:message code="IMPORT"/>
|
||||
</button>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user