|
@@ -38,7 +38,6 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, ENABLE_
|
|
|
<link rel="stylesheet" href="${ static('desktop/ext/select2/select2.css') }">
|
|
<link rel="stylesheet" href="${ static('desktop/ext/select2/select2.css') }">
|
|
|
<link rel="stylesheet" href="${ static('desktop/ext/css/medium-editor.min.css') }">
|
|
<link rel="stylesheet" href="${ static('desktop/ext/css/medium-editor.min.css') }">
|
|
|
<link rel="stylesheet" href="${ static('desktop/css/bootstrap-medium-editor.css') }">
|
|
<link rel="stylesheet" href="${ static('desktop/css/bootstrap-medium-editor.css') }">
|
|
|
-<link rel="stylesheet" href="${ static('desktop/ext/css/jquery.mCustomScrollbar.min.css') }">
|
|
|
|
|
|
|
|
|
|
% if not is_embeddable:
|
|
% if not is_embeddable:
|
|
|
<script src="${ static('desktop/ext/js/jquery/plugins/jquery-ui-1.10.4.custom.min.js') }"></script>
|
|
<script src="${ static('desktop/ext/js/jquery/plugins/jquery-ui-1.10.4.custom.min.js') }"></script>
|
|
@@ -72,7 +71,6 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, ENABLE_
|
|
|
<script src="${ static('desktop/ext/js/markdown.min.js') }"></script>
|
|
<script src="${ static('desktop/ext/js/markdown.min.js') }"></script>
|
|
|
<script src="${ static('desktop/ext/js/jquery/plugins/jquery.hotkeys.js') }"></script>
|
|
<script src="${ static('desktop/ext/js/jquery/plugins/jquery.hotkeys.js') }"></script>
|
|
|
<script src="${ static('desktop/ext/js/jquery/plugins/jquery.mousewheel.min.js') }"></script>
|
|
<script src="${ static('desktop/ext/js/jquery/plugins/jquery.mousewheel.min.js') }"></script>
|
|
|
-<script src="${ static('desktop/ext/js/jquery.mCustomScrollbar.concat.min.js') }"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if ENABLE_QUERY_BUILDER.get():
|
|
%if ENABLE_QUERY_BUILDER.get():
|
|
@@ -3585,10 +3583,7 @@ function togglePresentation(value) {};
|
|
|
$(document).on("toggleResultSettings", function (e, snippet) {
|
|
$(document).on("toggleResultSettings", function (e, snippet) {
|
|
|
window.setTimeout(function () {
|
|
window.setTimeout(function () {
|
|
|
$('#snippet_' + snippet.id()).find('.chart').trigger("forceUpdate");
|
|
$('#snippet_' + snippet.id()).find('.chart').trigger("forceUpdate");
|
|
|
- $('#snippet_' + snippet.id()).find('.snippet-grid-settings').mCustomScrollbar('update');
|
|
|
|
|
- $('#snippet_' + snippet.id()).find('.snippet-grid-settings').mCustomScrollbar('scrollTo', 'left', {
|
|
|
|
|
- scrollInertia: 0
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ $('#snippet_' + snippet.id()).find('.snippet-grid-settings').scrollLeft(0);
|
|
|
if (snippet.isResultSettingsVisible()){
|
|
if (snippet.isResultSettingsVisible()){
|
|
|
$("#snippet_" + snippet.id()).find('.table-results .grid-side').width((100 - $("#snippet_" + snippet.id()).find('.table-results .column-side').data('newWidth') - hueUtils.bootstrapRatios.margin()) + '%');
|
|
$("#snippet_" + snippet.id()).find('.table-results .grid-side').width((100 - $("#snippet_" + snippet.id()).find('.table-results .column-side').data('newWidth') - hueUtils.bootstrapRatios.margin()) + '%');
|
|
|
}
|
|
}
|
|
@@ -3688,12 +3683,7 @@ function togglePresentation(value) {};
|
|
|
huePubSub.publish('editor.snippet.result.normal', options.snippet);
|
|
huePubSub.publish('editor.snippet.result.normal', options.snippet);
|
|
|
}
|
|
}
|
|
|
$("#snippet_" + options.snippet.id()).find("select").trigger('chosen:updated');
|
|
$("#snippet_" + options.snippet.id()).find("select").trigger('chosen:updated');
|
|
|
- $('#snippet_' + options.snippet.id()).find('.snippet-grid-settings').mCustomScrollbar({axis: 'xy', theme: 'minimal-dark', scrollbarPosition: 'outside', mouseWheel:{ preventDefault: true, deltaFactor: 10 }, scrollInertia: 0});
|
|
|
|
|
- window.setTimeout(function(){
|
|
|
|
|
- $('#snippet_' + options.snippet.id()).find('.snippet-grid-settings').mCustomScrollbar('scrollTo', 'left', {
|
|
|
|
|
- scrollInertia: 0
|
|
|
|
|
- });
|
|
|
|
|
- }, 200)
|
|
|
|
|
|
|
+ $('#snippet_' + options.snippet.id()).find('.snippet-grid-settings').scrollLeft(0);
|
|
|
}, HUE_PUB_SUB_EDITOR_ID);
|
|
}, HUE_PUB_SUB_EDITOR_ID);
|
|
|
|
|
|
|
|
huePubSub.subscribe('editor.redraw.data', function (options) {
|
|
huePubSub.subscribe('editor.redraw.data', function (options) {
|
|
@@ -3801,18 +3791,7 @@ function togglePresentation(value) {};
|
|
|
}, function () {
|
|
}, function () {
|
|
|
resizeToggleResultSettings(snippet, true);
|
|
resizeToggleResultSettings(snippet, true);
|
|
|
forceChartDraws();
|
|
forceChartDraws();
|
|
|
- $('#snippet_' + snippet.id()).find('.snippet-grid-settings').mCustomScrollbar({
|
|
|
|
|
- axis: 'xy',
|
|
|
|
|
- theme: 'minimal-dark',
|
|
|
|
|
- scrollbarPosition: 'outside',
|
|
|
|
|
- mouseWheel: {preventDefault: true, deltaFactor: 10},
|
|
|
|
|
- scrollInertia: 0
|
|
|
|
|
- });
|
|
|
|
|
- window.setTimeout(function () {
|
|
|
|
|
- $('#snippet_' + snippet.id()).find('.snippet-grid-settings').mCustomScrollbar('scrollTo', 'left', {
|
|
|
|
|
- scrollInertia: 0
|
|
|
|
|
- });
|
|
|
|
|
- }, 200)
|
|
|
|
|
|
|
+ $('#snippet_' + snippet.id()).find('.snippet-grid-settings').scrollLeft(0);
|
|
|
});
|
|
});
|
|
|
}, HUE_PUB_SUB_EDITOR_ID);
|
|
}, HUE_PUB_SUB_EDITOR_ID);
|
|
|
|
|
|