\r
var $info = $($('#tmpl_new_connection_info').html().trim());\r
\r
- // Some themes may hide the info box, so check that here also\r
- if ($info.html() && $info.is(':visible')) {\r
+ if ($info.html()) {\r
connection_dialog.view.infoBoxSet($info);\r
connection_dialog.view.infoBoxShow();\r
}\r
infoBoxShow: function() {
var $side_panel = this.$el.find('.side_panel');
+
+ // Some theme may hide the info panel so check before we
+ // resize ourselves
+ if (!$side_panel.is(':visible'))
+ return;
+
this.$el.animate({
width: parseInt($side_panel.css('left'), 10) + $side_panel.find('.content:first').outerWidth()
});