Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
fix(datapicker): some IE8 compatibility improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuacc authored and pkozlowski-opensource committed Oct 4, 2013
1 parent e01bddf commit 4540476
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/datepicker/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,12 +326,12 @@ function ($compile, $parse, $document, $position, dateFilter, datepickerPopupCon
};

// popup element used to display calendar
var popupEl = angular.element('<datepicker-popup-wrap><datepicker></datepicker></datepicker-popup-wrap>');
var popupEl = angular.element('<div datepicker-popup-wrap><div datepicker></div></div>');
popupEl.attr({
'ng-model': 'date',
'ng-change': 'dateSelection()'
});
var datepickerEl = popupEl.find('datepicker');
var datepickerEl = angular.element(popupEl.children()[0]);
if (attrs.datepickerOptions) {
datepickerEl.attr(angular.extend({}, originalScope.$eval(attrs.datepickerOptions)));
}
Expand Down Expand Up @@ -453,7 +453,7 @@ function ($compile, $parse, $document, $position, dateFilter, datepickerPopupCon

.directive('datepickerPopupWrap', function() {
return {
restrict:'E',
restrict:'EA',
replace: true,
transclude: true,
templateUrl: 'template/datepicker/popup.html',
Expand Down

0 comments on commit 4540476

Please sign in to comment.