fixing samples

This commit is contained in:
Ezequiel Bergamaschi 2015-01-31 15:32:09 -03:00
parent 2d3493b648
commit 9f79d8f40a
3 changed files with 4 additions and 9 deletions

View File

@ -26,10 +26,8 @@
$(document).on('loadcomplete', function(resource) {
// Options has been defined in by a external ile ?
var uri = new URI(window.location);
var query = String.parseQueryString(uri.get('query'));
var confUrl = query.confUrl;
var queryString = window.location.search;
var confUrl = queryString.replace("?confUrl=", "");
var options = loadDesignerOptions(confUrl);
var designer = buildDesigner(options);
@ -132,9 +130,6 @@
</div>
</div>
<div id="headerNotifier"></div>
<div id="footer">
<div id="footerLogo"></div>
</div>
</div>
<div id="mindplot" onselectstart="return false;"></div>

View File

@ -16,7 +16,6 @@
<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/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="shortcut icon" href="images/favicon.ico" type="image/x-icon">
@ -24,7 +23,7 @@
<script type="text/javascript">
var mapId = 'welcome';
$(document).bind('loadcomplete', function (resource) {
$(document).unbind().bind('loadcomplete', function (resource) {
// Set readonly option ...
var options = loadDesignerOptions();

View File

@ -135,6 +135,7 @@ function loadDesignerOptions(jsonConf) {
if (jsonConf) {
$.ajax({
url: jsonConf,
dataType: 'json',
async: false,
method: 'get',
success: function (options) {