dialogs migration from moodialog to bootstrap

This commit is contained in:
Ezequiel Bergamaschi 2014-09-08 14:55:34 -03:00
parent 0df077d14b
commit 0cec7c2fec
4 changed files with 28 additions and 42 deletions

View File

@ -349,18 +349,10 @@ mindplot.widget.Menu = new Class({
var shareElem = $('#shareIt');
if (shareElem) {
this._addButton('shareIt', false, false, function () {
var reqDialog = new MooDialog.Request('c/iframeWrapper?url=c/maps/' + mapId + "/sharef", null,
{'class': 'modalDialog shareModalDialog',
BootstrapDialog.Request.active = new BootstrapDialog.Request('c/maps/' + mapId + "/sharef", $msg('COLLABORATE'), {
closeButton: true,
destroyOnClose: true,
title: $msg('COLLABORATE')
cancelButton: true
});
reqDialog.setRequestOptions({
onRequest: function () {
reqDialog.setContent($msg('LOADING'));
}
});
MooDialog.Request.active = reqDialog;
});
this._registerTooltip('shareIt', $msg('COLLABORATE'));
@ -369,19 +361,10 @@ mindplot.widget.Menu = new Class({
var publishElem = $('#publishIt');
if (publishElem) {
this._addButton('publishIt', false, false, function () {
var reqDialog = new MooDialog.Request('c/iframeWrapper?url=c/maps/' + mapId + "/publishf", null,
{'class': 'modalDialog publishModalDialog',
BootstrapDialog.Request.active = new BootstrapDialog.Request('c/maps/' + mapId + "/publishf", $msg('PUBLISH'), {
closeButton: true,
destroyOnClose: true,
title: $msg('PUBLISH')
cancelButton: true
});
reqDialog.setRequestOptions({
onRequest: function () {
reqDialog.setContent($msg('LOADING'));
}
});
MooDialog.Request.active = reqDialog;
});
this._registerTooltip('publishIt', $msg('PUBLISH'));
}
@ -390,16 +373,9 @@ mindplot.widget.Menu = new Class({
if (historyElem) {
this._addButton('history', false, false, function () {
var reqDialog = new MooDialog.Request('c/iframeWrapper?url=c/maps/' + mapId + "/historyf", null,
{'class': 'modalDialog historyModalDialog',
BootstrapDialog.Request.active = new BootstrapDialog.Request('c/maps/' + mapId + "/historyf", $msg('HISTORY'), {
closeButton: true,
destroyOnClose: true,
title: $msg('HISTORY')
});
reqDialog.setRequestOptions({
onRequest: function () {
reqDialog.setContent($msg('LOADING'));
}
cancelButton: true
});
});
this._registerTooltip('history', $msg('HISTORY'));
@ -412,18 +388,10 @@ mindplot.widget.Menu = new Class({
if (keyboardShortcut) {
keyboardShortcut.bind('click', function (event) {
var reqDialog = new MooDialog.Request('c/keyboard', null,
{'class': 'modalDialog keyboardModalDialog',
BootstrapDialog.Request.active = new BootstrapDialog.Request('c/keyboard', $msg('SHORTCUTS'), {
closeButton: true,
destroyOnClose: true,
title: $msg('SHORTCUTS')
cancelButton: true
});
reqDialog.setRequestOptions({
onRequest: function () {
reqDialog.setContent($msg('LOADING'));
}
});
MooDialog.Request.active = reqDialog;
event.preventDefault();
});
}

View File

@ -5,3 +5,4 @@
<%
request.setAttribute("principal", com.wisemapping.security.Utils.getUser());
%>
<%@include file="/jsp/style.jsp" %>

View File

@ -78,6 +78,12 @@
</div>
<style>
h2 {
font-size: 160%;
color: #8e9181;
}
</style>
<script type="text/javascript">
// No way to obtain map svg. Hide panels..

View File

@ -0,0 +1,11 @@
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<style>
h2 {
font-size: 160%;
color: #8e9181;
}
</style>
</head>
</html>