               $timeout (->
                 scope.mgSelect()
               ), 300
-            
+
     activate()
   ]
 ]

        angular.element(elSelect).removeClass 'selected'
      # between-selected removeClass
      arrBetween = elCustom.querySelectorAll '.between-selected'
      i = 0
      for elBetween in arrBetween
        angular.element(elBetween).removeClass 'between-selected'
      
          
    # 공휴일 로드
    if scope.mgOptions.enableKoreanCalendar
      Calendar.load scope.restrictions.mindate, scope.restrictions.maxdate, scope.mgOptions.holidayUrl

      id = $filter('date')(scope.mgStart, 'yyyy.MM')
      monthElement = angular.element document.getElementById(id)
      element.parent()[0].scrollTop = monthElement[0].offsetTop

  controller: ['$scope', 'ModalService', 'Calendar', '$compile', (scope, ModalService, Calendar, compile) ->
    scope.weekdays = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT']
    startSelected = false
