|
|
@ -810,6 +810,15 @@ weechat.directive('plugin', function() { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
$scope.displayedContent = $scope.plugin.content; |
|
|
|
$scope.displayedContent = $scope.plugin.content; |
|
|
|
$scope.plugin.visible = true; |
|
|
|
$scope.plugin.visible = true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Scroll embed content into view
|
|
|
|
|
|
|
|
var elems = $("." + $scope.plugin.$$hashKey); |
|
|
|
|
|
|
|
if (elems.length == 1) { |
|
|
|
|
|
|
|
var scroll = function() { |
|
|
|
|
|
|
|
elems[0].scrollIntoViewIfNeeded(); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
setTimeout(scroll, 100); |
|
|
|
|
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|