1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| /**
| * Created by jeong on 2018-01-13.
| */
| 'use strict';
|
| define(['app'],
| function (app) {
| app.directive('modalFormAutoScroll', [
| function () {
| return {
| restrict: 'A',
| link: function (scope, element, attrs) {
|
| $(element).click(function () {
| $(".modal-body").animate({
| scrollTop: $(".modal-body").scrollTop() + 420
| }, 500);
| });
|
| $(element).focus(function () {
| $(".modal-body").animate({
| scrollTop: $(".modal-body").scrollTop() + 420
| }, 500);
| });
| }
| };
| }])
| });
|
|