removing VML support from client side

This commit is contained in:
Pablo Luna
2011-03-16 11:40:48 +00:00
parent 1b04d1effc
commit 7acfd763fa
41 changed files with 27 additions and 1914 deletions

View File

@@ -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);

View File

@@ -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();

View File

@@ -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();

View File

@@ -29,10 +29,6 @@
// IE Hack ....
function afterMindpotLibraryLoading(){};
if (core.UserAgent.isVMLSupported())
{
$import("../js/mindplot.vml.js");
}
};
</script>