mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-21 21:57:56 +01:00
mindmap export bug fixing
This commit is contained in:
parent
9855e032ef
commit
0df077d14b
@ -207,18 +207,10 @@ mindplot.widget.Menu = new Class({
|
||||
}
|
||||
|
||||
this._addButton('export', false, false, function () {
|
||||
var reqDialog = new MooDialog.Request('c/iframeWrapper.htm?url=c/maps/' + mapId + "/exportf", null,
|
||||
{'class': 'modalDialog exportModalDialog',
|
||||
closeButton: true,
|
||||
destroyOnClose: true,
|
||||
title: $msg('EXPORT')
|
||||
BootstrapDialog.Request.active = new BootstrapDialog.Request('c/maps/' + mapId + "/exportf", $msg('EXPORT'), {
|
||||
cancelButton: true,
|
||||
closeButton: true
|
||||
});
|
||||
reqDialog.setRequestOptions({
|
||||
onRequest: function () {
|
||||
reqDialog.setContent($msg('LOADING'));
|
||||
}
|
||||
});
|
||||
MooDialog.Request.active = reqDialog;
|
||||
});
|
||||
this._registerTooltip('export', $msg('EXPORT'));
|
||||
|
||||
|
@ -1,17 +1,16 @@
|
||||
<%@page pageEncoding="UTF-8" %>
|
||||
<%@include file="/jsp/init.jsp" %>
|
||||
|
||||
<p class="alert alert-info">
|
||||
<spring:message code="EXPORT_DETAILS"/>
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<div style="height: 400px; overflow-y: auto">
|
||||
<div class="alert alert-info" role="alert">
|
||||
<spring:message code="EXPORT_DETAILS"/>
|
||||
</div>
|
||||
<form method="GET" class="form-horizontal" action="c/restful/maps/${mindmap.id}"
|
||||
enctype="application/x-www-form-urlencoded" id="dialogMainForm">
|
||||
<input name="svgXml" id="svgXml" value="" type="hidden"/>
|
||||
<input name="download" type="hidden" value="mm"/>
|
||||
<fieldset>
|
||||
|
||||
<label for="freemind">
|
||||
<input type="radio" id="freemind" name="exportFormat" value="mm" checked="checked"/>
|
||||
<strong><spring:message code="FREEMIND_EXPORT_FORMAT"/></strong><br/>
|
||||
@ -51,7 +50,7 @@
|
||||
<option value='png'>PNG</option>
|
||||
<option value='jpg'>JPEG</option>
|
||||
</select>
|
||||
</label><br/>
|
||||
</label>
|
||||
|
||||
<label for="txt">
|
||||
<input type="radio" name="exportFormat" value="txt" id="txt"/>
|
||||
@ -59,33 +58,30 @@
|
||||
<spring:message code="TXT_EXPORT_FORMAT_DETAILS"/>
|
||||
</label>
|
||||
|
||||
</br><label for="xls">
|
||||
<label for="xls">
|
||||
<input type="radio" name="exportFormat" value="xls" id="xls"/>
|
||||
<strong><spring:message code="XLS_EXPORT_FORMAT"/></strong><br/>
|
||||
<spring:message code="XLS_EXPORT_FORMAT_DETAILS"/>
|
||||
</label><br/>
|
||||
</label>
|
||||
|
||||
<label for="odt">
|
||||
<input type="radio" name="exportFormat" value="odt" id="odt"/>
|
||||
<strong><spring:message code="OPEN_OFFICE_EXPORT_FORMAT"/></strong><br/>
|
||||
<spring:message code="OPEN_OFFICE_EXPORT_FORMAT_DETAILS"/>
|
||||
</label>
|
||||
|
||||
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<p id="exportInfo">
|
||||
<div id="exportInfo">
|
||||
<span class="label label-danger">Warning</span> <spring:message code="EXPORT_FORMAT_RESTRICTIONS"/>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// No way to obtain map svg. Hide panels..
|
||||
if (window.location.pathname.indexOf('exportf') != -1) {
|
||||
if (window.location.pathname.match(/\/[0-9]\/edit/)) {
|
||||
$('#exportInfo').hide();
|
||||
$('#freemind,#pdf,#svg,#odt,#txt,#xls,#mmap').click('click', function (event) {
|
||||
$('#imgFormat').hide();
|
||||
@ -124,14 +120,10 @@
|
||||
}
|
||||
|
||||
$('#dialogMainForm input[name=download]').attr('value', formatType);
|
||||
if (!differ) {
|
||||
form.submit();
|
||||
}
|
||||
|
||||
// Close dialog ...
|
||||
$('#export-dialog-modal').modal('hide');
|
||||
|
||||
return {"action":form.attr('action'), "method":form.attr('method'), formatType:formatType};
|
||||
}
|
||||
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user