Charts: Adding chart subset selection filter, setting zoomable charts as default

This commit is contained in:
Aysam Guerler
2014-06-04 01:49:43 -04:00
parent 1db9a64b79
commit f259ac94bd
31 changed files with 220 additions and 70 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ var View = Backbone.View.extend(
// set content padding
if (this.options.nopadding) {
$portlet_content.css('padding', '0px');
$content.css('padding', '0px');
this.$content.css('padding', '0px');
}
// append buttons
+3 -2
View File
@@ -158,7 +158,8 @@ var View = Backbone.View.extend(
// show selected tab
if (id) {
this.$el.find('.active').removeClass('active');
this.$el.find('.tab-element').removeClass('active');
this.$el.find('.tab-pane').removeClass('active');
this.$el.find('#tab-' + id).addClass('active');
this.$el.find('#tab-content-' + id).addClass('active');
}
@@ -218,7 +219,7 @@ var View = Backbone.View.extend(
// fill template tab
_template_tab: function(options) {
var tmpl = '<li id="tab-' + options.id + '">' +
var tmpl = '<li id="tab-' + options.id + '" class="tab-element">' +
'<a id="tab-title-link-' + options.id + '" title="" href="#tab-content-' + options.id + '" data-original-title="">' +
'<span id="tab-title-text-' + options.id + '">' + options.title + '</span>';