fixing samples

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

View File

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

View File

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

View File

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