phcthemes_admin_panel_pack 4.0.7 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -20
- data/README.md +2 -0
- data/Rakefile +8 -8
- data/app/assets/config/phcthemes_admin_panel_pack_manifest.js +9 -9
- data/app/assets/javascripts/common/backstretch/jquery.backstretch.js +1602 -1602
- data/app/assets/javascripts/common/bootstrap/bootstrap.bundle.js +7023 -7023
- data/app/assets/javascripts/common/bootstrap/bootstrap.three.js +2377 -2377
- data/app/assets/javascripts/common/bootstrap-datepicker/bootstrap-datepicker.js +2039 -2039
- data/app/assets/javascripts/common/bootstrap-markdown/bootstrap-markdown.js +1390 -1390
- data/app/assets/javascripts/common/bootstrap-select/bootstrap-select.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-am_ET.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-am_ET.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-am_ET.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ar_AR.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ar_AR.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ar_AR.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-bg_BG.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-bg_BG.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-bg_BG.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-cs_CZ.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-cs_CZ.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-cs_CZ.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-da_DK.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-da_DK.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-da_DK.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-de_DE.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-de_DE.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-de_DE.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-en_US.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-en_US.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-en_US.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_CL.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_CL.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_CL.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_ES.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_ES.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-es_ES.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-et_EE.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-et_EE.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-et_EE.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-eu.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-eu.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-eu.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fa_IR.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fa_IR.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fa_IR.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fi_FI.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fi_FI.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fi_FI.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fr_FR.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fr_FR.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-fr_FR.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hr_HR.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hr_HR.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hr_HR.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hu_HU.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hu_HU.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-hu_HU.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-id_ID.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-id_ID.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-id_ID.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-it_IT.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-it_IT.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-it_IT.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ja_JP.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ja_JP.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ja_JP.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-kh_KM.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-kh_KM.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-kh_KM.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ko_KR.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ko_KR.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ko_KR.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lt_LT.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lt_LT.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lt_LT.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lv_LV.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lv_LV.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-lv_LV.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nb_NO.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nb_NO.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nb_NO.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nl_NL.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nl_NL.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-nl_NL.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pl_PL.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pl_PL.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pl_PL.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_BR.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_BR.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_BR.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_PT.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_PT.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-pt_PT.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ro_RO.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ro_RO.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ro_RO.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ru_RU.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ru_RU.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ru_RU.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sk_SK.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sk_SK.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sk_SK.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sl_SI.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sl_SI.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sl_SI.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sv_SE.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sv_SE.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-sv_SE.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-tr_TR.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-tr_TR.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-tr_TR.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ua_UA.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ua_UA.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-ua_UA.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-vi_VN.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-vi_VN.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-vi_VN.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_CN.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_CN.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_CN.min.js +7 -7
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_TW.js +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_TW.js.map +0 -0
- data/app/assets/javascripts/common/bootstrap-select/i18n/defaults-zh_TW.min.js +7 -7
- data/app/assets/javascripts/common/chartjs/chart.js +0 -0
- data/app/assets/javascripts/common/ckeditor/ckeditor.js +6 -6
- data/app/assets/javascripts/common/ckeditor/ckeditor.js.map +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/af.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ar.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ast.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/az.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/bg.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ca.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/cs.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/da.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/de-ch.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/de.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/el.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/en-au.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/en-gb.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/eo.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/es.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/et.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/eu.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/fa.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/fi.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/fr.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/gl.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/gu.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/he.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/hr.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/hu.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/id.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/it.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ja.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/km.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/kn.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ko.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ku.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/lt.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/lv.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/nb.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ne.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/nl.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/no.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/oc.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/pl.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/pt-br.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/pt.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ro.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ru.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/si.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/sk.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/sl.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/sq.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/sr-latn.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/sr.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/sv.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/th.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/tr.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/tt.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/ug.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/uk.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/vi.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/zh-cn.js +0 -0
- data/app/assets/javascripts/common/ckeditor/translations/zh.js +0 -0
- data/app/assets/javascripts/common/clipboardjs/clipboard.js +977 -977
- data/app/assets/javascripts/common/covervid/covervid.js +94 -94
- data/app/assets/javascripts/common/custom/custom.js +0 -0
- data/app/assets/javascripts/common/datatables/datatables.js +15310 -15310
- data/app/assets/javascripts/common/daterangepicker/daterangepicker.js +1565 -1565
- data/app/assets/javascripts/common/fastclick/fastclick.js +841 -841
- data/app/assets/javascripts/common/flexslider/jquery.flexslider.js +1252 -1252
- data/app/assets/javascripts/common/greenstock/greensock.js +35 -35
- data/app/assets/javascripts/common/html5sortable/jquery.sortable.js +98 -98
- data/app/assets/javascripts/common/icheck/icheck.js +509 -509
- data/app/assets/javascripts/common/imagesloaded/imagesloaded.pkgd.js +497 -497
- data/app/assets/javascripts/common/isotope/isotope.pkgd.js +3563 -3563
- data/app/assets/javascripts/common/jquery/jquery-3.4.1.js +10598 -10598
- data/app/assets/javascripts/common/jquery-countdown/jquery.countdown.js +245 -245
- data/app/assets/javascripts/common/jquery-filterizer/jquery.filterizr.min.js +0 -0
- data/app/assets/javascripts/common/jquery-jeditable/jquery.jeditable.autogrow.js +37 -37
- data/app/assets/javascripts/common/jquery-jeditable/jquery.jeditable.charcounter.js +53 -53
- data/app/assets/javascripts/common/jquery-jeditable/jquery.jeditable.checkbox.js +54 -54
- data/app/assets/javascripts/common/jquery-jeditable/jquery.jeditable.datepicker.js +59 -59
- data/app/assets/javascripts/common/jquery-jeditable/jquery.jeditable.js +823 -823
- data/app/assets/javascripts/common/jquery-jeditable/jquery.jeditable.masked.js +46 -46
- data/app/assets/javascripts/common/jquery-jeditable/jquery.jeditable.time.js +71 -71
- data/app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js +44 -44
- data/app/assets/javascripts/common/jquery-placeholder/jquery.placeholder.js +281 -281
- data/app/assets/javascripts/common/jquery-slimscroll/jquery.slimscroll.js +474 -474
- data/app/assets/javascripts/common/jquery-sparkline/jquery.sparkline.js +3054 -3054
- data/app/assets/javascripts/common/jquery-ui/jquery-ui.js +18705 -18705
- data/app/assets/javascripts/common/jquery-validation/jquery.validate.js +0 -0
- data/app/assets/javascripts/common/jqvmap/jquery.vmap.js +1281 -1281
- data/app/assets/javascripts/common/jqvmap/jquery.vmap.min.js +9 -9
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.africa.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.asia.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.australia.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.europe.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.north-america.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/continents/jquery.vmap.south-america.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.algeria.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.argentina.js +1 -1
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.brazil.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.canada.js +1 -1
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.europe.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.france.js +1 -1
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.germany.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.greece.js +1 -1
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.iran.js +6 -6
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.iraq.js +1 -1
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.russia.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.tunisia.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.turkey.js +11 -11
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.usa.js +2 -2
- data/app/assets/javascripts/common/jqvmap/maps/jquery.vmap.world.js +2 -2
- data/app/assets/javascripts/common/js-cookie/js.cookie.js +165 -165
- data/app/assets/javascripts/common/layerslider/layerslider.kreaturamedia.jquery.js +12 -12
- data/app/assets/javascripts/common/layerslider/layerslider.origami.js +12 -12
- data/app/assets/javascripts/common/layerslider/layerslider.timeline.js +12 -12
- data/app/assets/javascripts/common/layerslider/layerslider.transitions.js +12 -12
- data/app/assets/javascripts/common/lazysizes/lazysizes.js +754 -754
- data/app/assets/javascripts/common/leaflet/leaflet.js +4 -4
- data/app/assets/javascripts/common/magnific-popup/jquery.magnific-popup.js +1859 -1859
- data/app/assets/javascripts/common/mapbox/mapbox.js +51 -51
- data/app/assets/javascripts/common/metismenu/metisMenu.js +340 -340
- data/app/assets/javascripts/common/moderizer/modernizr.js +11 -11
- data/app/assets/javascripts/common/nouislider/nouislider.js +2637 -2637
- data/app/assets/javascripts/common/owl-carousel/owl.carousel.js +3448 -3448
- data/app/assets/javascripts/common/pace/pace.js +935 -935
- data/app/assets/javascripts/common/paroller/jquery.paroller.js +228 -228
- data/app/assets/javascripts/common/particlejs/particles.js +1540 -1540
- data/app/assets/javascripts/common/perfect-scrollbar/perfect-scrollbar.common.js +1318 -1318
- data/app/assets/javascripts/common/perfect-scrollbar/perfect-scrollbar.esm.js +1316 -1316
- data/app/assets/javascripts/common/perfect-scrollbar/perfect-scrollbar.js +1324 -1324
- data/app/assets/javascripts/common/plyr/plyr.js +9137 -9137
- data/app/assets/javascripts/common/rangeslider/rangeslider.js +498 -498
- data/app/assets/javascripts/common/retina/retina.js +100 -100
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.actions.js +0 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.carousel.js +0 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.kenburn.js +0 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.layeranimation.js +0 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.migration.js +0 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.navigation.js +0 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.parallax.js +0 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.slideanims.js +0 -0
- data/app/assets/javascripts/common/rev-slider/extensions/revolution.extension.video.js +0 -0
- data/app/assets/javascripts/common/rev-slider/jquery.themepunch.revolution.js +0 -0
- data/app/assets/javascripts/common/rev-slider/jquery.themepunch.tools.min.js +0 -0
- data/app/assets/javascripts/common/scrollme/jquery.scrollme.js +455 -455
- data/app/assets/javascripts/common/scrollup/jquery.scrollUp.js +168 -168
- data/app/assets/javascripts/common/select2/select2.full.js +6597 -6597
- data/app/assets/javascripts/common/selectbox/jquery.selectBox.js +1091 -1091
- data/app/assets/javascripts/common/slick/slick.js +3004 -3004
- data/app/assets/javascripts/common/smooth-scroll/SmoothScroll.js +788 -788
- data/app/assets/javascripts/common/spectrum/spectrum.js +2323 -2323
- data/app/assets/javascripts/common/stepper/jquery.fs.stepper.js +339 -339
- data/app/assets/javascripts/common/swiper/swiper.js +8124 -8124
- data/app/assets/javascripts/common/toaster/toastr.js +476 -476
- data/app/assets/javascripts/common/typed/typed.js +1044 -1044
- data/app/assets/javascripts/common/visable/jquery.visible.js +68 -68
- data/app/assets/javascripts/common/waypoints/jquery.waypoints.js +661 -661
- data/app/assets/javascripts/common/wow/wow.js +508 -508
- data/app/assets/javascripts/phcthemes_admin_panel_pack_adminlte.js +12 -12
- data/app/assets/javascripts/phcthemes_admin_panel_pack_boomerang.js +0 -0
- data/app/assets/javascripts/phcthemes_admin_panel_pack_coloradmin.js +5 -5
- data/app/assets/javascripts/phcthemes_admin_panel_pack_inspinia.js +10 -10
- data/app/assets/javascripts/phcthemes_admin_panel_pack_metronic.js +6 -6
- data/app/assets/javascripts/phcthemes_admin_panel_pack_quilpro.js +5 -5
- data/app/assets/javascripts/phcthemes_admin_panel_pack_starlight.js +5 -5
- data/app/assets/javascripts/themes/adminlte/theme/adminlte.js +1141 -1141
- data/app/assets/javascripts/themes/coloradmin/theme/color_admin_app.min.js +0 -0
- data/app/assets/javascripts/themes/coloradmin/theme/color_admin_default.js +0 -0
- data/app/assets/javascripts/themes/inspinia/theme/inspinia.js +279 -279
- data/app/assets/javascripts/themes/metronic/theme/plugins.bundle.js +0 -0
- data/app/assets/javascripts/themes/metronic/theme/prismjs.bundle.js +1922 -1922
- data/app/assets/javascripts/themes/metronic/theme/scripts.bundle.js +0 -0
- data/app/assets/javascripts/themes/metronic/theme/widgets.js +0 -0
- data/app/assets/stylesheets/common/hanna_hearts/hanna_hearts.scss +0 -0
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_adminlte.scss +16 -16
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_boomerang.scss +27 -27
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_coloradmin.scss +11 -11
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_inspinia.scss +18 -18
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_metronic.scss +15 -15
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_quilpro.scss +19 -19
- data/app/assets/stylesheets/phcthemes_admin_panel_pack_starlight.scss +15 -15
- data/lib/phcthemes_admin_panel_pack/engine.rb +20 -20
- data/lib/phcthemes_admin_panel_pack/version.rb +3 -3
- data/lib/phcthemes_admin_panel_pack.rb +6 -6
- data/lib/tasks/phcthemes_admin_panel_pack_tasks.rake +4 -4
- metadata +3 -3
@@ -1,281 +1,281 @@
|
|
1
|
-
/*!
|
2
|
-
* jQuery Placeholder Plugin v2.3.1
|
3
|
-
* https://github.com/mathiasbynens/jquery-placeholder
|
4
|
-
*
|
5
|
-
* Copyright 2011, 2015 Mathias Bynens
|
6
|
-
* Released under the MIT license
|
7
|
-
*/
|
8
|
-
(function(factory) {
|
9
|
-
if (typeof define === 'function' && define.amd) {
|
10
|
-
// AMD
|
11
|
-
define(['jquery'], factory);
|
12
|
-
} else if (typeof module === 'object' && module.exports) {
|
13
|
-
factory(require('jquery'));
|
14
|
-
} else {
|
15
|
-
// Browser globals
|
16
|
-
factory(jQuery);
|
17
|
-
}
|
18
|
-
}(function($) {
|
19
|
-
|
20
|
-
/****
|
21
|
-
* Allows plugin behavior simulation in modern browsers for easier debugging.
|
22
|
-
* When setting to true, use attribute "placeholder-x" rather than the usual "placeholder" in your inputs/textareas
|
23
|
-
* i.e. <input type="text" placeholder-x="my placeholder text" />
|
24
|
-
*/
|
25
|
-
var debugMode = false;
|
26
|
-
|
27
|
-
// Opera Mini v7 doesn't support placeholder although its DOM seems to indicate so
|
28
|
-
var isOperaMini = Object.prototype.toString.call(window.operamini) === '[object OperaMini]';
|
29
|
-
var isInputSupported = 'placeholder' in document.createElement('input') && !isOperaMini && !debugMode;
|
30
|
-
var isTextareaSupported = 'placeholder' in document.createElement('textarea') && !isOperaMini && !debugMode;
|
31
|
-
var valHooks = $.valHooks;
|
32
|
-
var propHooks = $.propHooks;
|
33
|
-
var hooks;
|
34
|
-
var placeholder;
|
35
|
-
var settings = {};
|
36
|
-
|
37
|
-
if (isInputSupported && isTextareaSupported) {
|
38
|
-
|
39
|
-
placeholder = $.fn.placeholder = function() {
|
40
|
-
return this;
|
41
|
-
};
|
42
|
-
|
43
|
-
placeholder.input = true;
|
44
|
-
placeholder.textarea = true;
|
45
|
-
|
46
|
-
} else {
|
47
|
-
|
48
|
-
placeholder = $.fn.placeholder = function(options) {
|
49
|
-
|
50
|
-
var defaults = {customClass: 'placeholder'};
|
51
|
-
settings = $.extend({}, defaults, options);
|
52
|
-
|
53
|
-
return this.filter((isInputSupported ? 'textarea' : ':input') + '[' + (debugMode ? 'placeholder-x' : 'placeholder') + ']')
|
54
|
-
.not('.'+settings.customClass)
|
55
|
-
.not(':radio, :checkbox, [type=hidden]')
|
56
|
-
.bind({
|
57
|
-
'focus.placeholder': clearPlaceholder,
|
58
|
-
'blur.placeholder': setPlaceholder
|
59
|
-
})
|
60
|
-
.data('placeholder-enabled', true)
|
61
|
-
.trigger('blur.placeholder');
|
62
|
-
};
|
63
|
-
|
64
|
-
placeholder.input = isInputSupported;
|
65
|
-
placeholder.textarea = isTextareaSupported;
|
66
|
-
|
67
|
-
hooks = {
|
68
|
-
'get': function(element) {
|
69
|
-
|
70
|
-
var $element = $(element);
|
71
|
-
var $passwordInput = $element.data('placeholder-password');
|
72
|
-
|
73
|
-
if ($passwordInput) {
|
74
|
-
return $passwordInput[0].value;
|
75
|
-
}
|
76
|
-
|
77
|
-
return $element.data('placeholder-enabled') && $element.hasClass(settings.customClass) ? '' : element.value;
|
78
|
-
},
|
79
|
-
'set': function(element, value) {
|
80
|
-
|
81
|
-
var $element = $(element);
|
82
|
-
var $replacement;
|
83
|
-
var $passwordInput;
|
84
|
-
|
85
|
-
if (value !== '') {
|
86
|
-
|
87
|
-
$replacement = $element.data('placeholder-textinput');
|
88
|
-
$passwordInput = $element.data('placeholder-password');
|
89
|
-
|
90
|
-
if ($replacement) {
|
91
|
-
clearPlaceholder.call($replacement[0], true, value) || (element.value = value);
|
92
|
-
$replacement[0].value = value;
|
93
|
-
|
94
|
-
} else if ($passwordInput) {
|
95
|
-
clearPlaceholder.call(element, true, value) || ($passwordInput[0].value = value);
|
96
|
-
element.value = value;
|
97
|
-
}
|
98
|
-
}
|
99
|
-
|
100
|
-
if (!$element.data('placeholder-enabled')) {
|
101
|
-
element.value = value;
|
102
|
-
return $element;
|
103
|
-
}
|
104
|
-
|
105
|
-
if (value === '') {
|
106
|
-
|
107
|
-
element.value = value;
|
108
|
-
|
109
|
-
// Setting the placeholder causes problems if the element continues to have focus.
|
110
|
-
if (element != safeActiveElement()) {
|
111
|
-
// We can't use `triggerHandler` here because of dummy text/password inputs :(
|
112
|
-
setPlaceholder.call(element);
|
113
|
-
}
|
114
|
-
|
115
|
-
} else {
|
116
|
-
|
117
|
-
if ($element.hasClass(settings.customClass)) {
|
118
|
-
clearPlaceholder.call(element);
|
119
|
-
}
|
120
|
-
|
121
|
-
element.value = value;
|
122
|
-
}
|
123
|
-
// `set` can not return `undefined`; see http://jsapi.info/jquery/1.7.1/val#L2363
|
124
|
-
return $element;
|
125
|
-
}
|
126
|
-
};
|
127
|
-
|
128
|
-
if (!isInputSupported) {
|
129
|
-
valHooks.input = hooks;
|
130
|
-
propHooks.value = hooks;
|
131
|
-
}
|
132
|
-
|
133
|
-
if (!isTextareaSupported) {
|
134
|
-
valHooks.textarea = hooks;
|
135
|
-
propHooks.value = hooks;
|
136
|
-
}
|
137
|
-
|
138
|
-
$(function() {
|
139
|
-
// Look for forms
|
140
|
-
$(document).delegate('form', 'submit.placeholder', function() {
|
141
|
-
|
142
|
-
// Clear the placeholder values so they don't get submitted
|
143
|
-
var $inputs = $('.'+settings.customClass, this).each(function() {
|
144
|
-
clearPlaceholder.call(this, true, '');
|
145
|
-
});
|
146
|
-
|
147
|
-
setTimeout(function() {
|
148
|
-
$inputs.each(setPlaceholder);
|
149
|
-
}, 10);
|
150
|
-
});
|
151
|
-
});
|
152
|
-
|
153
|
-
// Clear placeholder values upon page reload
|
154
|
-
$(window).bind('beforeunload.placeholder', function() {
|
155
|
-
|
156
|
-
var clearPlaceholders = true;
|
157
|
-
|
158
|
-
try {
|
159
|
-
// Prevent IE javascript:void(0) anchors from causing cleared values
|
160
|
-
if (document.activeElement.toString() === 'javascript:void(0)') {
|
161
|
-
clearPlaceholders = false;
|
162
|
-
}
|
163
|
-
} catch (exception) { }
|
164
|
-
|
165
|
-
if (clearPlaceholders) {
|
166
|
-
$('.'+settings.customClass).each(function() {
|
167
|
-
this.value = '';
|
168
|
-
});
|
169
|
-
}
|
170
|
-
});
|
171
|
-
}
|
172
|
-
|
173
|
-
function args(elem) {
|
174
|
-
// Return an object of element attributes
|
175
|
-
var newAttrs = {};
|
176
|
-
var rinlinejQuery = /^jQuery\d+$/;
|
177
|
-
|
178
|
-
$.each(elem.attributes, function(i, attr) {
|
179
|
-
if (attr.specified && !rinlinejQuery.test(attr.name)) {
|
180
|
-
newAttrs[attr.name] = attr.value;
|
181
|
-
}
|
182
|
-
});
|
183
|
-
|
184
|
-
return newAttrs;
|
185
|
-
}
|
186
|
-
|
187
|
-
function clearPlaceholder(event, value) {
|
188
|
-
|
189
|
-
var input = this;
|
190
|
-
var $input = $(this);
|
191
|
-
|
192
|
-
if (input.value === $input.attr((debugMode ? 'placeholder-x' : 'placeholder')) && $input.hasClass(settings.customClass)) {
|
193
|
-
|
194
|
-
input.value = '';
|
195
|
-
$input.removeClass(settings.customClass);
|
196
|
-
|
197
|
-
if ($input.data('placeholder-password')) {
|
198
|
-
|
199
|
-
$input = $input.hide().nextAll('input[type="password"]:first').show().attr('id', $input.removeAttr('id').data('placeholder-id'));
|
200
|
-
|
201
|
-
// If `clearPlaceholder` was called from `$.valHooks.input.set`
|
202
|
-
if (event === true) {
|
203
|
-
$input[0].value = value;
|
204
|
-
|
205
|
-
return value;
|
206
|
-
}
|
207
|
-
|
208
|
-
$input.focus();
|
209
|
-
|
210
|
-
} else {
|
211
|
-
input == safeActiveElement() && input.select();
|
212
|
-
}
|
213
|
-
}
|
214
|
-
}
|
215
|
-
|
216
|
-
function setPlaceholder(event) {
|
217
|
-
var $replacement;
|
218
|
-
var input = this;
|
219
|
-
var $input = $(this);
|
220
|
-
var id = input.id;
|
221
|
-
|
222
|
-
// If the placeholder is activated, triggering blur event (`$input.trigger('blur')`) should do nothing.
|
223
|
-
if (event && event.type === 'blur' && $input.hasClass(settings.customClass)) {
|
224
|
-
return;
|
225
|
-
}
|
226
|
-
|
227
|
-
if (input.value === '') {
|
228
|
-
if (input.type === 'password') {
|
229
|
-
if (!$input.data('placeholder-textinput')) {
|
230
|
-
|
231
|
-
try {
|
232
|
-
$replacement = $input.clone().prop({ 'type': 'text' });
|
233
|
-
} catch(e) {
|
234
|
-
$replacement = $('<input>').attr($.extend(args(this), { 'type': 'text' }));
|
235
|
-
}
|
236
|
-
|
237
|
-
$replacement
|
238
|
-
.removeAttr('name')
|
239
|
-
.data({
|
240
|
-
'placeholder-enabled': true,
|
241
|
-
'placeholder-password': $input,
|
242
|
-
'placeholder-id': id
|
243
|
-
})
|
244
|
-
.bind('focus.placeholder', clearPlaceholder);
|
245
|
-
|
246
|
-
$input
|
247
|
-
.data({
|
248
|
-
'placeholder-textinput': $replacement,
|
249
|
-
'placeholder-id': id
|
250
|
-
})
|
251
|
-
.before($replacement);
|
252
|
-
}
|
253
|
-
|
254
|
-
input.value = '';
|
255
|
-
$input = $input.removeAttr('id').hide().prevAll('input[type="text"]:first').attr('id', $input.data('placeholder-id')).show();
|
256
|
-
|
257
|
-
} else {
|
258
|
-
|
259
|
-
var $passwordInput = $input.data('placeholder-password');
|
260
|
-
|
261
|
-
if ($passwordInput) {
|
262
|
-
$passwordInput[0].value = '';
|
263
|
-
$input.attr('id', $input.data('placeholder-id')).show().nextAll('input[type="password"]:last').hide().removeAttr('id');
|
264
|
-
}
|
265
|
-
}
|
266
|
-
|
267
|
-
$input.addClass(settings.customClass);
|
268
|
-
$input[0].value = $input.attr((debugMode ? 'placeholder-x' : 'placeholder'));
|
269
|
-
|
270
|
-
} else {
|
271
|
-
$input.removeClass(settings.customClass);
|
272
|
-
}
|
273
|
-
}
|
274
|
-
|
275
|
-
function safeActiveElement() {
|
276
|
-
// Avoid IE9 `document.activeElement` of death
|
277
|
-
try {
|
278
|
-
return document.activeElement;
|
279
|
-
} catch (exception) {}
|
280
|
-
}
|
281
|
-
}));
|
1
|
+
/*!
|
2
|
+
* jQuery Placeholder Plugin v2.3.1
|
3
|
+
* https://github.com/mathiasbynens/jquery-placeholder
|
4
|
+
*
|
5
|
+
* Copyright 2011, 2015 Mathias Bynens
|
6
|
+
* Released under the MIT license
|
7
|
+
*/
|
8
|
+
(function(factory) {
|
9
|
+
if (typeof define === 'function' && define.amd) {
|
10
|
+
// AMD
|
11
|
+
define(['jquery'], factory);
|
12
|
+
} else if (typeof module === 'object' && module.exports) {
|
13
|
+
factory(require('jquery'));
|
14
|
+
} else {
|
15
|
+
// Browser globals
|
16
|
+
factory(jQuery);
|
17
|
+
}
|
18
|
+
}(function($) {
|
19
|
+
|
20
|
+
/****
|
21
|
+
* Allows plugin behavior simulation in modern browsers for easier debugging.
|
22
|
+
* When setting to true, use attribute "placeholder-x" rather than the usual "placeholder" in your inputs/textareas
|
23
|
+
* i.e. <input type="text" placeholder-x="my placeholder text" />
|
24
|
+
*/
|
25
|
+
var debugMode = false;
|
26
|
+
|
27
|
+
// Opera Mini v7 doesn't support placeholder although its DOM seems to indicate so
|
28
|
+
var isOperaMini = Object.prototype.toString.call(window.operamini) === '[object OperaMini]';
|
29
|
+
var isInputSupported = 'placeholder' in document.createElement('input') && !isOperaMini && !debugMode;
|
30
|
+
var isTextareaSupported = 'placeholder' in document.createElement('textarea') && !isOperaMini && !debugMode;
|
31
|
+
var valHooks = $.valHooks;
|
32
|
+
var propHooks = $.propHooks;
|
33
|
+
var hooks;
|
34
|
+
var placeholder;
|
35
|
+
var settings = {};
|
36
|
+
|
37
|
+
if (isInputSupported && isTextareaSupported) {
|
38
|
+
|
39
|
+
placeholder = $.fn.placeholder = function() {
|
40
|
+
return this;
|
41
|
+
};
|
42
|
+
|
43
|
+
placeholder.input = true;
|
44
|
+
placeholder.textarea = true;
|
45
|
+
|
46
|
+
} else {
|
47
|
+
|
48
|
+
placeholder = $.fn.placeholder = function(options) {
|
49
|
+
|
50
|
+
var defaults = {customClass: 'placeholder'};
|
51
|
+
settings = $.extend({}, defaults, options);
|
52
|
+
|
53
|
+
return this.filter((isInputSupported ? 'textarea' : ':input') + '[' + (debugMode ? 'placeholder-x' : 'placeholder') + ']')
|
54
|
+
.not('.'+settings.customClass)
|
55
|
+
.not(':radio, :checkbox, [type=hidden]')
|
56
|
+
.bind({
|
57
|
+
'focus.placeholder': clearPlaceholder,
|
58
|
+
'blur.placeholder': setPlaceholder
|
59
|
+
})
|
60
|
+
.data('placeholder-enabled', true)
|
61
|
+
.trigger('blur.placeholder');
|
62
|
+
};
|
63
|
+
|
64
|
+
placeholder.input = isInputSupported;
|
65
|
+
placeholder.textarea = isTextareaSupported;
|
66
|
+
|
67
|
+
hooks = {
|
68
|
+
'get': function(element) {
|
69
|
+
|
70
|
+
var $element = $(element);
|
71
|
+
var $passwordInput = $element.data('placeholder-password');
|
72
|
+
|
73
|
+
if ($passwordInput) {
|
74
|
+
return $passwordInput[0].value;
|
75
|
+
}
|
76
|
+
|
77
|
+
return $element.data('placeholder-enabled') && $element.hasClass(settings.customClass) ? '' : element.value;
|
78
|
+
},
|
79
|
+
'set': function(element, value) {
|
80
|
+
|
81
|
+
var $element = $(element);
|
82
|
+
var $replacement;
|
83
|
+
var $passwordInput;
|
84
|
+
|
85
|
+
if (value !== '') {
|
86
|
+
|
87
|
+
$replacement = $element.data('placeholder-textinput');
|
88
|
+
$passwordInput = $element.data('placeholder-password');
|
89
|
+
|
90
|
+
if ($replacement) {
|
91
|
+
clearPlaceholder.call($replacement[0], true, value) || (element.value = value);
|
92
|
+
$replacement[0].value = value;
|
93
|
+
|
94
|
+
} else if ($passwordInput) {
|
95
|
+
clearPlaceholder.call(element, true, value) || ($passwordInput[0].value = value);
|
96
|
+
element.value = value;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
if (!$element.data('placeholder-enabled')) {
|
101
|
+
element.value = value;
|
102
|
+
return $element;
|
103
|
+
}
|
104
|
+
|
105
|
+
if (value === '') {
|
106
|
+
|
107
|
+
element.value = value;
|
108
|
+
|
109
|
+
// Setting the placeholder causes problems if the element continues to have focus.
|
110
|
+
if (element != safeActiveElement()) {
|
111
|
+
// We can't use `triggerHandler` here because of dummy text/password inputs :(
|
112
|
+
setPlaceholder.call(element);
|
113
|
+
}
|
114
|
+
|
115
|
+
} else {
|
116
|
+
|
117
|
+
if ($element.hasClass(settings.customClass)) {
|
118
|
+
clearPlaceholder.call(element);
|
119
|
+
}
|
120
|
+
|
121
|
+
element.value = value;
|
122
|
+
}
|
123
|
+
// `set` can not return `undefined`; see http://jsapi.info/jquery/1.7.1/val#L2363
|
124
|
+
return $element;
|
125
|
+
}
|
126
|
+
};
|
127
|
+
|
128
|
+
if (!isInputSupported) {
|
129
|
+
valHooks.input = hooks;
|
130
|
+
propHooks.value = hooks;
|
131
|
+
}
|
132
|
+
|
133
|
+
if (!isTextareaSupported) {
|
134
|
+
valHooks.textarea = hooks;
|
135
|
+
propHooks.value = hooks;
|
136
|
+
}
|
137
|
+
|
138
|
+
$(function() {
|
139
|
+
// Look for forms
|
140
|
+
$(document).delegate('form', 'submit.placeholder', function() {
|
141
|
+
|
142
|
+
// Clear the placeholder values so they don't get submitted
|
143
|
+
var $inputs = $('.'+settings.customClass, this).each(function() {
|
144
|
+
clearPlaceholder.call(this, true, '');
|
145
|
+
});
|
146
|
+
|
147
|
+
setTimeout(function() {
|
148
|
+
$inputs.each(setPlaceholder);
|
149
|
+
}, 10);
|
150
|
+
});
|
151
|
+
});
|
152
|
+
|
153
|
+
// Clear placeholder values upon page reload
|
154
|
+
$(window).bind('beforeunload.placeholder', function() {
|
155
|
+
|
156
|
+
var clearPlaceholders = true;
|
157
|
+
|
158
|
+
try {
|
159
|
+
// Prevent IE javascript:void(0) anchors from causing cleared values
|
160
|
+
if (document.activeElement.toString() === 'javascript:void(0)') {
|
161
|
+
clearPlaceholders = false;
|
162
|
+
}
|
163
|
+
} catch (exception) { }
|
164
|
+
|
165
|
+
if (clearPlaceholders) {
|
166
|
+
$('.'+settings.customClass).each(function() {
|
167
|
+
this.value = '';
|
168
|
+
});
|
169
|
+
}
|
170
|
+
});
|
171
|
+
}
|
172
|
+
|
173
|
+
function args(elem) {
|
174
|
+
// Return an object of element attributes
|
175
|
+
var newAttrs = {};
|
176
|
+
var rinlinejQuery = /^jQuery\d+$/;
|
177
|
+
|
178
|
+
$.each(elem.attributes, function(i, attr) {
|
179
|
+
if (attr.specified && !rinlinejQuery.test(attr.name)) {
|
180
|
+
newAttrs[attr.name] = attr.value;
|
181
|
+
}
|
182
|
+
});
|
183
|
+
|
184
|
+
return newAttrs;
|
185
|
+
}
|
186
|
+
|
187
|
+
function clearPlaceholder(event, value) {
|
188
|
+
|
189
|
+
var input = this;
|
190
|
+
var $input = $(this);
|
191
|
+
|
192
|
+
if (input.value === $input.attr((debugMode ? 'placeholder-x' : 'placeholder')) && $input.hasClass(settings.customClass)) {
|
193
|
+
|
194
|
+
input.value = '';
|
195
|
+
$input.removeClass(settings.customClass);
|
196
|
+
|
197
|
+
if ($input.data('placeholder-password')) {
|
198
|
+
|
199
|
+
$input = $input.hide().nextAll('input[type="password"]:first').show().attr('id', $input.removeAttr('id').data('placeholder-id'));
|
200
|
+
|
201
|
+
// If `clearPlaceholder` was called from `$.valHooks.input.set`
|
202
|
+
if (event === true) {
|
203
|
+
$input[0].value = value;
|
204
|
+
|
205
|
+
return value;
|
206
|
+
}
|
207
|
+
|
208
|
+
$input.focus();
|
209
|
+
|
210
|
+
} else {
|
211
|
+
input == safeActiveElement() && input.select();
|
212
|
+
}
|
213
|
+
}
|
214
|
+
}
|
215
|
+
|
216
|
+
function setPlaceholder(event) {
|
217
|
+
var $replacement;
|
218
|
+
var input = this;
|
219
|
+
var $input = $(this);
|
220
|
+
var id = input.id;
|
221
|
+
|
222
|
+
// If the placeholder is activated, triggering blur event (`$input.trigger('blur')`) should do nothing.
|
223
|
+
if (event && event.type === 'blur' && $input.hasClass(settings.customClass)) {
|
224
|
+
return;
|
225
|
+
}
|
226
|
+
|
227
|
+
if (input.value === '') {
|
228
|
+
if (input.type === 'password') {
|
229
|
+
if (!$input.data('placeholder-textinput')) {
|
230
|
+
|
231
|
+
try {
|
232
|
+
$replacement = $input.clone().prop({ 'type': 'text' });
|
233
|
+
} catch(e) {
|
234
|
+
$replacement = $('<input>').attr($.extend(args(this), { 'type': 'text' }));
|
235
|
+
}
|
236
|
+
|
237
|
+
$replacement
|
238
|
+
.removeAttr('name')
|
239
|
+
.data({
|
240
|
+
'placeholder-enabled': true,
|
241
|
+
'placeholder-password': $input,
|
242
|
+
'placeholder-id': id
|
243
|
+
})
|
244
|
+
.bind('focus.placeholder', clearPlaceholder);
|
245
|
+
|
246
|
+
$input
|
247
|
+
.data({
|
248
|
+
'placeholder-textinput': $replacement,
|
249
|
+
'placeholder-id': id
|
250
|
+
})
|
251
|
+
.before($replacement);
|
252
|
+
}
|
253
|
+
|
254
|
+
input.value = '';
|
255
|
+
$input = $input.removeAttr('id').hide().prevAll('input[type="text"]:first').attr('id', $input.data('placeholder-id')).show();
|
256
|
+
|
257
|
+
} else {
|
258
|
+
|
259
|
+
var $passwordInput = $input.data('placeholder-password');
|
260
|
+
|
261
|
+
if ($passwordInput) {
|
262
|
+
$passwordInput[0].value = '';
|
263
|
+
$input.attr('id', $input.data('placeholder-id')).show().nextAll('input[type="password"]:last').hide().removeAttr('id');
|
264
|
+
}
|
265
|
+
}
|
266
|
+
|
267
|
+
$input.addClass(settings.customClass);
|
268
|
+
$input[0].value = $input.attr((debugMode ? 'placeholder-x' : 'placeholder'));
|
269
|
+
|
270
|
+
} else {
|
271
|
+
$input.removeClass(settings.customClass);
|
272
|
+
}
|
273
|
+
}
|
274
|
+
|
275
|
+
function safeActiveElement() {
|
276
|
+
// Avoid IE9 `document.activeElement` of death
|
277
|
+
try {
|
278
|
+
return document.activeElement;
|
279
|
+
} catch (exception) {}
|
280
|
+
}
|
281
|
+
}));
|