removing VML support from client side
This commit is contained in:
@@ -49,27 +49,21 @@ public class MapEditorService
|
||||
return response;
|
||||
}
|
||||
|
||||
public ResponseMessage saveMap(final int mapId, final String nativeXml, final String chartType,
|
||||
public ResponseMessage saveMap(final int mapId, final String nativeXml,
|
||||
String chartXml, final String editorProperties,boolean saveHistory)
|
||||
throws IOException, WiseMappingException {
|
||||
final MindmapService serservice = getMindmapService();
|
||||
final MindMap mindMap = serservice.getMindmapById(mapId);
|
||||
final User user = this.getUser();
|
||||
|
||||
|
||||
MindMapNative nativeBrowser = mindMap.getNativeBrowser();
|
||||
|
||||
if (nativeBrowser == null) {
|
||||
nativeBrowser = new MindMapNative();
|
||||
}
|
||||
|
||||
if ("SVG".equals(chartType)) {
|
||||
nativeBrowser.setSvgXml(chartXml);
|
||||
nativeBrowser.setVmlXml((byte[]) null);
|
||||
} else {
|
||||
nativeBrowser.setVmlXml(chartXml);
|
||||
nativeBrowser.setSvgXml((byte[]) null);
|
||||
}
|
||||
nativeBrowser.setSvgXml(chartXml);
|
||||
nativeBrowser.setVmlXml((byte[]) null);
|
||||
|
||||
mindMap.setNativeBrowser(nativeBrowser);
|
||||
mindMap.setProperties(editorProperties);
|
||||
|
@@ -21,23 +21,9 @@ function afterCoreLoading()
|
||||
{
|
||||
|
||||
// Uncomment for debug ...
|
||||
if (core.UserAgent.isVMLSupported())
|
||||
{
|
||||
// $import("../js/mindplot.vml.js");
|
||||
} else
|
||||
{
|
||||
$import("../js/mindplot.svg.js");
|
||||
}
|
||||
$import("../js/mindplot.svg.js");
|
||||
|
||||
// if (core.UserAgent.isVMLSupported())
|
||||
// {
|
||||
// $import("../js/mindplot.vml-min.js");
|
||||
// } else
|
||||
// {
|
||||
// $import("../js/mindplot.svg-min.js");
|
||||
//
|
||||
// }
|
||||
|
||||
|
||||
};
|
||||
afterCoreLoading();
|
||||
|
@@ -18,14 +18,7 @@
|
||||
|
||||
function afterCoreLoading()
|
||||
{
|
||||
if (core.UserAgent.isVMLSupported())
|
||||
{
|
||||
$import("../js/mindplot.vml-min.js");
|
||||
} else
|
||||
{
|
||||
$import("../js/mindplot.svg-min.js");
|
||||
|
||||
}
|
||||
$import("../js/mindplot-min.js");
|
||||
};
|
||||
|
||||
afterCoreLoading();
|
||||
|
@@ -29,10 +29,6 @@
|
||||
// IE Hack ....
|
||||
function afterMindpotLibraryLoading(){};
|
||||
|
||||
if (core.UserAgent.isVMLSupported())
|
||||
{
|
||||
$import("../js/mindplot.vml.js");
|
||||
}
|
||||
};
|
||||
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user