mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-25 15:37:56 +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 () {
|
$(function () {
|
||||||
// Creation buttons actions ...
|
// Creation buttons actions ...
|
||||||
$("#newBtn").click(
|
$("#newMapBtn").click(
|
||||||
function () {
|
function () {
|
||||||
$("#new-dialog-modal").dialogForm({
|
$("#new-dialog-modal").dialogForm({
|
||||||
redirect:"c/maps/{header.resourceId}/edit",
|
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 () {
|
$("#duplicateBtn").click(function () {
|
||||||
// Map to be cloned ...
|
// Map to be cloned ...
|
||||||
var tableElem = $('#mindmapListTable');
|
var tableElem = $('#mindmapListTable');
|
||||||
|
@ -162,9 +162,29 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button id="newBtn" class="btn btn-primary"><i class="icon-file icon-white"></i> <spring:message
|
<button id="newBtn" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
|
||||||
code="NEW"/></button>
|
<i class="icon-plus icon-white"></i>
|
||||||
<button id="importBtn" class="btn btn-primary"><i class="icon-upload 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"/>
|
<spring:message code="IMPORT"/>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user