Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Commit e0ca048

Browse files
author
Manuel Puentes Reed
committed
Added brackets per #213, edited README
1 parent 75b8a49 commit e0ca048

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ datepicker-append-to="" | String('#id','.classname', 'body') | false | Append th
9494
datepicker-toggle="" | String(Boolean) | true | Set the datepicker to toggle its visibility on focus and blur
9595
datepicker-show="" | String | false | Trigger the datepicker visibility, if true datepicker is shown if false it is hidden
9696
| | | **tip:** _You may use this option together with datepicker-toggle="false" for a stable behavior_
97+
datepicker-mobile="" | String | true | Set to `false` to force override of mobile styles. Especially useful for using desktop-style pagination control in mobile apps.
9798

9899
##Options
99100
Angular datepicker allows you to use some options via `attribute` data
@@ -194,14 +195,14 @@ You can show validation errors simply validating the ngModel, as you would do fo
194195
```javascript
195196
.controller('Ctrl', ['$scope', function ($scope) {
196197
var liveDate;
197-
198+
198199
$scope.$watch('myDate', function (value) {
199200
try {
200201
liveDate = new Date(value);
201202
} catch(e) {}
202-
203+
203204
if (!liveDate) {
204-
205+
205206
$scope.error = "This is not a valid date";
206207
} else {
207208
$scope.error = false;

src/js/angular-datepicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}())
2121
, generateMonthAndYearHeader = function generateMonthAndYearHeader(prevButton, nextButton, preventMobile) {
2222

23-
if (preventMobile) isMobile = false;
23+
if (preventMobile) { isMobile = false; }
2424

2525
if (isMobile) {
2626

0 commit comments

Comments
 (0)