[view-graph][xs]: remove help section in sidebar editor as not needed (self-explanatory).
This commit is contained in:
@@ -28,14 +28,6 @@
|
|||||||
padding-left: 0px;
|
padding-left: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.recline-graph .editor-info {
|
|
||||||
padding-left: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.recline-graph .editor-info {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.recline-graph .editor form {
|
.recline-graph .editor form {
|
||||||
padding-left: 4px;
|
padding-left: 4px;
|
||||||
}
|
}
|
||||||
@@ -44,11 +36,6 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.recline-graph .editor-info {
|
|
||||||
border-bottom: 1px solid #ddd;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.recline-graph .editor-hide-info p {
|
.recline-graph .editor-hide-info p {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,13 +27,6 @@ my.Graph = Backbone.View.extend({
|
|||||||
|
|
||||||
template: ' \
|
template: ' \
|
||||||
<div class="editor"> \
|
<div class="editor"> \
|
||||||
<div class="editor-info editor-hide-info"> \
|
|
||||||
<h3 class="action-toggle-help">Help »</h3> \
|
|
||||||
<p>To create a chart select a column (group) to use as the x-axis \
|
|
||||||
then another column (Series A) to plot against it.</p> \
|
|
||||||
<p>You can add add \
|
|
||||||
additional series by clicking the "Add series" button</p> \
|
|
||||||
</div> \
|
|
||||||
<form class="form-stacked"> \
|
<form class="form-stacked"> \
|
||||||
<div class="clearfix"> \
|
<div class="clearfix"> \
|
||||||
<label>Graph Type</label> \
|
<label>Graph Type</label> \
|
||||||
@@ -93,8 +86,7 @@ my.Graph = Backbone.View.extend({
|
|||||||
events: {
|
events: {
|
||||||
'change form select': 'onEditorSubmit',
|
'change form select': 'onEditorSubmit',
|
||||||
'click .editor-add': '_onAddSeries',
|
'click .editor-add': '_onAddSeries',
|
||||||
'click .action-remove-series': 'removeSeries',
|
'click .action-remove-series': 'removeSeries'
|
||||||
'click .action-toggle-help': 'toggleHelp'
|
|
||||||
},
|
},
|
||||||
|
|
||||||
initialize: function(options) {
|
initialize: function(options) {
|
||||||
@@ -401,11 +393,7 @@ my.Graph = Backbone.View.extend({
|
|||||||
var $el = $(e.target);
|
var $el = $(e.target);
|
||||||
$el.parent().parent().remove();
|
$el.parent().parent().remove();
|
||||||
this.onEditorSubmit();
|
this.onEditorSubmit();
|
||||||
},
|
}
|
||||||
|
|
||||||
toggleHelp: function() {
|
|
||||||
this.el.find('.editor-info').toggleClass('editor-hide-info');
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
})(jQuery, recline.View);
|
})(jQuery, recline.View);
|
||||||
|
|||||||
Reference in New Issue
Block a user