bootstrap3-datetimepicker-rails 3.0.0.2 → 3.0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -6
  3. data/lib/bootstrap3-datetimepicker-rails/version.rb +1 -1
  4. data/vendor/assets/javascripts/bootstrap-datetimepicker.js +476 -346
  5. data/vendor/assets/javascripts/bootstrap-datetimepicker.min.js +1 -105
  6. data/vendor/assets/stylesheets/bootstrap-datetimepicker.css +6 -5
  7. data/vendor/assets/stylesheets/bootstrap-datetimepicker.min.css +2 -1
  8. metadata +8 -69
  9. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ar-ma.js +0 -56
  10. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ar.js +0 -56
  11. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.bg.js +0 -86
  12. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.br.js +0 -107
  13. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.bs.js +0 -139
  14. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.by.js +0 -153
  15. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ca.js +0 -66
  16. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.cs.js +0 -155
  17. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.cv.js +0 -59
  18. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.da.js +0 -56
  19. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.de.js +0 -71
  20. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.el.js +0 -79
  21. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.en-au.js +0 -62
  22. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.en-ca.js +0 -59
  23. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.en-gb.js +0 -63
  24. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.eo.js +0 -65
  25. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.es.js +0 -66
  26. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.et.js +0 -60
  27. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.eu.js +0 -60
  28. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fa.js +0 -97
  29. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fi.js +0 -103
  30. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fr-ca.js +0 -54
  31. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fr.js +0 -58
  32. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.gl.js +0 -71
  33. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.he.js +0 -77
  34. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.hi.js +0 -105
  35. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.hr.js +0 -140
  36. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.hu.js +0 -98
  37. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.id.js +0 -67
  38. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.is.js +0 -124
  39. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.it.js +0 -59
  40. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ja.js +0 -58
  41. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ka.js +0 -108
  42. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ko.js +0 -56
  43. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.lt.js +0 -118
  44. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.lv.js +0 -77
  45. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ml.js +0 -64
  46. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.mr.js +0 -104
  47. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ms-my.js +0 -66
  48. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.nb.js +0 -57
  49. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ne.js +0 -105
  50. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.nl.js +0 -67
  51. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.nn.js +0 -56
  52. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.pl.js +0 -98
  53. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.pt-BR.js +0 -56
  54. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.pt.js +0 -60
  55. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ro.js +0 -56
  56. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ru.js +0 -163
  57. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sk.js +0 -156
  58. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sl.js +0 -144
  59. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sq.js +0 -57
  60. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sv.js +0 -63
  61. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.th.js +0 -58
  62. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.tr.js +0 -93
  63. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.tzm-la.js +0 -55
  64. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.tzm.js +0 -55
  65. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.uk.js +0 -157
  66. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.uz.js +0 -55
  67. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.vn.js +0 -62
  68. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.zh-CN.js +0 -108
  69. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.zh-TW.js +0 -84
@@ -1,105 +1 @@
1
- /*
2
- Version 3.0.0
3
- =========================================================
4
- bootstrap-datetimepicker.js
5
- https://github.com/Eonasdan/bootstrap-datetimepicker
6
- =========================================================
7
- The MIT License (MIT)
8
-
9
- Copyright (c) 2014 Jonathan Peterson
10
-
11
- Permission is hereby granted, free of charge, to any person obtaining a copy
12
- of this software and associated documentation files (the "Software"), to deal
13
- in the Software without restriction, including without limitation the rights
14
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
- copies of the Software, and to permit persons to whom the Software is
16
- furnished to do so, subject to the following conditions:
17
-
18
- The above copyright notice and this permission notice shall be included in
19
- all copies or substantial portions of the Software.
20
-
21
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27
- THE SOFTWARE.
28
- */
29
- !function(e){if("function"==typeof define&&define.amd)define(["jquery","moment"],e)
30
- else{if(!jQuery)throw"bootstrap-datetimepicker requires jQuery to be loaded first"
31
- if(!moment)throw"bootstrap-datetimepicker requires moment.js to be loaded first"
32
- e(jQuery,moment)}}(function(e,t){if(void 0===t)throw alert("momentjs is requried"),Error("momentjs is required")
33
- var a=0,o=t,n=function(t,n){var s={pickDate:!0,pickTime:!0,useMinutes:!0,useSeconds:!1,useCurrent:!0,minuteStepping:1,minDate:new o({y:1900}),maxDate:(new o).add(100,"y"),showToday:!0,collapse:!0,language:"en",defaultDate:"",disabledDates:!1,enabledDates:!1,icons:{},useStrict:!1,direction:"auto",sideBySide:!1,daysOfWeekDisabled:!1},d={time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down"},r=this,c=function(){var i,c=!1
34
- if(r.options=e.extend({},s,n),r.options.icons=e.extend({},d,r.options.icons),r.element=e(t),l(),!r.options.pickTime&&!r.options.pickDate)throw Error("Must choose at least one picker")
35
- if(r.id=a++,o.lang(r.options.language),r.date=o(),r.unset=!1,r.isInput=r.element.is("input"),r.component=!1,r.element.hasClass("input-group")&&(r.component=r.element.find(0==r.element.find(".datepickerbutton").size()?"[class^='input-group-']":".datepickerbutton")),r.format=r.options.format,i=o()._lang._longDateFormat,r.format||(r.format=r.options.pickDate?i.L:"",r.options.pickDate&&r.options.pickTime&&(r.format+=" "),r.format+=r.options.pickTime?i.LT:"",r.options.useSeconds&&(~i.LT.indexOf(" A")?r.format=r.format.split(" A")[0]+":ss A":r.format+=":ss")),r.use24hours=r.format.toLowerCase().indexOf("a")<1,r.component&&(c=r.component.find("span")),r.options.pickTime&&c&&c.addClass(r.options.icons.time),r.options.pickDate&&c&&(c.removeClass(r.options.icons.time),c.addClass(r.options.icons.date)),r.widget=e(W()).appendTo("body"),r.options.useSeconds&&!r.use24hours&&r.widget.width(300),r.minViewMode=r.options.minViewMode||0,"string"==typeof r.minViewMode)switch(r.minViewMode){case"months":r.minViewMode=1
36
- break
37
- case"years":r.minViewMode=2
38
- break
39
- default:r.minViewMode=0}if(r.viewMode=r.options.viewMode||0,"string"==typeof r.viewMode)switch(r.viewMode){case"months":r.viewMode=1
40
- break
41
- case"years":r.viewMode=2
42
- break
43
- default:r.viewMode=0}if(r.options.disabledDates=j(r.options.disabledDates),r.options.enabledDates=j(r.options.enabledDates),r.startViewMode=r.viewMode,r.setMinDate(r.options.minDate),r.setMaxDate(r.options.maxDate),g(),w(),k(),b(),y(),h(),P(),V(),""!==r.options.defaultDate&&""==p().val()&&r.setValue(r.options.defaultDate),1!==r.options.minuteStepping){var m=r.options.minuteStepping
44
- r.date.minutes(Math.round(r.date.minutes()/m)*m%60).seconds(0)}},p=function(){return r.isInput?r.element:dateStr=r.element.find("input")},l=function(){var e
45
- e=(r.element.is("input"),r.element.data()),void 0!==e.dateFormat&&(r.options.format=e.dateFormat),void 0!==e.datePickdate&&(r.options.pickDate=e.datePickdate),void 0!==e.datePicktime&&(r.options.pickTime=e.datePicktime),void 0!==e.dateUseminutes&&(r.options.useMinutes=e.dateUseminutes),void 0!==e.dateUseseconds&&(r.options.useSeconds=e.dateUseseconds),void 0!==e.dateUsecurrent&&(r.options.useCurrent=e.dateUsecurrent),void 0!==e.dateMinutestepping&&(r.options.minuteStepping=e.dateMinutestepping),void 0!==e.dateMindate&&(r.options.minDate=e.dateMindate),void 0!==e.dateMaxdate&&(r.options.maxDate=e.dateMaxdate),void 0!==e.dateShowtoday&&(r.options.showToday=e.dateShowtoday),void 0!==e.dateCollapse&&(r.options.collapse=e.dateCollapse),void 0!==e.dateLanguage&&(r.options.language=e.dateLanguage),void 0!==e.dateDefaultdate&&(r.options.defaultDate=e.dateDefaultdate),void 0!==e.dateDisableddates&&(r.options.disabledDates=e.dateDisableddates),void 0!==e.dateEnableddates&&(r.options.enabledDates=e.dateEnableddates),void 0!==e.dateIcons&&(r.options.icons=e.dateIcons),void 0!==e.dateUsestrict&&(r.options.useStrict=e.dateUsestrict),void 0!==e.dateDirection&&(r.options.direction=e.dateDirection),void 0!==e.dateSidebyside&&(r.options.sideBySide=e.dateSidebyside)},m=function(){var t="absolute",i=r.component?r.component.offset():r.element.offset(),a=e(window)
46
- r.width=r.component?r.component.outerWidth():r.element.outerWidth(),i.top=i.top+r.element.outerHeight()
47
- var o
48
- "up"===r.options.direction?o="top":"bottom"===r.options.direction?o="bottom":"auto"===r.options.direction&&(o=i.top+r.widget.height()>a.height()+a.scrollTop()&&r.widget.height()+r.element.outerHeight()<i.top?"top":"bottom"),"top"===o?(i.top-=r.widget.height()+r.element.outerHeight()+15,r.widget.addClass("top").removeClass("bottom")):(i.top+=1,r.widget.addClass("bottom").removeClass("top")),void 0!==r.options.width&&r.widget.width(r.options.width),"left"===r.options.orientation&&(r.widget.addClass("left-oriented"),i.left=i.left-r.widget.width()+20),Y()&&(t="fixed",i.top-=a.scrollTop(),i.left-=a.scrollLeft()),a.width()<i.left+r.widget.outerWidth()?(i.right=a.width()-i.left-r.width,i.left="auto",r.widget.addClass("pull-right")):(i.right="auto",r.widget.removeClass("pull-right")),r.widget.css({position:t,top:i.top,left:i.left,right:i.right})},u=function(e,t){o(r.date).isSame(o(e))||(r.element.trigger({type:"dp.change",date:o(r.date),oldDate:o(e)}),"change"!==t&&r.element.change())},f=function(e){r.element.trigger({type:"dp.error",date:o(e)})},h=function(e){o.lang(r.options.language)
49
- var t=e
50
- t||(t=p().val(),t&&(r.date=o(t,r.format,r.options.useStrict)),r.date||(r.date=o())),r.viewDate=o(r.date).startOf("month"),v(),D()},g=function(){o.lang(r.options.language)
51
- var t,i=e("<tr>"),a=o.weekdaysMin()
52
- if(0==o()._lang._week.dow)for(t=0;7>t;t++)i.append('<th class="dow">'+a[t]+"</th>")
53
- else for(t=1;8>t;t++)i.append(7==t?'<th class="dow">'+a[0]+"</th>":'<th class="dow">'+a[t]+"</th>")
54
- r.widget.find(".datepicker-days thead").append(i)},w=function(){o.lang(r.options.language)
55
- for(var e="",t=0,i=o.monthsShort();12>t;)e+='<span class="month">'+i[t++]+"</span>"
56
- r.widget.find(".datepicker-months td").append(e)},v=function(){o.lang(r.options.language)
57
- var t,i,a,n,s,d,c,p,l=r.viewDate.year(),m=r.viewDate.month(),u=r.options.minDate.year(),f=r.options.minDate.month(),h=r.options.maxDate.year(),g=r.options.maxDate.month(),w=[],v=o.months()
58
- for(r.widget.find(".datepicker-days").find(".disabled").removeClass("disabled"),r.widget.find(".datepicker-months").find(".disabled").removeClass("disabled"),r.widget.find(".datepicker-years").find(".disabled").removeClass("disabled"),r.widget.find(".datepicker-days th:eq(1)").text(v[m]+" "+l),t=o(r.viewDate).subtract("months",1),d=t.daysInMonth(),t.date(d).startOf("week"),(l==u&&f>=m||u>l)&&r.widget.find(".datepicker-days th:eq(0)").addClass("disabled"),(l==h&&m>=g||l>h)&&r.widget.find(".datepicker-days th:eq(2)").addClass("disabled"),i=o(t).add(42,"d");t.isBefore(i);){if(t.weekday()===o().startOf("week").weekday()&&(a=e("<tr>"),w.push(a)),n="",t.year()<l||t.year()==l&&t.month()<m?n+=" old":(t.year()>l||t.year()==l&&t.month()>m)&&(n+=" new"),t.isSame(o({y:r.date.year(),M:r.date.month(),d:r.date.date()}))&&(n+=" active"),(N(t)||!U(t))&&(n+=" disabled"),r.options.showToday===!0&&t.isSame(o(),"day")&&(n+=" today"),r.options.daysOfWeekDisabled)for(s in r.options.daysOfWeekDisabled)if(t.day()==r.options.daysOfWeekDisabled[s]){n+=" disabled"
59
- break}a.append('<td class="day'+n+'">'+t.date()+"</td>"),t.add(1,"d")}for(r.widget.find(".datepicker-days tbody").empty().append(w),p=r.date.year(),v=r.widget.find(".datepicker-months").find("th:eq(1)").text(l).end().find("span").removeClass("active"),p===l&&v.eq(r.date.month()).addClass("active"),u>p-1&&r.widget.find(".datepicker-months th:eq(0)").addClass("disabled"),p+1>h&&r.widget.find(".datepicker-months th:eq(2)").addClass("disabled"),s=0;12>s;s++)l==u&&f>s||u>l?e(v[s]).addClass("disabled"):(l==h&&s>g||l>h)&&e(v[s]).addClass("disabled")
60
- for(w="",l=10*parseInt(l/10,10),c=r.widget.find(".datepicker-years").find("th:eq(1)").text(l+"-"+(l+9)).end().find("td"),r.widget.find(".datepicker-years").find("th").removeClass("disabled"),u>l&&r.widget.find(".datepicker-years").find("th:eq(0)").addClass("disabled"),l+9>h&&r.widget.find(".datepicker-years").find("th:eq(2)").addClass("disabled"),l-=1,s=-1;11>s;s++)w+='<span class="year'+(-1===s||10===s?" old":"")+(p===l?" active":"")+(u>l||l>h?" disabled":"")+'">'+l+"</span>",l+=1
61
- c.html(w)},k=function(){o.lang(r.options.language)
62
- var e,t,i,a=r.widget.find(".timepicker .timepicker-hours table"),n=""
63
- if(a.parent().hide(),r.use24hours)for(e=0,t=0;6>t;t+=1){for(n+="<tr>",i=0;4>i;i+=1)n+='<td class="hour">'+F(""+e)+"</td>",e++
64
- n+="</tr>"}else for(e=1,t=0;3>t;t+=1){for(n+="<tr>",i=0;4>i;i+=1)n+='<td class="hour">'+F(""+e)+"</td>",e++
65
- n+="</tr>"}a.html(n)},b=function(){var e,t,i=r.widget.find(".timepicker .timepicker-minutes table"),a="",o=0,n=r.options.minuteStepping
66
- for(i.parent().hide(),1==n&&(n=5),e=0;e<Math.ceil(60/n/4);e++){for(a+="<tr>",t=0;4>t;t+=1)60>o?(a+='<td class="minute">'+F(""+o)+"</td>",o+=n):a+="<td></td>"
67
- a+="</tr>"}i.html(a)},y=function(){var e,t,i=r.widget.find(".timepicker .timepicker-seconds table"),a="",o=0
68
- for(i.parent().hide(),e=0;3>e;e++){for(a+="<tr>",t=0;4>t;t+=1)a+='<td class="second">'+F(""+o)+"</td>",o+=5
69
- a+="</tr>"}i.html(a)},D=function(){if(r.date){var e=r.widget.find(".timepicker span[data-time-component]"),t=r.date.hours(),i="AM"
70
- r.use24hours||(t>=12&&(i="PM"),0===t?t=12:12!=t&&(t%=12),r.widget.find(".timepicker [data-action=togglePeriod]").text(i)),e.filter("[data-time-component=hours]").text(F(t)),e.filter("[data-time-component=minutes]").text(F(r.date.minutes())),e.filter("[data-time-component=seconds]").text(F(r.date.second()))}},M=function(t){t.stopPropagation(),t.preventDefault(),r.unset=!1
71
- var i,a,n,s,d=e(t.target).closest("span, td, th"),c=o(r.date)
72
- if(1===d.length&&!d.is(".disabled"))switch(d[0].nodeName.toLowerCase()){case"th":switch(d[0].className){case"switch":P(1)
73
- break
74
- case"prev":case"next":n=B.modes[r.viewMode].navStep,"prev"===d[0].className&&(n=-1*n),r.viewDate.add(n,B.modes[r.viewMode].navFnc),v()}break
75
- case"span":d.is(".month")?(i=d.parent().find("span").index(d),r.viewDate.month(i)):(a=parseInt(d.text(),10)||0,r.viewDate.year(a)),r.viewMode===r.minViewMode&&(r.date=o({y:r.viewDate.year(),M:r.viewDate.month(),d:r.viewDate.date(),h:r.date.hours(),m:r.date.minutes(),s:r.date.seconds()}),u(c,t.type),O()),P(-1),v()
76
- break
77
- case"td":d.is(".day")&&(s=parseInt(d.text(),10)||1,i=r.viewDate.month(),a=r.viewDate.year(),d.is(".old")?0===i?(i=11,a-=1):i-=1:d.is(".new")&&(11==i?(i=0,a+=1):i+=1),r.date=o({y:a,M:i,d:s,h:r.date.hours(),m:r.date.minutes(),s:r.date.seconds()}),r.viewDate=o({y:a,M:i,d:Math.min(28,s)}),v(),O(),u(c,t.type))}},x={incrementHours:function(){L("add","hours",1)},incrementMinutes:function(){L("add","minutes",r.options.minuteStepping)},incrementSeconds:function(){L("add","seconds",1)},decrementHours:function(){L("subtract","hours",1)},decrementMinutes:function(){L("subtract","minutes",r.options.minuteStepping)},decrementSeconds:function(){L("subtract","seconds",1)},togglePeriod:function(){var e=r.date.hours()
78
- e>=12?e-=12:e+=12,r.date.hours(e)},showPicker:function(){r.widget.find(".timepicker > div:not(.timepicker-picker)").hide(),r.widget.find(".timepicker .timepicker-picker").show()},showHours:function(){r.widget.find(".timepicker .timepicker-picker").hide(),r.widget.find(".timepicker .timepicker-hours").show()},showMinutes:function(){r.widget.find(".timepicker .timepicker-picker").hide(),r.widget.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){r.widget.find(".timepicker .timepicker-picker").hide(),r.widget.find(".timepicker .timepicker-seconds").show()},selectHour:function(t){var i=r.widget.find(".timepicker [data-action=togglePeriod]").text(),a=parseInt(e(t.target).text(),10)
79
- "PM"==i&&(a+=12),r.date.hours(a),x.showPicker.call(r)},selectMinute:function(t){r.date.minutes(parseInt(e(t.target).text(),10)),x.showPicker.call(r)},selectSecond:function(t){r.date.seconds(parseInt(e(t.target).text(),10)),x.showPicker.call(r)}},S=function(t){var i=o(r.date),a=e(t.currentTarget).data("action"),n=x[a].apply(r,arguments)
80
- return T(t),r.date||(r.date=o({y:1970})),O(),D(),u(i,t.type),n},T=function(e){e.stopPropagation(),e.preventDefault()},C=function(t){o.lang(r.options.language)
81
- var i=e(t.target),a=o(r.date),n=o(i.val(),r.format,r.options.useStrict)
82
- n.isValid()&&!N(n)&&U(n)?(h(),r.setValue(n),u(a,t.type),O()):(r.viewDate=a,u(a,t.type),f(n),r.unset=!0)},P=function(e){e&&(r.viewMode=Math.max(r.minViewMode,Math.min(2,r.viewMode+e)))
83
- B.modes[r.viewMode].clsName
84
- r.widget.find(".datepicker > div").hide().filter(".datepicker-"+B.modes[r.viewMode].clsName).show()},V=function(){var t,i,a,o,n
85
- r.widget.on("click",".datepicker *",e.proxy(M,this)),r.widget.on("click","[data-action]",e.proxy(S,this)),r.widget.on("mousedown",e.proxy(T,this)),r.options.pickDate&&r.options.pickTime&&r.widget.on("click.togglePicker",".accordion-toggle",function(s){if(s.stopPropagation(),t=e(this),i=t.closest("ul"),a=i.find(".in"),o=i.find(".collapse:not(.in)"),a&&a.length){if(n=a.data("collapse"),n&&n.date-transitioning)return
86
- a.collapse("hide"),o.collapse("show"),t.find("span").toggleClass(r.options.icons.time+" "+r.options.icons.date),r.element.find(".input-group-addon span").toggleClass(r.options.icons.time+" "+r.options.icons.date)}}),r.isInput?r.element.on({focus:e.proxy(r.show,this),change:e.proxy(C,this),blur:e.proxy(r.hide,this)}):(r.element.on({change:e.proxy(C,this)},"input"),r.component?r.component.on("click",e.proxy(r.show,this)):r.element.on("click",e.proxy(r.show,this)))},q=function(){e(window).on("resize.datetimepicker"+r.id,e.proxy(m,this)),r.isInput||e(document).on("mousedown.datetimepicker"+r.id,e.proxy(r.hide,this))},I=function(){r.widget.off("click",".datepicker *",r.click),r.widget.off("click","[data-action]"),r.widget.off("mousedown",r.stopEvent),r.options.pickDate&&r.options.pickTime&&r.widget.off("click.togglePicker"),r.isInput?r.element.off({focus:r.show,change:r.change}):(r.element.off({change:r.change},"input"),r.component?r.component.off("click",r.show):r.element.off("click",r.show))},H=function(){e(window).off("resize.datetimepicker"+r.id),r.isInput||e(document).off("mousedown.datetimepicker"+r.id)},Y=function(){if(r.element){var t,i=r.element.parents(),a=!1
87
- for(t=0;t<i.length;t++)if("fixed"==e(i[t]).css("position")){a=!0
88
- break}return a}return!1},O=function(){o.lang(r.options.language)
89
- var e=""
90
- r.unset||(e=o(r.date).format(r.format)),p().val(e),r.element.data("date",e),r.options.pickTime||r.hide()},L=function(e,t,i){o.lang(r.options.language)
91
- var a
92
- return"add"==e?(a=o(r.date),23==a.hours()&&a.add(i,t),a.add(i,t)):a=o(r.date).subtract(i,t),N(o(a.subtract(i,t)))||N(a)?void f(a.format(r.format)):("add"==e?r.date.add(i,t):r.date.subtract(i,t),void(r.unset=!1))},N=function(e){return o.lang(r.options.language),e.isAfter(r.options.maxDate)||e.isBefore(r.options.minDate)?!0:r.options.disabledDates===!1?!1:r.options.disabledDates[o(e).format("YYYY-MM-DD")]===!0},U=function(e){return o.lang(r.options.language),r.options.enabledDates===!1?!0:r.options.enabledDates[o(e).format("YYYY-MM-DD")]===!0},j=function(e){var t={},a=0
93
- for(i=0;i<e.length;i++)dDate=o(e[i]),dDate.isValid()&&(t[dDate.format("YYYY-MM-DD")]=!0,a++)
94
- return a>0?t:!1},F=function(e){return e=""+e,e.length>=2?e:"0"+e},W=function(){if(r.options.pickDate&&r.options.pickTime){var e=""
95
- return e='<div class="bootstrap-datetimepicker-widget'+(r.options.sideBySide?" timepicker-sbs":"")+' dropdown-menu" style="z-index:9999 !important;">',e+=r.options.sideBySide?'<div class="row"><div class="col-sm-6 datepicker">'+B.template+'</div><div class="col-sm-6 timepicker">'+E.getTemplate()+"</div></div>":'<ul class="list-unstyled"><li'+(r.options.collapse?' class="collapse in"':"")+'><div class="datepicker">'+B.template+'</div></li><li class="picker-switch accordion-toggle"><a class="btn" style="width:100%"><span class="'+r.options.icons.time+'"></span></a></li><li'+(r.options.collapse?' class="collapse"':"")+'><div class="timepicker">'+E.getTemplate()+"</div></li></ul>",e+="</div>"}return r.options.pickTime?'<div class="bootstrap-datetimepicker-widget dropdown-menu"><div class="timepicker">'+E.getTemplate()+"</div></div>":'<div class="bootstrap-datetimepicker-widget dropdown-menu"><div class="datepicker">'+B.template+"</div></div>"},B={modes:[{clsName:"days",navFnc:"month",navStep:1},{clsName:"months",navFnc:"year",navStep:1},{clsName:"years",navFnc:"year",navStep:10}],headTemplate:'<thead><tr><th class="prev">&lsaquo;</th><th colspan="5" class="switch"></th><th class="next">&rsaquo;</th></tr></thead>',contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>'},E={hourTemplate:'<span data-action="showHours" data-time-component="hours" class="timepicker-hour"></span>',minuteTemplate:'<span data-action="showMinutes" data-time-component="minutes" class="timepicker-minute"></span>',secondTemplate:'<span data-action="showSeconds" data-time-component="seconds" class="timepicker-second"></span>'}
96
- B.template='<div class="datepicker-days"><table class="table-condensed">'+B.headTemplate+'<tbody></tbody></table></div><div class="datepicker-months"><table class="table-condensed">'+B.headTemplate+B.contTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+B.headTemplate+B.contTemplate+"</table></div>",E.getTemplate=function(){return'<div class="timepicker-picker"><table class="table-condensed"><tr><td><a href="#" class="btn" data-action="incrementHours"><span class="'+r.options.icons.up+'"></span></a></td><td class="separator"></td><td>'+(r.options.useMinutes?'<a href="#" class="btn" data-action="incrementMinutes"><span class="'+r.options.icons.up+'"></span></a>':"")+"</td>"+(r.options.useSeconds?'<td class="separator"></td><td><a href="#" class="btn" data-action="incrementSeconds"><span class="'+r.options.icons.up+'"></span></a></td>':"")+(r.use24hours?"":'<td class="separator"></td>')+"</tr><tr><td>"+E.hourTemplate+'</td> <td class="separator">:</td><td>'+(r.options.useMinutes?E.minuteTemplate:'<span class="timepicker-minute">00</span>')+"</td> "+(r.options.useSeconds?'<td class="separator">:</td><td>'+E.secondTemplate+"</td>":"")+(r.use24hours?"":'<td class="separator"></td><td><button type="button" class="btn btn-primary" data-action="togglePeriod"></button></td>')+'</tr><tr><td><a href="#" class="btn" data-action="decrementHours"><span class="'+r.options.icons.down+'"></span></a></td><td class="separator"></td><td>'+(r.options.useMinutes?'<a href="#" class="btn" data-action="decrementMinutes"><span class="'+r.options.icons.down+'"></span></a>':"")+"</td>"+(r.options.useSeconds?'<td class="separator"></td><td><a href="#" class="btn" data-action="decrementSeconds"><span class="'+r.options.icons.down+'"></span></a></td>':"")+(r.use24hours?"":'<td class="separator"></td>')+'</tr></table></div><div class="timepicker-hours" data-action="selectHour"><table class="table-condensed"></table></div><div class="timepicker-minutes" data-action="selectMinute"><table class="table-condensed"></table></div>'+(r.options.useSeconds?'<div class="timepicker-seconds" data-action="selectSecond"><table class="table-condensed"></table></div>':"")},r.destroy=function(){I(),H(),r.widget.remove(),r.element.removeData("DateTimePicker"),r.component&&r.component.removeData("DateTimePicker")},r.show=function(e){if(r.options.useCurrent&&""==p().val())if(1!==r.options.minuteStepping){var t=o(),i=r.options.minuteStepping
97
- t.minutes(Math.round(t.minutes()/i)*i%60).seconds(0),r.setValue(t.format(r.format))}else r.setValue(o().format(r.format))
98
- r.widget.show(),r.height=r.component?r.component.outerHeight():r.element.outerHeight(),m(),r.element.trigger({type:"dp.show",date:o(r.date)}),q(),e&&T(e)},r.disable=function(){var e=r.element.find("input")
99
- e.prop("disabled")||(e.prop("disabled",!0),I())},r.enable=function(){var e=r.element.find("input")
100
- e.prop("disabled")&&(e.prop("disabled",!1),V())},r.hide=function(t){if(!t||!e(t.target).is(r.element.attr("id"))){var i,a,n=r.widget.find(".collapse")
101
- for(i=0;i<n.length;i++)if(a=n.eq(i).data("collapse"),a&&a.date-transitioning)return
102
- r.widget.hide(),r.viewMode=r.startViewMode,P(),r.element.trigger({type:"dp.hide",date:o(r.date)}),H()}},r.setValue=function(e){o.lang(r.options.language),e?r.unset=!1:(r.unset=!0,O()),o.isMoment(e)||(e=o(e,r.format)),e.isValid()?(r.date=e,O(),r.viewDate=o({y:r.date.year(),M:r.date.month()}),v(),D()):f(e)},r.getDate=function(){return r.unset?null:r.date},r.setDate=function(e){var t=o(r.date)
103
- r.setValue(e?e:null),u(t,"function")},r.setDisabledDates=function(e){r.options.disabledDates=j(e),r.viewDate&&h()},r.setEnabledDates=function(e){r.options.enabledDates=j(e),r.viewDate&&h()},r.setMaxDate=function(e){void 0!=e&&(r.options.maxDate=o(e),r.viewDate&&h())},r.setMinDate=function(e){void 0!=e&&(r.options.minDate=o(e),r.viewDate&&h())},c()}
104
- e.fn.datetimepicker=function(t){return this.each(function(){var i=e(this),a=i.data("DateTimePicker")
105
- a||i.data("DateTimePicker",new n(this,t))})}})
1
+ !function(a){"use strict";if("function"==typeof define&&define.amd)define(["jquery","moment"],a);else{if(!jQuery)throw"bootstrap-datetimepicker requires jQuery to be loaded first";if(!moment)throw"bootstrap-datetimepicker requires moment.js to be loaded first";a(jQuery,moment)}}(function(a,b){"use strict";if("undefined"==typeof b)throw new Error("momentjs is required");var c=0,d=b,e=function(b,e){var f,g=a.fn.datetimepicker.defaults,h={time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down"},i=this,j=function(){var f,j,m=!1;if(i.options=a.extend({},g,e),i.options.icons=a.extend({},h,i.options.icons),i.element=a(b),l(),!i.options.pickTime&&!i.options.pickDate)throw new Error("Must choose at least one picker");if(i.id=c++,d.locale(i.options.language),i.date=d(),i.unset=!1,i.isInput=i.element.is("input"),i.component=!1,i.element.hasClass("input-group")&&(i.component=i.element.find(0===i.element.find(".datepickerbutton").size()?'[class^="input-group-"]':".datepickerbutton")),i.format=i.options.format,f=d().localeData(),i.format||(i.format=i.options.pickDate?f.longDateFormat("L"):"",i.options.pickDate&&i.options.pickTime&&(i.format+=" "),i.format+=i.options.pickTime?f.longDateFormat("LT"):"",i.options.useSeconds&&(-1!==f.longDateFormat("LT").indexOf(" A")?i.format=i.format.split(" A")[0]+":ss A":i.format+=":ss")),i.use24hours=i.format.toLowerCase().indexOf("a")<1,i.component&&(m=i.component.find("span")),i.options.pickTime&&m&&m.addClass(i.options.icons.time),i.options.pickDate&&m&&(m.removeClass(i.options.icons.time),m.addClass(i.options.icons.date)),i.options.widgetParent="string"==typeof i.options.widgetParent&&i.options.widgetParent||i.element.parents().filter(function(){return"scroll"===a(this).css("overflow-y")}).get(0)||"body",i.widget=a(P()).appendTo(i.options.widgetParent),i.options.useSeconds&&!i.use24hours&&i.widget.width(300),i.minViewMode=i.options.minViewMode||0,"string"==typeof i.minViewMode)switch(i.minViewMode){case"months":i.minViewMode=1;break;case"years":i.minViewMode=2;break;default:i.minViewMode=0}if(i.viewMode=i.options.viewMode||0,"string"==typeof i.viewMode)switch(i.viewMode){case"months":i.viewMode=1;break;case"years":i.viewMode=2;break;default:i.viewMode=0}i.options.disabledDates=N(i.options.disabledDates),i.options.enabledDates=N(i.options.enabledDates),i.startViewMode=i.viewMode,i.setMinDate(i.options.minDate),i.setMaxDate(i.options.maxDate),q(),r(),t(),u(),v(),p(),D(),E(),""!==i.options.defaultDate&&""===k().val()&&i.setValue(i.options.defaultDate),1!==i.options.minuteStepping&&(j=i.options.minuteStepping,i.date.minutes(Math.round(i.date.minutes()/j)*j%60).seconds(0))},k=function(){var a;if(i.isInput)return i.element;if(a=i.element.find(".datepickerinput"),0===a.size())a=i.element.find("input");else if(!a.is("input"))throw new Error('CSS class "datepickerinput" cannot be applied to non input element');return a},l=function(){var a;a=i.element.is("input")?i.element.data():i.element.find("input").data(),void 0!==a.dateFormat&&(i.options.format=a.dateFormat),void 0!==a.datePickdate&&(i.options.pickDate=a.datePickdate),void 0!==a.datePicktime&&(i.options.pickTime=a.datePicktime),void 0!==a.dateUseminutes&&(i.options.useMinutes=a.dateUseminutes),void 0!==a.dateUseseconds&&(i.options.useSeconds=a.dateUseseconds),void 0!==a.dateUsecurrent&&(i.options.useCurrent=a.dateUsecurrent),void 0!==a.dateMinutestepping&&(i.options.minuteStepping=a.dateMinutestepping),void 0!==a.dateMindate&&(i.options.minDate=a.dateMindate),void 0!==a.dateMaxdate&&(i.options.maxDate=a.dateMaxdate),void 0!==a.dateShowtoday&&(i.options.showToday=a.dateShowtoday),void 0!==a.dateCollapse&&(i.options.collapse=a.dateCollapse),void 0!==a.dateLanguage&&(i.options.language=a.dateLanguage),void 0!==a.dateDefaultdate&&(i.options.defaultDate=a.dateDefaultdate),void 0!==a.dateDisableddates&&(i.options.disabledDates=a.dateDisableddates),void 0!==a.dateEnableddates&&(i.options.enabledDates=a.dateEnableddates),void 0!==a.dateIcons&&(i.options.icons=a.dateIcons),void 0!==a.dateUsestrict&&(i.options.useStrict=a.dateUsestrict),void 0!==a.dateDirection&&(i.options.direction=a.dateDirection),void 0!==a.dateSidebyside&&(i.options.sideBySide=a.dateSidebyside)},m=function(){var b,c="absolute",d=i.component?i.component.offset():i.element.offset(),e=a(window);i.width=i.component?i.component.outerWidth():i.element.outerWidth(),d.top=d.top+i.element.outerHeight(),"up"===i.options.direction?b="top":"bottom"===i.options.direction?b="bottom":"auto"===i.options.direction&&(b=d.top+i.widget.height()>e.height()+e.scrollTop()&&i.widget.height()+i.element.outerHeight()<d.top?"top":"bottom"),"top"===b?(d.top-=i.widget.height()+i.element.outerHeight()+15,i.widget.addClass("top").removeClass("bottom")):(d.top+=1,i.widget.addClass("bottom").removeClass("top")),void 0!==i.options.width&&i.widget.width(i.options.width),"left"===i.options.orientation&&(i.widget.addClass("left-oriented"),d.left=d.left-i.widget.width()+20),I()&&(c="fixed",d.top-=e.scrollTop(),d.left-=e.scrollLeft()),e.width()<d.left+i.widget.outerWidth()?(d.right=e.width()-d.left-i.width,d.left="auto",i.widget.addClass("pull-right")):(d.right="auto",i.widget.removeClass("pull-right")),i.widget.css({position:c,top:d.top,left:d.left,right:d.right})},n=function(a,b){d(i.date).isSame(d(a))||(i.element.trigger({type:"dp.change",date:d(i.date),oldDate:d(a)}),"change"!==b&&i.element.change())},o=function(a){i.element.trigger({type:"dp.error",date:d(a,i.format,i.options.useStrict)})},p=function(a){d.locale(i.options.language);var b=a;b||(b=k().val(),b&&(i.date=d(b,i.format,i.options.useStrict)),i.date||(i.date=d())),i.viewDate=d(i.date).startOf("month"),s(),w()},q=function(){d.locale(i.options.language);var b,c=a("<tr>"),e=d.weekdaysMin();if(0===d().localeData()._week.dow)for(b=0;7>b;b++)c.append('<th class="dow">'+e[b]+"</th>");else for(b=1;8>b;b++)c.append(7===b?'<th class="dow">'+e[0]+"</th>":'<th class="dow">'+e[b]+"</th>");i.widget.find(".datepicker-days thead").append(c)},r=function(){d.locale(i.options.language);var a,b="",c=d.monthsShort();for(a=0;12>a;a++)b+='<span class="month">'+c[a]+"</span>";i.widget.find(".datepicker-months td").append(b)},s=function(){if(i.options.pickDate){d.locale(i.options.language);var b,c,e,f,g,h,j,k,l,m=i.viewDate.year(),n=i.viewDate.month(),o=i.options.minDate.year(),p=i.options.minDate.month(),q=i.options.maxDate.year(),r=i.options.maxDate.month(),s=[],t=d.months();for(i.widget.find(".datepicker-days").find(".disabled").removeClass("disabled"),i.widget.find(".datepicker-months").find(".disabled").removeClass("disabled"),i.widget.find(".datepicker-years").find(".disabled").removeClass("disabled"),i.widget.find(".datepicker-days th:eq(1)").text(t[n]+" "+m),c=d(i.viewDate,i.format,i.options.useStrict).subtract(1,"months"),j=c.daysInMonth(),c.date(j).startOf("week"),(m===o&&p>=n||o>m)&&i.widget.find(".datepicker-days th:eq(0)").addClass("disabled"),(m===q&&n>=r||m>q)&&i.widget.find(".datepicker-days th:eq(2)").addClass("disabled"),e=d(c).add(42,"d");c.isBefore(e);){if(c.weekday()===d().startOf("week").weekday()&&(f=a("<tr>"),s.push(f)),g="",c.year()<m||c.year()===m&&c.month()<n?g+=" old":(c.year()>m||c.year()===m&&c.month()>n)&&(g+=" new"),c.isSame(d({y:i.date.year(),M:i.date.month(),d:i.date.date()}))&&(g+=" active"),(L(c,"day")||!M(c))&&(g+=" disabled"),i.options.showToday===!0&&c.isSame(d(),"day")&&(g+=" today"),i.options.daysOfWeekDisabled)for(h=0;h<i.options.daysOfWeekDisabled.length;h++)if(c.day()===i.options.daysOfWeekDisabled[h]){g+=" disabled";break}f.append('<td class="day'+g+'">'+c.date()+"</td>"),b=c.date(),c.add(1,"d"),b===c.date()&&c.add(1,"d")}for(i.widget.find(".datepicker-days tbody").empty().append(s),l=i.date.year(),t=i.widget.find(".datepicker-months").find("th:eq(1)").text(m).end().find("span").removeClass("active"),l===m&&t.eq(i.date.month()).addClass("active"),o>l-1&&i.widget.find(".datepicker-months th:eq(0)").addClass("disabled"),l+1>q&&i.widget.find(".datepicker-months th:eq(2)").addClass("disabled"),h=0;12>h;h++)m===o&&p>h||o>m?a(t[h]).addClass("disabled"):(m===q&&h>r||m>q)&&a(t[h]).addClass("disabled");for(s="",m=10*parseInt(m/10,10),k=i.widget.find(".datepicker-years").find("th:eq(1)").text(m+"-"+(m+9)).end().find("td"),i.widget.find(".datepicker-years").find("th").removeClass("disabled"),o>m&&i.widget.find(".datepicker-years").find("th:eq(0)").addClass("disabled"),m+9>q&&i.widget.find(".datepicker-years").find("th:eq(2)").addClass("disabled"),m-=1,h=-1;11>h;h++)s+='<span class="year'+(-1===h||10===h?" old":"")+(l===m?" active":"")+(o>m||m>q?" disabled":"")+'">'+m+"</span>",m+=1;k.html(s)}},t=function(){d.locale(i.options.language);var a,b,c,e=i.widget.find(".timepicker .timepicker-hours table"),f="";if(e.parent().hide(),i.use24hours)for(a=0,b=0;6>b;b+=1){for(f+="<tr>",c=0;4>c;c+=1)f+='<td class="hour">'+O(a.toString())+"</td>",a++;f+="</tr>"}else for(a=1,b=0;3>b;b+=1){for(f+="<tr>",c=0;4>c;c+=1)f+='<td class="hour">'+O(a.toString())+"</td>",a++;f+="</tr>"}e.html(f)},u=function(){var a,b,c=i.widget.find(".timepicker .timepicker-minutes table"),d="",e=0,f=i.options.minuteStepping;for(c.parent().hide(),1===f&&(f=5),a=0;a<Math.ceil(60/f/4);a++){for(d+="<tr>",b=0;4>b;b+=1)60>e?(d+='<td class="minute">'+O(e.toString())+"</td>",e+=f):d+="<td></td>";d+="</tr>"}c.html(d)},v=function(){var a,b,c=i.widget.find(".timepicker .timepicker-seconds table"),d="",e=0;for(c.parent().hide(),a=0;3>a;a++){for(d+="<tr>",b=0;4>b;b+=1)d+='<td class="second">'+O(e.toString())+"</td>",e+=5;d+="</tr>"}c.html(d)},w=function(){if(i.date){var a=i.widget.find(".timepicker span[data-time-component]"),b=i.date.hours(),c=i.date.format("A");i.use24hours||(0===b?b=12:12!==b&&(b%=12),i.widget.find(".timepicker [data-action=togglePeriod]").text(c)),a.filter("[data-time-component=hours]").text(O(b)),a.filter("[data-time-component=minutes]").text(O(i.date.minutes())),a.filter("[data-time-component=seconds]").text(O(i.date.second()))}},x=function(b){b.stopPropagation(),b.preventDefault(),i.unset=!1;var c,e,f,g,h=a(b.target).closest("span, td, th"),j=d(i.date);if(1===h.length&&!h.is(".disabled"))switch(h[0].nodeName.toLowerCase()){case"th":switch(h[0].className){case"switch":D(1);break;case"prev":case"next":f=Q.modes[i.viewMode].navStep,"prev"===h[0].className&&(f=-1*f),i.viewDate.add(f,Q.modes[i.viewMode].navFnc),s()}break;case"span":h.is(".month")?(c=h.parent().find("span").index(h),i.viewDate.month(c)):(e=parseInt(h.text(),10)||0,i.viewDate.year(e)),i.viewMode===i.minViewMode&&(i.date=d({y:i.viewDate.year(),M:i.viewDate.month(),d:i.viewDate.date(),h:i.date.hours(),m:i.date.minutes(),s:i.date.seconds()}),n(j,b.type),J()),D(-1),s();break;case"td":h.is(".day")&&(g=parseInt(h.text(),10)||1,c=i.viewDate.month(),e=i.viewDate.year(),h.is(".old")?0===c?(c=11,e-=1):c-=1:h.is(".new")&&(11===c?(c=0,e+=1):c+=1),i.date=d({y:e,M:c,d:g,h:i.date.hours(),m:i.date.minutes(),s:i.date.seconds()}),i.viewDate=d({y:e,M:c,d:Math.min(28,g)}),s(),J(),n(j,b.type))}},y={incrementHours:function(){K("add","hours",1)},incrementMinutes:function(){K("add","minutes",i.options.minuteStepping)},incrementSeconds:function(){K("add","seconds",1)},decrementHours:function(){K("subtract","hours",1)},decrementMinutes:function(){K("subtract","minutes",i.options.minuteStepping)},decrementSeconds:function(){K("subtract","seconds",1)},togglePeriod:function(){var a=i.date.hours();a>=12?a-=12:a+=12,i.date.hours(a)},showPicker:function(){i.widget.find(".timepicker > div:not(.timepicker-picker)").hide(),i.widget.find(".timepicker .timepicker-picker").show()},showHours:function(){i.widget.find(".timepicker .timepicker-picker").hide(),i.widget.find(".timepicker .timepicker-hours").show()},showMinutes:function(){i.widget.find(".timepicker .timepicker-picker").hide(),i.widget.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){i.widget.find(".timepicker .timepicker-picker").hide(),i.widget.find(".timepicker .timepicker-seconds").show()},selectHour:function(b){var c=parseInt(a(b.target).text(),10);i.date.hours()>12&&(c+=12),i.date.hours(c),y.showPicker.call(i)},selectMinute:function(b){i.date.minutes(parseInt(a(b.target).text(),10)),y.showPicker.call(i)},selectSecond:function(b){i.date.seconds(parseInt(a(b.target).text(),10)),y.showPicker.call(i)}},z=function(b){var c=d(i.date),e=a(b.currentTarget).data("action"),f=y[e].apply(i,arguments);return A(b),i.date||(i.date=d({y:1970})),J(),w(),n(c,b.type),f},A=function(a){a.stopPropagation(),a.preventDefault()},B=function(a){27===a.keyCode&&i.hide()},C=function(b){d.locale(i.options.language);var c=a(b.target),e=d(i.date),f=d(c.val(),i.format,i.options.useStrict);f.isValid()&&!L(f)&&M(f)?(p(),i.setValue(f),n(e,b.type),J()):(i.viewDate=e,i.unset=!0,n(e,b.type),o(f))},D=function(a){a&&(i.viewMode=Math.max(i.minViewMode,Math.min(2,i.viewMode+a))),i.widget.find(".datepicker > div").hide().filter(".datepicker-"+Q.modes[i.viewMode].clsName).show()},E=function(){var b,c,d,e,f;i.widget.on("click",".datepicker *",a.proxy(x,this)),i.widget.on("click","[data-action]",a.proxy(z,this)),i.widget.on("mousedown",a.proxy(A,this)),i.element.on("keydown",a.proxy(B,this)),i.options.pickDate&&i.options.pickTime&&i.widget.on("click.togglePicker",".accordion-toggle",function(g){if(g.stopPropagation(),b=a(this),c=b.closest("ul"),d=c.find(".in"),e=c.find(".collapse:not(.in)"),d&&d.length){if(f=d.data("collapse"),f&&f.transitioning)return;d.collapse("hide"),e.collapse("show"),b.find("span").toggleClass(i.options.icons.time+" "+i.options.icons.date),i.element.find('[class^="input-group-"] span').toggleClass(i.options.icons.time+" "+i.options.icons.date)}}),i.isInput?i.element.on({focus:a.proxy(i.show,this),change:a.proxy(C,this),blur:a.proxy(i.hide,this)}):(i.element.on({change:a.proxy(C,this)},"input"),i.component?i.component.on("click",a.proxy(i.show,this)):i.element.on("click",a.proxy(i.show,this)))},F=function(){a(window).on("resize.datetimepicker"+i.id,a.proxy(m,this)),i.isInput||a(document).on("mousedown.datetimepicker"+i.id,a.proxy(i.hide,this))},G=function(){i.widget.off("click",".datepicker *",i.click),i.widget.off("click","[data-action]"),i.widget.off("mousedown",i.stopEvent),i.options.pickDate&&i.options.pickTime&&i.widget.off("click.togglePicker"),i.isInput?i.element.off({focus:i.show,change:i.change}):(i.element.off({change:i.change},"input"),i.component?i.component.off("click",i.show):i.element.off("click",i.show))},H=function(){a(window).off("resize.datetimepicker"+i.id),i.isInput||a(document).off("mousedown.datetimepicker"+i.id)},I=function(){if(i.element){var b,c=i.element.parents(),d=!1;for(b=0;b<c.length;b++)if("fixed"===a(c[b]).css("position")){d=!0;break}return d}return!1},J=function(){d.locale(i.options.language);var a="";i.unset||(a=d(i.date).format(i.format)),k().val(a),i.element.data("date",a),i.options.pickTime||i.hide()},K=function(a,b,c){d.locale(i.options.language);var e;return"add"===a?(e=d(i.date),23===e.hours()&&e.add(c,b),e.add(c,b)):e=d(i.date).subtract(c,b),L(d(e.subtract(c,b)))||L(e)?void o(e.format(i.format)):("add"===a?i.date.add(c,b):i.date.subtract(c,b),void(i.unset=!1))},L=function(a,b){d.locale(i.options.language);var c=d(i.options.maxDate,i.format,i.options.useStrict),e=d(i.options.minDate,i.format,i.options.useStrict);return b&&(c=c.endOf(b),e=e.startOf(b)),a.isAfter(c)||a.isBefore(e)?!0:i.options.disabledDates===!1?!1:i.options.disabledDates[a.format("YYYY-MM-DD")]===!0},M=function(a){return d.locale(i.options.language),i.options.enabledDates===!1?!0:i.options.enabledDates[a.format("YYYY-MM-DD")]===!0},N=function(a){var b,c={},e=0;for(b=0;b<a.length;b++)f=d.isMoment(a[b])||a[b]instanceof Date?d(a[b]):d(a[b],i.format,i.options.useStrict),f.isValid()&&(c[f.format("YYYY-MM-DD")]=!0,e++);return e>0?c:!1},O=function(a){return a=a.toString(),a.length>=2?a:"0"+a},P=function(){if(i.options.pickDate&&i.options.pickTime){var a="";return a='<div class="bootstrap-datetimepicker-widget'+(i.options.sideBySide?" timepicker-sbs":"")+' dropdown-menu" style="z-index:9999 !important;">',a+=i.options.sideBySide?'<div class="row"><div class="col-sm-6 datepicker">'+Q.template+'</div><div class="col-sm-6 timepicker">'+R.getTemplate()+"</div></div>":'<ul class="list-unstyled"><li'+(i.options.collapse?' class="collapse in"':"")+'><div class="datepicker">'+Q.template+'</div></li><li class="picker-switch accordion-toggle"><a class="btn" style="width:100%"><span class="'+i.options.icons.time+'"></span></a></li><li'+(i.options.collapse?' class="collapse"':"")+'><div class="timepicker">'+R.getTemplate()+"</div></li></ul>",a+="</div>"}return i.options.pickTime?'<div class="bootstrap-datetimepicker-widget dropdown-menu"><div class="timepicker">'+R.getTemplate()+"</div></div>":'<div class="bootstrap-datetimepicker-widget dropdown-menu"><div class="datepicker">'+Q.template+"</div></div>"},Q={modes:[{clsName:"days",navFnc:"month",navStep:1},{clsName:"months",navFnc:"year",navStep:1},{clsName:"years",navFnc:"year",navStep:10}],headTemplate:'<thead><tr><th class="prev">&lsaquo;</th><th colspan="5" class="switch"></th><th class="next">&rsaquo;</th></tr></thead>',contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>'},R={hourTemplate:'<span data-action="showHours" data-time-component="hours" class="timepicker-hour"></span>',minuteTemplate:'<span data-action="showMinutes" data-time-component="minutes" class="timepicker-minute"></span>',secondTemplate:'<span data-action="showSeconds" data-time-component="seconds" class="timepicker-second"></span>'};Q.template='<div class="datepicker-days"><table class="table-condensed">'+Q.headTemplate+'<tbody></tbody></table></div><div class="datepicker-months"><table class="table-condensed">'+Q.headTemplate+Q.contTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+Q.headTemplate+Q.contTemplate+"</table></div>",R.getTemplate=function(){return'<div class="timepicker-picker"><table class="table-condensed"><tr><td><a href="#" class="btn" data-action="incrementHours"><span class="'+i.options.icons.up+'"></span></a></td><td class="separator"></td><td>'+(i.options.useMinutes?'<a href="#" class="btn" data-action="incrementMinutes"><span class="'+i.options.icons.up+'"></span></a>':"")+"</td>"+(i.options.useSeconds?'<td class="separator"></td><td><a href="#" class="btn" data-action="incrementSeconds"><span class="'+i.options.icons.up+'"></span></a></td>':"")+(i.use24hours?"":'<td class="separator"></td>')+"</tr><tr><td>"+R.hourTemplate+'</td> <td class="separator">:</td><td>'+(i.options.useMinutes?R.minuteTemplate:'<span class="timepicker-minute">00</span>')+"</td> "+(i.options.useSeconds?'<td class="separator">:</td><td>'+R.secondTemplate+"</td>":"")+(i.use24hours?"":'<td class="separator"></td><td><button type="button" class="btn btn-primary" data-action="togglePeriod"></button></td>')+'</tr><tr><td><a href="#" class="btn" data-action="decrementHours"><span class="'+i.options.icons.down+'"></span></a></td><td class="separator"></td><td>'+(i.options.useMinutes?'<a href="#" class="btn" data-action="decrementMinutes"><span class="'+i.options.icons.down+'"></span></a>':"")+"</td>"+(i.options.useSeconds?'<td class="separator"></td><td><a href="#" class="btn" data-action="decrementSeconds"><span class="'+i.options.icons.down+'"></span></a></td>':"")+(i.use24hours?"":'<td class="separator"></td>')+'</tr></table></div><div class="timepicker-hours" data-action="selectHour"><table class="table-condensed"></table></div><div class="timepicker-minutes" data-action="selectMinute"><table class="table-condensed"></table></div>'+(i.options.useSeconds?'<div class="timepicker-seconds" data-action="selectSecond"><table class="table-condensed"></table></div>':"")},i.destroy=function(){G(),H(),i.widget.remove(),i.element.removeData("DateTimePicker"),i.component&&i.component.removeData("DateTimePicker")},i.show=function(a){if(i.options.useCurrent&&""===k().val()){if(1!==i.options.minuteStepping){var b=d(),c=i.options.minuteStepping;b.minutes(Math.round(b.minutes()/c)*c%60).seconds(0),i.setValue(b.format(i.format))}else i.setValue(d().format(i.format));n("",a.type)}i.widget.hasClass("picker-open")?(i.widget.hide(),i.widget.removeClass("picker-open")):(i.widget.show(),i.widget.addClass("picker-open")),i.height=i.component?i.component.outerHeight():i.element.outerHeight(),m(),i.element.trigger({type:"dp.show",date:d(i.date)}),F(),a&&A(a)},i.disable=function(){var a=i.element.find("input");a.prop("disabled")||(a.prop("disabled",!0),G())},i.enable=function(){var a=i.element.find("input");a.prop("disabled")&&(a.prop("disabled",!1),E())},i.hide=function(b){if(!b||!a(b.target).is("#"+i.element.attr("id"))){var c,e,f=i.widget.find(".collapse");for(c=0;c<f.length;c++)if(e=f.eq(c).data("collapse"),e&&e.transitioning)return;i.widget.hide(),i.widget.removeClass("picker-open"),i.viewMode=i.startViewMode,D(),i.element.trigger({type:"dp.hide",date:d(i.date)}),H()}},i.setValue=function(a){d.locale(i.options.language),a?i.unset=!1:(i.unset=!0,J()),d.isMoment(a)||(a=a instanceof Date?d(a):d(a,i.format,i.options.useStrict)),a.isValid()?(i.date=a,J(),i.viewDate=d({y:i.date.year(),M:i.date.month()}),s(),w()):o(a)},i.getDate=function(){return i.unset?null:d(i.date)},i.setDate=function(a){var b=d(i.date);i.setValue(a?a:null),n(b,"function")},i.setDisabledDates=function(a){i.options.disabledDates=N(a),i.viewDate&&p()},i.setEnabledDates=function(a){i.options.enabledDates=N(a),i.viewDate&&p()},i.setMaxDate=function(a){void 0!==a&&(i.options.maxDate=d.isMoment(a)||a instanceof Date?d(a):d(a,i.format,i.options.useStrict),i.viewDate&&p())},i.setMinDate=function(a){void 0!==a&&(i.options.minDate=d.isMoment(a)||a instanceof Date?d(a):d(a,i.format,i.options.useStrict),i.viewDate&&p())},j()};a.fn.datetimepicker=function(b){return this.each(function(){var c=a(this),d=c.data("DateTimePicker");d||c.data("DateTimePicker",new e(this,b))})},a.fn.datetimepicker.defaults={pickDate:!0,pickTime:!0,useMinutes:!0,useSeconds:!1,useCurrent:!0,minuteStepping:1,minDate:d({y:1900}),maxDate:d().add(100,"y"),showToday:!0,collapse:!0,language:"en",defaultDate:"",disabledDates:!1,enabledDates:!1,icons:{},useStrict:!1,direction:"auto",sideBySide:!1,daysOfWeekDisabled:!1,widgetParent:!1}});
@@ -1,5 +1,6 @@
1
1
  /*!
2
2
  * Datetimepicker for Bootstrap v3
3
+ //! version : 3.0.2
3
4
  * https://github.com/Eonasdan/bootstrap-datetimepicker/
4
5
  */
5
6
  .bootstrap-datetimepicker-widget {
@@ -124,7 +125,7 @@
124
125
  }
125
126
  .bootstrap-datetimepicker-widget td.old,
126
127
  .bootstrap-datetimepicker-widget td.new {
127
- color: #999999;
128
+ color: #777777;
128
129
  }
129
130
  .bootstrap-datetimepicker-widget td.today {
130
131
  position: relative;
@@ -151,7 +152,7 @@
151
152
  .bootstrap-datetimepicker-widget td.disabled,
152
153
  .bootstrap-datetimepicker-widget td.disabled:hover {
153
154
  background: none;
154
- color: #999999;
155
+ color: #777777;
155
156
  cursor: not-allowed;
156
157
  }
157
158
  .bootstrap-datetimepicker-widget td span {
@@ -173,12 +174,12 @@
173
174
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
174
175
  }
175
176
  .bootstrap-datetimepicker-widget td span.old {
176
- color: #999999;
177
+ color: #777777;
177
178
  }
178
179
  .bootstrap-datetimepicker-widget td span.disabled,
179
180
  .bootstrap-datetimepicker-widget td span.disabled:hover {
180
181
  background: none;
181
- color: #999999;
182
+ color: #777777;
182
183
  cursor: not-allowed;
183
184
  }
184
185
  .bootstrap-datetimepicker-widget th {
@@ -196,7 +197,7 @@
196
197
  .bootstrap-datetimepicker-widget th.disabled,
197
198
  .bootstrap-datetimepicker-widget th.disabled:hover {
198
199
  background: none;
199
- color: #999999;
200
+ color: #777777;
200
201
  cursor: not-allowed;
201
202
  }
202
203
  .bootstrap-datetimepicker-widget thead tr:first-child th {
@@ -1,4 +1,5 @@
1
1
  /*!
2
2
  * Datetimepicker for Bootstrap v3
3
+ //! version : 3.0.2
3
4
  * https://github.com/Eonasdan/bootstrap-datetimepicker/
4
- */.bootstrap-datetimepicker-widget{top:0;left:0;width:250px;padding:4px;margin-top:1px;z-index:99999 !important;border-radius:4px}.bootstrap-datetimepicker-widget.timepicker-sbs{width:600px}.bootstrap-datetimepicker-widget.bottom:before{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-bottom-color:rgba(0,0,0,0.2);position:absolute;top:-7px;left:7px}.bootstrap-datetimepicker-widget.bottom:after{content:'';display:inline-block;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff;position:absolute;top:-6px;left:8px}.bootstrap-datetimepicker-widget.top:before{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #ccc;border-top-color:rgba(0,0,0,0.2);position:absolute;bottom:-7px;left:6px}.bootstrap-datetimepicker-widget.top:after{content:'';display:inline-block;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #fff;position:absolute;bottom:-6px;left:7px}.bootstrap-datetimepicker-widget .dow{width:14.2857%}.bootstrap-datetimepicker-widget.pull-right:before{left:auto;right:6px}.bootstrap-datetimepicker-widget.pull-right:after{left:auto;right:7px}.bootstrap-datetimepicker-widget>ul{list-style-type:none;margin:0}.bootstrap-datetimepicker-widget a[data-action]{padding:6px 0}.bootstrap-datetimepicker-widget .timepicker-hour,.bootstrap-datetimepicker-widget .timepicker-minute,.bootstrap-datetimepicker-widget .timepicker-second{width:54px;font-weight:bold;font-size:1.2em;margin:0}.bootstrap-datetimepicker-widget button[data-action]{padding:6px}.bootstrap-datetimepicker-widget table[data-hour-format="12"] .separator{width:4px;padding:0;margin:0}.bootstrap-datetimepicker-widget .datepicker>div{display:none}.bootstrap-datetimepicker-widget .picker-switch{text-align:center}.bootstrap-datetimepicker-widget table{width:100%;margin:0}.bootstrap-datetimepicker-widget td,.bootstrap-datetimepicker-widget th{text-align:center;border-radius:4px}.bootstrap-datetimepicker-widget td{height:54px;line-height:54px;width:54px}.bootstrap-datetimepicker-widget td.day{height:20px;line-height:20px;width:20px}.bootstrap-datetimepicker-widget td.day:hover,.bootstrap-datetimepicker-widget td.hour:hover,.bootstrap-datetimepicker-widget td.minute:hover,.bootstrap-datetimepicker-widget td.second:hover{background:#eee;cursor:pointer}.bootstrap-datetimepicker-widget td.old,.bootstrap-datetimepicker-widget td.new{color:#999}.bootstrap-datetimepicker-widget td.today{position:relative}.bootstrap-datetimepicker-widget td.today:before{content:'';display:inline-block;border-left:7px solid transparent;border-bottom:7px solid #428bca;border-top-color:rgba(0,0,0,0.2);position:absolute;bottom:4px;right:4px}.bootstrap-datetimepicker-widget td.active,.bootstrap-datetimepicker-widget td.active:hover{background-color:#428bca;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25)}.bootstrap-datetimepicker-widget td.active.today:before{border-bottom-color:#fff}.bootstrap-datetimepicker-widget td.disabled,.bootstrap-datetimepicker-widget td.disabled:hover{background:none;color:#999;cursor:not-allowed}.bootstrap-datetimepicker-widget td span{display:block;width:54px;height:54px;line-height:54px;float:left;margin:2px 1.5px;cursor:pointer;border-radius:4px}.bootstrap-datetimepicker-widget td span:hover{background:#eee}.bootstrap-datetimepicker-widget td span.active{background-color:#428bca;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25)}.bootstrap-datetimepicker-widget td span.old{color:#999}.bootstrap-datetimepicker-widget td span.disabled,.bootstrap-datetimepicker-widget td span.disabled:hover{background:none;color:#999;cursor:not-allowed}.bootstrap-datetimepicker-widget th{height:20px;line-height:20px;width:20px}.bootstrap-datetimepicker-widget th.switch{width:145px}.bootstrap-datetimepicker-widget th.next,.bootstrap-datetimepicker-widget th.prev{font-size:21px}.bootstrap-datetimepicker-widget th.disabled,.bootstrap-datetimepicker-widget th.disabled:hover{background:none;color:#999;cursor:not-allowed}.bootstrap-datetimepicker-widget thead tr:first-child th{cursor:pointer}.bootstrap-datetimepicker-widget thead tr:first-child th:hover{background:#eee}.input-group.date .input-group-addon span{display:block;cursor:pointer;width:16px;height:16px}.bootstrap-datetimepicker-widget.left-oriented:before{left:auto;right:6px}.bootstrap-datetimepicker-widget.left-oriented:after{left:auto;right:7px}.bootstrap-datetimepicker-widget ul.list-unstyled li div.timepicker div.timepicker-picker table.table-condensed tbody>tr>td{padding:0 !important}@media screen and (max-width:767px){.bootstrap-datetimepicker-widget.timepicker-sbs{width:283px}}
5
+ */.bootstrap-datetimepicker-widget{top:0;left:0;width:250px;padding:4px;margin-top:1px;z-index:99999!important;border-radius:4px}.bootstrap-datetimepicker-widget.timepicker-sbs{width:600px}.bootstrap-datetimepicker-widget.bottom:before{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-bottom-color:rgba(0,0,0,.2);position:absolute;top:-7px;left:7px}.bootstrap-datetimepicker-widget.bottom:after{content:'';display:inline-block;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff;position:absolute;top:-6px;left:8px}.bootstrap-datetimepicker-widget.top:before{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #ccc;border-top-color:rgba(0,0,0,.2);position:absolute;bottom:-7px;left:6px}.bootstrap-datetimepicker-widget.top:after{content:'';display:inline-block;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #fff;position:absolute;bottom:-6px;left:7px}.bootstrap-datetimepicker-widget .dow{width:14.2857%}.bootstrap-datetimepicker-widget.pull-right:before{left:auto;right:6px}.bootstrap-datetimepicker-widget.pull-right:after{left:auto;right:7px}.bootstrap-datetimepicker-widget>ul{list-style-type:none;margin:0}.bootstrap-datetimepicker-widget a[data-action]{padding:6px 0}.bootstrap-datetimepicker-widget .timepicker-hour,.bootstrap-datetimepicker-widget .timepicker-minute,.bootstrap-datetimepicker-widget .timepicker-second{width:54px;font-weight:700;font-size:1.2em;margin:0}.bootstrap-datetimepicker-widget button[data-action]{padding:6px}.bootstrap-datetimepicker-widget table[data-hour-format="12"] .separator{width:4px;padding:0;margin:0}.bootstrap-datetimepicker-widget .datepicker>div{display:none}.bootstrap-datetimepicker-widget .picker-switch{text-align:center}.bootstrap-datetimepicker-widget table{width:100%;margin:0}.bootstrap-datetimepicker-widget td,.bootstrap-datetimepicker-widget th{text-align:center;border-radius:4px}.bootstrap-datetimepicker-widget td{height:54px;line-height:54px;width:54px}.bootstrap-datetimepicker-widget td.day{height:20px;line-height:20px;width:20px}.bootstrap-datetimepicker-widget td.day:hover,.bootstrap-datetimepicker-widget td.hour:hover,.bootstrap-datetimepicker-widget td.minute:hover,.bootstrap-datetimepicker-widget td.second:hover{background:#eee;cursor:pointer}.bootstrap-datetimepicker-widget td.old,.bootstrap-datetimepicker-widget td.new{color:#777}.bootstrap-datetimepicker-widget td.today{position:relative}.bootstrap-datetimepicker-widget td.today:before{content:'';display:inline-block;border-left:7px solid transparent;border-bottom:7px solid #428bca;border-top-color:rgba(0,0,0,.2);position:absolute;bottom:4px;right:4px}.bootstrap-datetimepicker-widget td.active,.bootstrap-datetimepicker-widget td.active:hover{background-color:#428bca;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.bootstrap-datetimepicker-widget td.active.today:before{border-bottom-color:#fff}.bootstrap-datetimepicker-widget td.disabled,.bootstrap-datetimepicker-widget td.disabled:hover{background:0 0;color:#777;cursor:not-allowed}.bootstrap-datetimepicker-widget td span{display:block;width:54px;height:54px;line-height:54px;float:left;margin:2px 1.5px;cursor:pointer;border-radius:4px}.bootstrap-datetimepicker-widget td span:hover{background:#eee}.bootstrap-datetimepicker-widget td span.active{background-color:#428bca;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.bootstrap-datetimepicker-widget td span.old{color:#777}.bootstrap-datetimepicker-widget td span.disabled,.bootstrap-datetimepicker-widget td span.disabled:hover{background:0 0;color:#777;cursor:not-allowed}.bootstrap-datetimepicker-widget th{height:20px;line-height:20px;width:20px}.bootstrap-datetimepicker-widget th.switch{width:145px}.bootstrap-datetimepicker-widget th.next,.bootstrap-datetimepicker-widget th.prev{font-size:21px}.bootstrap-datetimepicker-widget th.disabled,.bootstrap-datetimepicker-widget th.disabled:hover{background:0 0;color:#777;cursor:not-allowed}.bootstrap-datetimepicker-widget thead tr:first-child th{cursor:pointer}.bootstrap-datetimepicker-widget thead tr:first-child th:hover{background:#eee}.input-group.date .input-group-addon span{display:block;cursor:pointer;width:16px;height:16px}.bootstrap-datetimepicker-widget.left-oriented:before{left:auto;right:6px}.bootstrap-datetimepicker-widget.left-oriented:after{left:auto;right:7px}.bootstrap-datetimepicker-widget ul.list-unstyled li div.timepicker div.timepicker-picker table.table-condensed tbody>tr>td{padding:0!important}@media screen and (max-width:767px){.bootstrap-datetimepicker-widget.timepicker-sbs{width:283px}}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap3-datetimepicker-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.2
4
+ version: 3.0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trevor Strieber
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-07 00:00:00.000000000 Z
11
+ date: 2014-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -42,17 +42,17 @@ dependencies:
42
42
  name: momentjs-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 2.5.0
47
+ version: 2.8.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 2.5.0
55
- description: This gem packages the Bootstrap3 bootstrap-datetimepicker (JS & CSS)
54
+ version: 2.8.1
55
+ description: This gem packages the Bootstrap3 bootstrap-datetimepicker (JS + CSS)
56
56
  for Rails 3.1+ asset pipeline.
57
57
  email:
58
58
  - trevor@strieber.org
@@ -66,67 +66,6 @@ files:
66
66
  - lib/bootstrap3-datetimepicker-rails/version.rb
67
67
  - vendor/assets/javascripts/bootstrap-datetimepicker.js
68
68
  - vendor/assets/javascripts/bootstrap-datetimepicker.min.js
69
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.ar-ma.js
70
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.ar.js
71
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.bg.js
72
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.br.js
73
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.bs.js
74
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.by.js
75
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.ca.js
76
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.cs.js
77
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.cv.js
78
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.da.js
79
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.de.js
80
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.el.js
81
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.en-au.js
82
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.en-ca.js
83
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.en-gb.js
84
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.eo.js
85
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.es.js
86
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.et.js
87
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.eu.js
88
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.fa.js
89
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.fi.js
90
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.fr-ca.js
91
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.fr.js
92
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.gl.js
93
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.he.js
94
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.hi.js
95
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.hr.js
96
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.hu.js
97
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.id.js
98
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.is.js
99
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.it.js
100
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.ja.js
101
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.ka.js
102
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.ko.js
103
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.lt.js
104
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.lv.js
105
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.ml.js
106
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.mr.js
107
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.ms-my.js
108
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.nb.js
109
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.ne.js
110
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.nl.js
111
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.nn.js
112
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.pl.js
113
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.pt-BR.js
114
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.pt.js
115
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.ro.js
116
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.ru.js
117
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.sk.js
118
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.sl.js
119
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.sq.js
120
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.sv.js
121
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.th.js
122
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.tr.js
123
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.tzm-la.js
124
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.tzm.js
125
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.uk.js
126
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.uz.js
127
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.vn.js
128
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.zh-CN.js
129
- - vendor/assets/javascripts/locales/bootstrap-datetimepicker.zh-TW.js
130
69
  - vendor/assets/stylesheets/bootstrap-datetimepicker.css
131
70
  - vendor/assets/stylesheets/bootstrap-datetimepicker.min.css
132
71
  homepage: http://github.com/TrevorS/bootstrap3-datetimepicker-rails
@@ -152,5 +91,5 @@ rubyforge_project:
152
91
  rubygems_version: 2.2.2
153
92
  signing_key:
154
93
  specification_version: 4
155
- summary: Bootstrap3 bootstrap-datetimepicker's JS & CSS for Rails 3.1+ asset pipeline.
94
+ summary: Bootstrap3 bootstrap-datetimepicker's JS + CSS for Rails 3.1+ asset pipeline.
156
95
  test_files: []
@@ -1,56 +0,0 @@
1
- // moment.js language configuration
2
- // language : Moroccan Arabic (ar-ma)
3
- // author : ElFadili Yassine : https://github.com/ElFadiliY
4
- // author : Abdel Said : https://github.com/abdelsaid
5
-
6
- (function (factory) {
7
- if (typeof define === 'function' && define.amd) {
8
- define(['moment'], factory); // AMD
9
- } else if (typeof exports === 'object') {
10
- module.exports = factory(require('../moment')); // Node
11
- } else {
12
- factory(window.moment); // Browser global
13
- }
14
- }(function (moment) {
15
- return moment.lang('ar-ma', {
16
- months : "يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),
17
- monthsShort : "يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),
18
- weekdays : "الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),
19
- weekdaysShort : "احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),
20
- weekdaysMin : "ح_ن_ث_ر_خ_ج_س".split("_"),
21
- longDateFormat : {
22
- LT : "HH:mm",
23
- L : "DD/MM/YYYY",
24
- LL : "D MMMM YYYY",
25
- LLL : "D MMMM YYYY LT",
26
- LLLL : "dddd D MMMM YYYY LT"
27
- },
28
- calendar : {
29
- sameDay: "[اليوم على الساعة] LT",
30
- nextDay: '[غدا على الساعة] LT',
31
- nextWeek: 'dddd [على الساعة] LT',
32
- lastDay: '[أمس على الساعة] LT',
33
- lastWeek: 'dddd [على الساعة] LT',
34
- sameElse: 'L'
35
- },
36
- relativeTime : {
37
- future : "في %s",
38
- past : "منذ %s",
39
- s : "ثوان",
40
- m : "دقيقة",
41
- mm : "%d دقائق",
42
- h : "ساعة",
43
- hh : "%d ساعات",
44
- d : "يوم",
45
- dd : "%d أيام",
46
- M : "شهر",
47
- MM : "%d أشهر",
48
- y : "سنة",
49
- yy : "%d سنوات"
50
- },
51
- week : {
52
- dow : 6, // Saturday is the first day of the week.
53
- doy : 12 // The week that contains Jan 1st is the first week of the year.
54
- }
55
- });
56
- }));
@@ -1,56 +0,0 @@
1
- // moment.js language configuration
2
- // language : Arabic (ar)
3
- // author : Abdel Said : https://github.com/abdelsaid
4
- // changes in months, weekdays : Ahmed Elkhatib
5
-
6
- (function (factory) {
7
- if (typeof define === 'function' && define.amd) {
8
- define(['moment'], factory); // AMD
9
- } else if (typeof exports === 'object') {
10
- module.exports = factory(require('../moment')); // Node
11
- } else {
12
- factory(window.moment); // Browser global
13
- }
14
- }(function (moment) {
15
- return moment.lang('ar', {
16
- months : "يناير/ كانون الثاني_فبراير/ شباط_مارس/ آذار_أبريل/ نيسان_مايو/ أيار_يونيو/ حزيران_يوليو/ تموز_أغسطس/ آب_سبتمبر/ أيلول_أكتوبر/ تشرين الأول_نوفمبر/ تشرين الثاني_ديسمبر/ كانون الأول".split("_"),
17
- monthsShort : "يناير/ كانون الثاني_فبراير/ شباط_مارس/ آذار_أبريل/ نيسان_مايو/ أيار_يونيو/ حزيران_يوليو/ تموز_أغسطس/ آب_سبتمبر/ أيلول_أكتوبر/ تشرين الأول_نوفمبر/ تشرين الثاني_ديسمبر/ كانون الأول".split("_"),
18
- weekdays : "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),
19
- weekdaysShort : "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),
20
- weekdaysMin : "ح_ن_ث_ر_خ_ج_س".split("_"),
21
- longDateFormat : {
22
- LT : "HH:mm",
23
- L : "DD/MM/YYYY",
24
- LL : "D MMMM YYYY",
25
- LLL : "D MMMM YYYY LT",
26
- LLLL : "dddd D MMMM YYYY LT"
27
- },
28
- calendar : {
29
- sameDay: "[اليوم على الساعة] LT",
30
- nextDay: '[غدا على الساعة] LT',
31
- nextWeek: 'dddd [على الساعة] LT',
32
- lastDay: '[أمس على الساعة] LT',
33
- lastWeek: 'dddd [على الساعة] LT',
34
- sameElse: 'L'
35
- },
36
- relativeTime : {
37
- future : "في %s",
38
- past : "منذ %s",
39
- s : "ثوان",
40
- m : "دقيقة",
41
- mm : "%d دقائق",
42
- h : "ساعة",
43
- hh : "%d ساعات",
44
- d : "يوم",
45
- dd : "%d أيام",
46
- M : "شهر",
47
- MM : "%d أشهر",
48
- y : "سنة",
49
- yy : "%d سنوات"
50
- },
51
- week : {
52
- dow : 6, // Saturday is the first day of the week.
53
- doy : 12 // The week that contains Jan 1st is the first week of the year.
54
- }
55
- });
56
- }));
@@ -1,86 +0,0 @@
1
- // moment.js language configuration
2
- // language : bulgarian (bg)
3
- // author : Krasen Borisov : https://github.com/kraz
4
-
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory(window.moment); // Browser global
12
- }
13
- }(function (moment) {
14
- return moment.lang('bg', {
15
- months : "януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),
16
- monthsShort : "янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),
17
- weekdays : "неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),
18
- weekdaysShort : "нед_пон_вто_сря_чет_пет_съб".split("_"),
19
- weekdaysMin : "нд_пн_вт_ср_чт_пт_сб".split("_"),
20
- longDateFormat : {
21
- LT : "H:mm",
22
- L : "D.MM.YYYY",
23
- LL : "D MMMM YYYY",
24
- LLL : "D MMMM YYYY LT",
25
- LLLL : "dddd, D MMMM YYYY LT"
26
- },
27
- calendar : {
28
- sameDay : '[Днес в] LT',
29
- nextDay : '[Утре в] LT',
30
- nextWeek : 'dddd [в] LT',
31
- lastDay : '[Вчера в] LT',
32
- lastWeek : function () {
33
- switch (this.day()) {
34
- case 0:
35
- case 3:
36
- case 6:
37
- return '[В изминалата] dddd [в] LT';
38
- case 1:
39
- case 2:
40
- case 4:
41
- case 5:
42
- return '[В изминалия] dddd [в] LT';
43
- }
44
- },
45
- sameElse : 'L'
46
- },
47
- relativeTime : {
48
- future : "след %s",
49
- past : "преди %s",
50
- s : "няколко секунди",
51
- m : "минута",
52
- mm : "%d минути",
53
- h : "час",
54
- hh : "%d часа",
55
- d : "ден",
56
- dd : "%d дни",
57
- M : "месец",
58
- MM : "%d месеца",
59
- y : "година",
60
- yy : "%d години"
61
- },
62
- ordinal : function (number) {
63
- var lastDigit = number % 10,
64
- last2Digits = number % 100;
65
- if (number === 0) {
66
- return number + '-ев';
67
- } else if (last2Digits === 0) {
68
- return number + '-ен';
69
- } else if (last2Digits > 10 && last2Digits < 20) {
70
- return number + '-ти';
71
- } else if (lastDigit === 1) {
72
- return number + '-ви';
73
- } else if (lastDigit === 2) {
74
- return number + '-ри';
75
- } else if (lastDigit === 7 || lastDigit === 8) {
76
- return number + '-ми';
77
- } else {
78
- return number + '-ти';
79
- }
80
- },
81
- week : {
82
- dow : 1, // Monday is the first day of the week.
83
- doy : 7 // The week that contains Jan 1st is the first week of the year.
84
- }
85
- });
86
- }));