Skip to content

Commit

Permalink
Replace image paths with encoded images to avoid issues in some speci…
Browse files Browse the repository at this point in the history
…al cases

* Update bower and package main files to also have css.
* Stop propogation of click on selection of month or year, to prevent closing of the non-inline popup.
  • Loading branch information
ziaulrehman40 committed Feb 6, 2017
1 parent 7b398bd commit fe537cd
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions angular-datepicker-light.js
Original file line number Diff line number Diff line change
Expand Up @@ -1259,15 +1259,15 @@
},
hideTodayDate: {
def: "false",
doc: "Hides bottom panel from calender display. Which is used to display today date."
doc: "If true, hides bottom panel(containing today's date) from calender display."
},
prevYers: {
def: "5",
doc: "Sets number of previous years(from current year) to display in year drop-down. NOTE if minDate is defined, this will be ignored in min date's favor."
doc: "Sets number of previous years(from current year) to display in year drop-down. NOTE if minDate is defined, this will be ignored in minDate's favor."
},
nextYears: {
def: "5",
doc: "Sets number of next years(from current year) to display in year drop-down. NOTE if maxDate is defined, this will be ignored in min date's favor"
doc: "Sets number of next years(from current year) to display in year drop-down. NOTE if maxDate is defined, this will be ignored in maxDate's favor"
}
};

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "angular-datepicker-light",
"version": "1.2.1",
"description": "AngularJS datepicker plugin",
"main": "angular-datepicker-light.js",
"main": ["angular-datepicker-light.js", "./stylesheets/angular-datepicker-light.css"],
"homepage": "http://www.vickram.me/angular-datepicker-light-plugin/",
"authors": [
"Vickram Ravichandran (http://vickram.me)"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "angular-datepicker-light",
"version": "1.2.1",
"description": "AngularJS datepicker plugin",
"main": "angular-datepicker-light.js",
"main": ["angular-datepicker-light.js", "./stylesheets/angular-datepicker-light.css"],
"homepage": "http://www.vickram.me/angular-datepicker-light-plugin/",
"author": "Vickram Ravichandran (http://vickram.me)",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions stylesheets/angular-datepicker-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ div.datepicker-container > div.top-panel {
}

div.datepicker-container > div.top-panel a.prev {
background-image: image-url("angular-datepicker-light/stylesheets/images/chevron-left.png");
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAYAAAAiYZ4HAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAFJJREFUKJHlzbERQEAQQNE3GhDQCTO0fh0IUQkVnOhk5xBIbLj73yzXUyNgLHRnPCFiR383jpjR/DaucofSPPqSQ8tb1H6C1qdoQ1cCCQUMaXEAyUEw5kLhpCcAAAAASUVORK5CYII=);
}

div.datepicker-container > div.top-panel a.next {
margin-left: 15px;
background-image: image-url("angular-datepicker-light/stylesheets/images/chevron-right.png");
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAYAAAAiYZ4HAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAFBJREFUKJHt0LsNgEAMBNEH1ManKISgNCgKyCA44pOds5KzGWu1lGxYBbPg+S4k9Th/qSK1FamJfIYBV7RSCh4z8JSF7ygMcwbucCgT7hHhBW/dMgUFnWL2AAAAAElFTkSuQmCC);
}

div.datepicker-container > div.top-panel select {
Expand Down
Binary file removed stylesheets/images/chevron-left.png
Binary file not shown.
Binary file removed stylesheets/images/chevron-right.png
Binary file not shown.

0 comments on commit fe537cd

Please sign in to comment.