mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-21 21:57:56 +01:00
dialogs migration from moodialog to bootstrap
This commit is contained in:
parent
0df077d14b
commit
0cec7c2fec
@ -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')
|
||||
});
|
||||
reqDialog.setRequestOptions({
|
||||
onRequest: function () {
|
||||
reqDialog.setContent($msg('LOADING'));
|
||||
}
|
||||
cancelButton: true
|
||||
});
|
||||
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')
|
||||
});
|
||||
reqDialog.setRequestOptions({
|
||||
onRequest: function () {
|
||||
reqDialog.setContent($msg('LOADING'));
|
||||
}
|
||||
cancelButton: true
|
||||
});
|
||||
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',
|
||||
closeButton: true,
|
||||
destroyOnClose: true,
|
||||
title: $msg('HISTORY')
|
||||
});
|
||||
reqDialog.setRequestOptions({
|
||||
onRequest: function () {
|
||||
reqDialog.setContent($msg('LOADING'));
|
||||
}
|
||||
BootstrapDialog.Request.active = new BootstrapDialog.Request('c/maps/' + mapId + "/historyf", $msg('HISTORY'), {
|
||||
closeButton: true,
|
||||
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',
|
||||
closeButton: true,
|
||||
destroyOnClose: true,
|
||||
title: $msg('SHORTCUTS')
|
||||
});
|
||||
reqDialog.setRequestOptions({
|
||||
onRequest: function () {
|
||||
reqDialog.setContent($msg('LOADING'));
|
||||
}
|
||||
BootstrapDialog.Request.active = new BootstrapDialog.Request('c/keyboard', $msg('SHORTCUTS'), {
|
||||
closeButton: true,
|
||||
cancelButton: true
|
||||
});
|
||||
MooDialog.Request.active = reqDialog;
|
||||
event.preventDefault();
|
||||
});
|
||||
}
|
||||
|
@ -5,3 +5,4 @@
|
||||
<%
|
||||
request.setAttribute("principal", com.wisemapping.security.Utils.getUser());
|
||||
%>
|
||||
<%@include file="/jsp/style.jsp" %>
|
||||
|
@ -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..
|
||||
|
11
wise-webapp/src/main/webapp/jsp/style.jsp
Normal file
11
wise-webapp/src/main/webapp/jsp/style.jsp
Normal 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>
|
Loading…
Reference in New Issue
Block a user