Skip to content

Commit 5cc96f1

Browse files
committed
new attribute option datepicker-show=''
1 parent a6aa855 commit 5cc96f1

10 files changed

+62
-40
lines changed

Diff for: .eslintrc

+2-9
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"no-plusplus": 2,
2323
"no-bitwise": 2,
2424
"block-scoped-var": 2,
25-
"consistent-return": 2,
25+
"consistent-return": 1,
2626
"curly": [
2727
2,
2828
"all"
@@ -32,7 +32,6 @@
3232
"no-caller": 2,
3333
"no-div-regex": 2,
3434
"no-else-return": 2,
35-
"no-empty-label": 2,
3635
"no-eq-null": 2,
3736
"no-eval": 2,
3837
"no-extend-native": 2,
@@ -64,7 +63,6 @@
6463
2,
6564
"outside"
6665
],
67-
"strict": [2, "never"],
6866
"strict": 2,
6967
"no-catch-shadow": 2,
7068
"no-delete-var": 2,
@@ -109,10 +107,7 @@
109107
2,
110108
"always"
111109
],
112-
"space-after-keywords": [
113-
2,
114-
"always"
115-
],
110+
"keyword-spacing": 2,
116111
"object-curly-spacing": [
117112
2,
118113
"never"
@@ -126,7 +121,6 @@
126121
"never"
127122
],
128123
"space-infix-ops": 2,
129-
"space-return-throw-case": 2,
130124
"space-unary-ops": 2,
131125
"one-var": 2,
132126
"wrap-regex": 2,
@@ -150,7 +144,6 @@
150144
1,
151145
"expression"
152146
],
153-
"no-extra-parens": 1,
154147
"func-names": 1,
155148

156149
"no-ternary": 0,

Diff for: assets/js/index.js

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
1-
/*global angular*/
1+
/*global angular window*/
22

33
(function (angular) {
44
'use strict';
55

66
var app = angular.module('720kb', [
77
'ngRoute',
88
'720kb.datepicker'
9-
]);
9+
])
10+
.controller('TestController', ['$scope', '$interval', function TestController($scope, $interval) {
11+
var that = this;
12+
13+
that.visibility = true;
14+
15+
$interval(function setInterval() {
16+
//toggle manually everytime
17+
that.visibility = !that.visibility;
18+
window.console.info('Toggling datepicker with interval of 3.5 seconds');
19+
}, 3500);
20+
}]);
1021
}(angular));

Diff for: bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angularjs-datepicker",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"description": "A datepicker directive for angularjs.",
55
"authors": [
66
"Filippo Oretti <[email protected]",

Diff for: dist/angular-datepicker.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)