Merge pull request #5937 from jdfreder/i5709

Add latex support in widget labels,
pull/37/head
Brian E. Granger 12 years ago
commit c9f9f5bbd2

@ -60,6 +60,7 @@ define(["widgets/js/widget"], function(WidgetManager){
this.$label.hide();
} else {
this.$label.text(description);
MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$label.get(0)]);
this.$label.show();
}
}

@ -273,6 +273,7 @@ define(["widgets/js/widget"], function(WidgetManager) {
this.$title.html(" "); // Preserve title height
} else {
this.$title.text(description);
MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$title.get(0)]);
}
var button_text = this.model.get('button_text');

@ -32,7 +32,7 @@ define(["widgets/js/widget"], function(WidgetManager){
// Put the slider in a container
this.$slider_container = $('<div />')
.addClass('widget-hslider')
.append(this.$slider)
.append(this.$slider);
this.$el_to_style = this.$slider_container; // Set default element to style
this.$el.append(this.$slider_container);
@ -113,6 +113,7 @@ define(["widgets/js/widget"], function(WidgetManager){
this.$label.hide();
} else {
this.$label.text(description);
MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$label.get(0)]);
this.$label.show();
}
@ -192,6 +193,7 @@ define(["widgets/js/widget"], function(WidgetManager){
this.$label.hide();
} else {
this.$label.text(description);
MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$label.get(0)]);
this.$label.show();
}
}
@ -294,6 +296,7 @@ define(["widgets/js/widget"], function(WidgetManager){
this.$label.hide();
} else {
this.$label.text(description);
MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$label.get(0)]);
this.$label.show();
}
return ProgressView.__super__.update.apply(this);

@ -96,6 +96,7 @@ define(["widgets/js/widget"], function(WidgetManager){
this.$label.hide();
} else {
this.$label.text(description);
MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$label.get(0)]);
this.$label.show();
}
}
@ -187,6 +188,7 @@ define(["widgets/js/widget"], function(WidgetManager){
this.$label.hide();
} else {
this.$label.text(description);
MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$label.get(0)]);
this.$label.show();
}
}
@ -279,6 +281,7 @@ define(["widgets/js/widget"], function(WidgetManager){
this.$label.hide();
} else {
this.$label.text(description);
MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$label.get(0)]);
this.$label.show();
}
}
@ -362,6 +365,7 @@ define(["widgets/js/widget"], function(WidgetManager){
this.$label.hide();
} else {
this.$label.text(description);
MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$label.get(0)]);
this.$label.show();
}
}

@ -113,6 +113,7 @@ define(["widgets/js/widget"], function(WidgetManager){
this.$label.hide();
} else {
this.$label.text(description);
MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$label.get(0)]);
this.$label.show();
}
}
@ -185,6 +186,7 @@ define(["widgets/js/widget"], function(WidgetManager){
this.$label.hide();
} else {
this.$label.text(description);
MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$label.get(0)]);
this.$label.show();
}
}

Loading…
Cancel
Save