Skip to content

Commit

Permalink
fix(datepicker): remove custom elements to make it IE8 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
BastianVoigt committed Sep 23, 2013
1 parent 3e5f796 commit 9a69155
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 @@ -306,12 +306,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 = popupEl.find('div');
if (attrs.datepickerOptions) {
datepickerEl.attr(angular.extend({}, originalScope.$eval(attrs.datepickerOptions)));
}
Expand Down Expand Up @@ -433,7 +433,7 @@ function ($compile, $parse, $document, $position, dateFilter, datepickerPopupCon

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

0 comments on commit 9a69155

Please sign in to comment.