mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
fix $ is missing error
This commit is contained in:
parent
e71389d3f0
commit
6cf1e2a713
1 changed files with 2 additions and 2 deletions
|
|
@ -75,12 +75,12 @@ angular.module('zeppelinWebApp').controller('NotebookCtrl', function($scope, $ro
|
|||
setTimeout(
|
||||
function() {
|
||||
var routeParams = currentRoute.params;
|
||||
var $id = $('#' + routeParams.paragraph + '_container');
|
||||
var $id = angular.element('#' + routeParams.paragraph + '_container');
|
||||
|
||||
if ($id.length > 0) {
|
||||
// adjust for navbar
|
||||
var top = $id.offset().top - 103;
|
||||
$('html, body').scrollTo({top: top, left: 0});
|
||||
angular.element('html, body').scrollTo({top: top, left: 0});
|
||||
}
|
||||
|
||||
// force notebook reload on user change
|
||||
|
|
|
|||
Loading…
Reference in a new issue