mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-11 01:33:24 +01:00
fixing samples
This commit is contained in:
parent
2d3493b648
commit
9f79d8f40a
@ -26,10 +26,8 @@
|
|||||||
$(document).on('loadcomplete', function(resource) {
|
$(document).on('loadcomplete', function(resource) {
|
||||||
|
|
||||||
// Options has been defined in by a external ile ?
|
// Options has been defined in by a external ile ?
|
||||||
var uri = new URI(window.location);
|
var queryString = window.location.search;
|
||||||
var query = String.parseQueryString(uri.get('query'));
|
var confUrl = queryString.replace("?confUrl=", "");
|
||||||
var confUrl = query.confUrl;
|
|
||||||
|
|
||||||
var options = loadDesignerOptions(confUrl);
|
var options = loadDesignerOptions(confUrl);
|
||||||
var designer = buildDesigner(options);
|
var designer = buildDesigner(options);
|
||||||
|
|
||||||
@ -132,9 +130,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="headerNotifier"></div>
|
<div id="headerNotifier"></div>
|
||||||
<div id="footer">
|
|
||||||
<div id="footerLogo"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="mindplot" onselectstart="return false;"></div>
|
<div id="mindplot" onselectstart="return false;"></div>
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
<script type='text/javascript' src='js/mootools-core.js'></script>
|
<script type='text/javascript' src='js/mootools-core.js'></script>
|
||||||
<script type='text/javascript' src='js/core.js'></script>
|
<script type='text/javascript' src='js/core.js'></script>
|
||||||
<script type='text/javascript' src='js/less.js'></script>
|
<script type='text/javascript' src='js/less.js'></script>
|
||||||
<script type='text/javascript' src='js/mindplot-min.js'></script>
|
|
||||||
|
|
||||||
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
|
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
|
||||||
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
|
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
|
||||||
@ -24,7 +23,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
var mapId = 'welcome';
|
var mapId = 'welcome';
|
||||||
$(document).bind('loadcomplete', function (resource) {
|
$(document).unbind().bind('loadcomplete', function (resource) {
|
||||||
|
|
||||||
// Set readonly option ...
|
// Set readonly option ...
|
||||||
var options = loadDesignerOptions();
|
var options = loadDesignerOptions();
|
||||||
|
@ -135,6 +135,7 @@ function loadDesignerOptions(jsonConf) {
|
|||||||
if (jsonConf) {
|
if (jsonConf) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: jsonConf,
|
url: jsonConf,
|
||||||
|
dataType: 'json',
|
||||||
async: false,
|
async: false,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
success: function (options) {
|
success: function (options) {
|
||||||
|
Loading…
Reference in New Issue
Block a user