mirror of
https://github.com/documize/community.git
synced 2025-08-04 21:15:24 +02:00
upgraded Ember and Bootstrap, merged changes
This commit is contained in:
parent
b4fd42da38
commit
5dd7d9c181
114 changed files with 9814 additions and 1361 deletions
|
@ -9,7 +9,9 @@
|
|||
//
|
||||
// https://documize.com
|
||||
|
||||
import $ from 'jquery';
|
||||
import Service, { inject as service } from '@ember/service';
|
||||
import { schedule } from '@ember/runloop';
|
||||
|
||||
export default Service.extend({
|
||||
sessionService: service('session'),
|
||||
|
@ -42,5 +44,17 @@ export default Service.extend({
|
|||
}
|
||||
|
||||
$('head').append('<meta name="description" content="' + description + '">');
|
||||
},
|
||||
|
||||
scrollTo(id) {
|
||||
schedule('afterRender', () => {
|
||||
let elem = $(id).offset();
|
||||
|
||||
if (is.undefined(elem)) return;
|
||||
|
||||
$('html, body').animate({
|
||||
scrollTop: elem.top
|
||||
}, 250);
|
||||
});
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue