paint-rails 0.6.7 → 0.7.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/lib/paint-rails/version.rb +1 -1
- data/paint-rails.gemspec +2 -2
- data/vendor/assets/stylesheets/Brocfile.js +3 -0
- data/vendor/assets/stylesheets/Gemfile +3 -0
- data/vendor/assets/stylesheets/Gemfile.lock +14 -0
- data/vendor/assets/stylesheets/bin/ci +6 -0
- data/vendor/assets/stylesheets/bin/lint +5 -0
- data/vendor/assets/stylesheets/bin/setup +7 -0
- data/vendor/assets/stylesheets/bower_components/fontawesome/.bower.json +5 -5
- data/vendor/assets/stylesheets/bower_components/fontawesome/.gitignore +1 -0
- data/vendor/assets/stylesheets/bower_components/fontawesome/bower.json +1 -1
- data/vendor/assets/stylesheets/bower_components/fontawesome/css/font-awesome.css +133 -4
- data/vendor/assets/stylesheets/bower_components/fontawesome/css/font-awesome.css.map +7 -0
- data/vendor/assets/stylesheets/bower_components/fontawesome/css/font-awesome.min.css +2 -2
- data/vendor/assets/stylesheets/bower_components/fontawesome/fonts/FontAwesome.otf +0 -0
- data/vendor/assets/stylesheets/bower_components/fontawesome/fonts/fontawesome-webfont.eot +0 -0
- data/vendor/assets/stylesheets/bower_components/fontawesome/fonts/fontawesome-webfont.svg +53 -8
- data/vendor/assets/stylesheets/bower_components/fontawesome/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/stylesheets/bower_components/fontawesome/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/stylesheets/bower_components/fontawesome/fonts/fontawesome-webfont.woff2 +0 -0
- data/vendor/assets/stylesheets/bower_components/fontawesome/less/{spinning.less → animated.less} +6 -1
- data/vendor/assets/stylesheets/bower_components/fontawesome/less/core.less +3 -1
- data/vendor/assets/stylesheets/bower_components/fontawesome/less/font-awesome.less +2 -2
- data/vendor/assets/stylesheets/bower_components/fontawesome/less/icons.less +45 -1
- data/vendor/assets/stylesheets/bower_components/fontawesome/less/mixins.less +3 -1
- data/vendor/assets/stylesheets/bower_components/fontawesome/less/path.less +1 -0
- data/vendor/assets/stylesheets/bower_components/fontawesome/less/variables.less +47 -2
- data/vendor/assets/stylesheets/bower_components/fontawesome/scss/{_spinning.scss → _animated.scss} +5 -0
- data/vendor/assets/stylesheets/bower_components/fontawesome/scss/_core.scss +3 -1
- data/vendor/assets/stylesheets/bower_components/fontawesome/scss/_icons.scss +45 -1
- data/vendor/assets/stylesheets/bower_components/fontawesome/scss/_mixins.scss +3 -1
- data/vendor/assets/stylesheets/bower_components/fontawesome/scss/_path.scss +2 -1
- data/vendor/assets/stylesheets/bower_components/fontawesome/scss/_variables.scss +47 -2
- data/vendor/assets/stylesheets/bower_components/fontawesome/scss/font-awesome.scss +2 -2
- data/vendor/assets/stylesheets/bower_components/foundation/.bower.json +5 -5
- data/vendor/assets/stylesheets/bower_components/foundation/bower.json +1 -1
- data/vendor/assets/stylesheets/bower_components/foundation/css/foundation.css +1855 -1667
- data/vendor/assets/stylesheets/bower_components/foundation/css/foundation.css.map +7 -0
- data/vendor/assets/stylesheets/bower_components/foundation/css/foundation.min.css +1 -0
- data/vendor/assets/stylesheets/bower_components/foundation/css/normalize.css +11 -12
- data/vendor/assets/stylesheets/bower_components/foundation/css/normalize.css.map +7 -0
- data/vendor/assets/stylesheets/bower_components/foundation/css/normalize.min.css +1 -0
- data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.abide.js +156 -62
- data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.accordion.js +35 -13
- data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.alert.js +8 -8
- data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.clearing.js +93 -65
- data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.dropdown.js +203 -66
- data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.equalizer.js +57 -27
- data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.interchange.js +61 -46
- data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.joyride.js +93 -78
- data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.js +177 -77
- data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.magellan.js +81 -55
- data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.offcanvas.js +28 -28
- data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.orbit.js +135 -131
- data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.reveal.js +119 -65
- data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.slider.js +113 -71
- data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.tab.js +67 -35
- data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.tooltip.js +76 -37
- data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.topbar.js +71 -58
- data/vendor/assets/stylesheets/bower_components/foundation/js/foundation.js +1570 -919
- data/vendor/assets/stylesheets/bower_components/foundation/js/foundation.min.js +5 -4
- data/vendor/assets/stylesheets/bower_components/foundation/js/vendor/fastclick.js +8 -9
- data/vendor/assets/stylesheets/bower_components/foundation/js/vendor/jquery.js +10 -9
- data/vendor/assets/stylesheets/bower_components/foundation/js/vendor/modernizr.js +1 -1
- data/vendor/assets/stylesheets/bower_components/foundation/js/vendor/placeholder.js +2 -2
- data/vendor/assets/stylesheets/bower_components/foundation/package.json +53 -0
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/_functions.scss +76 -22
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/_settings.scss +152 -107
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_accordion.scss +8 -8
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_alert-boxes.scss +12 -12
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_block-grid.scss +14 -13
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_breadcrumbs.scss +18 -19
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_button-groups.scss +35 -25
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_buttons.scss +16 -19
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_clearing.scss +60 -47
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_dropdown-buttons.scss +15 -15
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_dropdown.scss +42 -36
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_flex-video.scss +7 -7
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_forms.scss +103 -79
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_global.scss +95 -53
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_grid.scss +42 -25
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_icon-bar.scss +371 -204
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_inline-lists.scss +8 -8
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_joyride.scss +40 -42
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_keystrokes.scss +2 -3
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_labels.scss +7 -7
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_magellan.scss +2 -2
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_offcanvas.scss +184 -179
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_orbit.scss +90 -70
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_pagination.scss +15 -15
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_panels.scss +27 -15
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_pricing-tables.scss +16 -16
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_progress-bars.scss +4 -4
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_range-slider.scss +28 -19
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_reveal.scss +37 -50
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_side-nav.scss +15 -11
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_split-buttons.scss +26 -14
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_sub-nav.scss +14 -12
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_switches.scss +32 -21
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_tables.scss +8 -8
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_tabs.scss +50 -31
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_thumbs.scss +8 -8
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_tooltips.scss +25 -25
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_top-bar.scss +197 -145
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_type.scss +20 -81
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_visibility.scss +99 -15
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation.scss +37 -38
- data/vendor/assets/stylesheets/bower_components/foundation/scss/normalize.scss +8 -11
- data/vendor/assets/stylesheets/bower_components/jquery/.bower.json +5 -4
- data/vendor/assets/stylesheets/bower_components/jquery/bower.json +2 -1
- data/vendor/assets/stylesheets/bower_components/jquery/dist/jquery.js +9 -4
- data/vendor/assets/stylesheets/bower_components/jquery/dist/jquery.min.js +4 -4
- data/vendor/assets/stylesheets/bower_components/jquery/dist/jquery.min.map +1 -1
- data/vendor/assets/stylesheets/bower_components/jquery/src/core.js +6 -1
- data/vendor/assets/stylesheets/circle.yml +17 -0
- data/vendor/assets/stylesheets/components/_button.scss +120 -21
- data/vendor/assets/stylesheets/components/_dropdown.scss +316 -14
- data/vendor/assets/stylesheets/components/_flip-panel.scss +191 -0
- data/vendor/assets/stylesheets/components/_form.scss +346 -0
- data/vendor/assets/stylesheets/components/_layout.scss +261 -121
- data/vendor/assets/stylesheets/components/_panel.scss +91 -0
- data/vendor/assets/stylesheets/components/_quick-jump.scss +267 -0
- data/vendor/assets/stylesheets/components/_side-panel.scss +154 -0
- data/vendor/assets/stylesheets/components/_table.scss +105 -0
- data/vendor/assets/stylesheets/components/_typography.scss +34 -3
- data/vendor/assets/stylesheets/components/_vertical-align.scss +9 -0
- data/vendor/assets/stylesheets/globals/_functions.scss +69 -0
- data/vendor/assets/stylesheets/globals/_mixins.scss +23 -1
- data/vendor/assets/stylesheets/globals/_settings.scss +35 -36
- data/vendor/assets/stylesheets/paint.scss +22 -14
- metadata +29 -8
- data/vendor/assets/stylesheets/bower_components/fontawesome/less/extras.less +0 -2
- data/vendor/assets/stylesheets/bower_components/fontawesome/scss/_extras.scss +0 -44
- data/vendor/assets/stylesheets/bower_components/foundation/scss/foundation/components/_toolbar.scss +0 -70
@@ -1,8 +1,8 @@
|
|
1
|
-
/*! normalize.css v3.0.
|
1
|
+
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
|
2
2
|
/**
|
3
3
|
* 1. Set default font family to sans-serif.
|
4
|
-
* 2. Prevent iOS text size adjust after orientation change,
|
5
|
-
* user zoom.
|
4
|
+
* 2. Prevent iOS and IE text size adjust after device orientation change,
|
5
|
+
* without disabling user zoom.
|
6
6
|
*/
|
7
7
|
html {
|
8
8
|
font-family: sans-serif;
|
@@ -64,7 +64,7 @@ audio:not([controls]) {
|
|
64
64
|
|
65
65
|
/**
|
66
66
|
* Address `[hidden]` styling not present in IE 8/9/10.
|
67
|
-
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
|
67
|
+
* Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
|
68
68
|
*/
|
69
69
|
[hidden],
|
70
70
|
template {
|
@@ -79,7 +79,8 @@ a {
|
|
79
79
|
background-color: transparent; }
|
80
80
|
|
81
81
|
/**
|
82
|
-
* Improve readability
|
82
|
+
* Improve readability of focused elements when they are also in an
|
83
|
+
* active/hover state.
|
83
84
|
*/
|
84
85
|
a:active,
|
85
86
|
a:hover {
|
@@ -169,7 +170,6 @@ figure {
|
|
169
170
|
* Address differences between Firefox and other browsers.
|
170
171
|
*/
|
171
172
|
hr {
|
172
|
-
-moz-box-sizing: content-box;
|
173
173
|
box-sizing: content-box;
|
174
174
|
height: 0; }
|
175
175
|
|
@@ -292,16 +292,13 @@ input[type="number"]::-webkit-outer-spin-button {
|
|
292
292
|
|
293
293
|
/**
|
294
294
|
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
|
295
|
-
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
|
296
|
-
* (include `-moz` to future-proof).
|
295
|
+
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
|
297
296
|
*/
|
298
297
|
input[type="search"] {
|
299
298
|
-webkit-appearance: textfield;
|
300
299
|
/* 1 */
|
301
|
-
|
302
|
-
|
303
|
-
/* 2 */
|
304
|
-
box-sizing: content-box; }
|
300
|
+
box-sizing: content-box;
|
301
|
+
/* 2 */ }
|
305
302
|
|
306
303
|
/**
|
307
304
|
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
|
@@ -355,3 +352,5 @@ table {
|
|
355
352
|
td,
|
356
353
|
th {
|
357
354
|
padding: 0; }
|
355
|
+
|
356
|
+
/*# sourceMappingURL=normalize.css.map */
|
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"mappings": ";;;;;;AAQA,IAAK;EACH,WAAW,EAAE,UAAU;;EACvB,oBAAoB,EAAE,IAAI;;EAC1B,wBAAwB,EAAE,IAAI;;;;;;AAOhC,IAAK;EACH,MAAM,EAAE,CAAC;;;;;;;;;;AAaX;;;;;;;;;;;;OAYQ;EACN,OAAO,EAAE,KAAK;;;;;;AAQhB;;;KAGM;EACJ,OAAO,EAAE,YAAY;;EACrB,cAAc,EAAE,QAAQ;;;;;;;AAQ1B,qBAAsB;EACpB,OAAO,EAAE,IAAI;EACb,MAAM,EAAE,CAAC;;;;;;AAQX;QACS;EACP,OAAO,EAAE,IAAI;;;;;;;AAUf,CAAE;EACA,gBAAgB,EAAE,WAAW;;;;;;AAQ/B;OACQ;EACN,OAAO,EAAE,CAAC;;;;;;;AAUZ,WAAY;EACV,aAAa,EAAE,UAAU;;;;;AAO3B;MACO;EACL,WAAW,EAAE,IAAI;;;;;AAOnB,GAAI;EACF,UAAU,EAAE,MAAM;;;;;;AAQpB,EAAG;EACD,SAAS,EAAE,GAAG;EACd,MAAM,EAAE,QAAQ;;;;;AAOlB,IAAK;EACH,UAAU,EAAE,IAAI;EAChB,KAAK,EAAE,IAAI;;;;;AAOb,KAAM;EACJ,SAAS,EAAE,GAAG;;;;;AAOhB;GACI;EACF,SAAS,EAAE,GAAG;EACd,WAAW,EAAE,CAAC;EACd,QAAQ,EAAE,QAAQ;EAClB,cAAc,EAAE,QAAQ;;AAG1B,GAAI;EACF,GAAG,EAAE,MAAM;;AAGb,GAAI;EACF,MAAM,EAAE,OAAO;;;;;;;AAUjB,GAAI;EACF,MAAM,EAAE,CAAC;;;;;AAOX,cAAe;EACb,QAAQ,EAAE,MAAM;;;;;;;AAUlB,MAAO;EACL,MAAM,EAAE,QAAQ;;;;;AAOlB,EAAG;EACD,UAAU,EAAE,WAAW;EACvB,MAAM,EAAE,CAAC;;;;;AAOX,GAAI;EACF,QAAQ,EAAE,IAAI;;;;;AAOhB;;;IAGK;EACH,WAAW,EAAE,oBAAoB;EACjC,SAAS,EAAE,GAAG;;;;;;;;;;;;;;AAkBhB;;;;QAIS;EACP,KAAK,EAAE,OAAO;;EACd,IAAI,EAAE,OAAO;;EACb,MAAM,EAAE,CAAC;;;;;;AAOX,MAAO;EACL,QAAQ,EAAE,OAAO;;;;;;;;AAUnB;MACO;EACL,cAAc,EAAE,IAAI;;;;;;;;;AAWtB;;;oBAGqB;EACnB,kBAAkB,EAAE,MAAM;;EAC1B,MAAM,EAAE,OAAO;;;;;;AAOjB;oBACqB;EACnB,MAAM,EAAE,OAAO;;;;;AAOjB;uBACwB;EACtB,MAAM,EAAE,CAAC;EACT,OAAO,EAAE,CAAC;;;;;;AAQZ,KAAM;EACJ,WAAW,EAAE,MAAM;;;;;;;;;AAWrB;mBACoB;EAClB,UAAU,EAAE,UAAU;;EACtB,OAAO,EAAE,CAAC;;;;;;;;AASZ;+CACgD;EAC9C,MAAM,EAAE,IAAI;;;;;;AAQd,oBAAqB;EACnB,kBAAkB,EAAE,SAAS;;EAC7B,UAAU,EAAE,WAAW;;;;;;;;AASzB;+CACgD;EAC9C,kBAAkB,EAAE,IAAI;;;;;AAO1B,QAAS;EACP,MAAM,EAAE,iBAAiB;EACzB,MAAM,EAAE,KAAK;EACb,OAAO,EAAE,qBAAqB;;;;;;AAQhC,MAAO;EACL,MAAM,EAAE,CAAC;;EACT,OAAO,EAAE,CAAC;;;;;;AAOZ,QAAS;EACP,QAAQ,EAAE,IAAI;;;;;;AAQhB,QAAS;EACP,WAAW,EAAE,IAAI;;;;;;;AAUnB,KAAM;EACJ,eAAe,EAAE,QAAQ;EACzB,cAAc,EAAE,CAAC;;AAGnB;EACG;EACD,OAAO,EAAE,CAAC",
|
4
|
+
"sources": ["../../../scss/normalize.scss"],
|
5
|
+
"names": [],
|
6
|
+
"file": "normalize.css"
|
7
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */img,legend{border:0}legend,td,th{padding:0}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,optgroup,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre,textarea{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}table{border-collapse:collapse;border-spacing:0}
|
data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.abide.js
CHANGED
@@ -4,19 +4,21 @@
|
|
4
4
|
Foundation.libs.abide = {
|
5
5
|
name : 'abide',
|
6
6
|
|
7
|
-
version : '5.
|
7
|
+
version : '5.5.2',
|
8
8
|
|
9
9
|
settings : {
|
10
10
|
live_validate : true,
|
11
|
+
validate_on_blur : true,
|
12
|
+
// validate_on: 'tab', // tab (when user tabs between fields), change (input changes), manual (call custom events)
|
11
13
|
focus_on_invalid : true,
|
12
|
-
error_labels: true, // labels with a for="inputId" will recieve an `error` class
|
13
|
-
error_class: 'error',
|
14
|
+
error_labels : true, // labels with a for="inputId" will recieve an `error` class
|
15
|
+
error_class : 'error',
|
14
16
|
timeout : 1000,
|
15
17
|
patterns : {
|
16
|
-
alpha: /^[a-zA-Z]+$/,
|
18
|
+
alpha : /^[a-zA-Z]+$/,
|
17
19
|
alpha_numeric : /^[a-zA-Z0-9]+$/,
|
18
|
-
integer: /^[-+]?\d+$/,
|
19
|
-
number: /^[-+]?\d*(?:[\.\,]\d+)?$/,
|
20
|
+
integer : /^[-+]?\d+$/,
|
21
|
+
number : /^[-+]?\d*(?:[\.\,]\d+)?$/,
|
20
22
|
|
21
23
|
// amex, visa, diners
|
22
24
|
card : /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,
|
@@ -25,26 +27,27 @@
|
|
25
27
|
// http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#valid-e-mail-address
|
26
28
|
email : /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/,
|
27
29
|
|
28
|
-
|
30
|
+
// http://blogs.lse.ac.uk/lti/2008/04/23/a-regular-expression-to-match-any-url/
|
31
|
+
url: /^(https?|ftp|file|ssh):\/\/([-;:&=\+\$,\w]+@{1})?([-A-Za-z0-9\.]+)+:?(\d+)?((\/[-\+~%\/\.\w]+)?\??([-\+=&;%@\.\w]+)?#?([\w]+)?)?/,
|
29
32
|
// abc.de
|
30
|
-
domain: /^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,
|
33
|
+
domain : /^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,8}$/,
|
31
34
|
|
32
|
-
datetime: /^([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))$/,
|
35
|
+
datetime : /^([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))$/,
|
33
36
|
// YYYY-MM-DD
|
34
|
-
date: /(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))$/,
|
37
|
+
date : /(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))$/,
|
35
38
|
// HH:MM:SS
|
36
39
|
time : /^(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}$/,
|
37
|
-
dateISO: /^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/,
|
40
|
+
dateISO : /^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/,
|
38
41
|
// MM/DD/YYYY
|
39
42
|
month_day_year : /^(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.]\d{4}$/,
|
40
43
|
// DD/MM/YYYY
|
41
44
|
day_month_year : /^(0[1-9]|[12][0-9]|3[01])[- \/.](0[1-9]|1[012])[- \/.]\d{4}$/,
|
42
45
|
|
43
46
|
// #FFF or #FFFFFF
|
44
|
-
color: /^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/
|
47
|
+
color : /^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/
|
45
48
|
},
|
46
49
|
validators : {
|
47
|
-
equalTo: function(el, required, parent) {
|
50
|
+
equalTo : function (el, required, parent) {
|
48
51
|
var from = document.getElementById(el.getAttribute(this.add_namespace('data-equalto'))).value,
|
49
52
|
to = el.value,
|
50
53
|
valid = (from === to);
|
@@ -67,34 +70,71 @@
|
|
67
70
|
|
68
71
|
this.invalid_attr = this.add_namespace('data-invalid');
|
69
72
|
|
73
|
+
function validate(originalSelf, e) {
|
74
|
+
clearTimeout(self.timer);
|
75
|
+
self.timer = setTimeout(function () {
|
76
|
+
self.validate([originalSelf], e);
|
77
|
+
}.bind(originalSelf), settings.timeout);
|
78
|
+
}
|
79
|
+
|
80
|
+
|
70
81
|
form
|
71
82
|
.off('.abide')
|
72
|
-
.on('submit.fndtn.abide
|
83
|
+
.on('submit.fndtn.abide', function (e) {
|
73
84
|
var is_ajax = /ajax/i.test(self.S(this).attr(self.attr_name()));
|
74
|
-
return self.validate(self.S(this).find('input, textarea, select').get(), e, is_ajax);
|
85
|
+
return self.validate(self.S(this).find('input, textarea, select').not(":hidden, [data-abide-ignore]").get(), e, is_ajax);
|
86
|
+
})
|
87
|
+
.on('validate.fndtn.abide', function (e) {
|
88
|
+
if (settings.validate_on === 'manual') {
|
89
|
+
self.validate([e.target], e);
|
90
|
+
}
|
75
91
|
})
|
76
|
-
.on('reset', function() {
|
77
|
-
return self.reset($(this));
|
92
|
+
.on('reset', function (e) {
|
93
|
+
return self.reset($(this), e);
|
78
94
|
})
|
79
|
-
.find('input, textarea, select')
|
95
|
+
.find('input, textarea, select').not(":hidden, [data-abide-ignore]")
|
80
96
|
.off('.abide')
|
81
97
|
.on('blur.fndtn.abide change.fndtn.abide', function (e) {
|
82
|
-
|
98
|
+
// old settings fallback
|
99
|
+
// will be deprecated with F6 release
|
100
|
+
if (settings.validate_on_blur && settings.validate_on_blur === true) {
|
101
|
+
validate(this, e);
|
102
|
+
}
|
103
|
+
// new settings combining validate options into one setting
|
104
|
+
if (settings.validate_on === 'change') {
|
105
|
+
validate(this, e);
|
106
|
+
}
|
83
107
|
})
|
84
108
|
.on('keydown.fndtn.abide', function (e) {
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
109
|
+
// old settings fallback
|
110
|
+
// will be deprecated with F6 release
|
111
|
+
if (settings.live_validate && settings.live_validate === true && e.which != 9) {
|
112
|
+
validate(this, e);
|
113
|
+
}
|
114
|
+
// new settings combining validate options into one setting
|
115
|
+
if (settings.validate_on === 'tab' && e.which === 9) {
|
116
|
+
validate(this, e);
|
90
117
|
}
|
118
|
+
else if (settings.validate_on === 'change') {
|
119
|
+
validate(this, e);
|
120
|
+
}
|
121
|
+
})
|
122
|
+
.on('focus', function (e) {
|
123
|
+
if (navigator.userAgent.match(/iPad|iPhone|Android|BlackBerry|Windows Phone|webOS/i)) {
|
124
|
+
$('html, body').animate({
|
125
|
+
scrollTop: $(e.target).offset().top
|
126
|
+
}, 100);
|
127
|
+
}
|
91
128
|
});
|
92
129
|
},
|
93
130
|
|
94
|
-
reset : function (form) {
|
95
|
-
|
96
|
-
|
97
|
-
|
131
|
+
reset : function (form, e) {
|
132
|
+
var self = this;
|
133
|
+
form.removeAttr(self.invalid_attr);
|
134
|
+
|
135
|
+
$('[' + self.invalid_attr + ']', form).removeAttr(self.invalid_attr);
|
136
|
+
$('.' + self.settings.error_class, form).not('small').removeClass(self.settings.error_class);
|
137
|
+
$(':input', form).not(':button, :submit, :reset, :hidden, [data-abide-ignore]').val('').removeAttr(self.invalid_attr);
|
98
138
|
},
|
99
139
|
|
100
140
|
validate : function (els, e, is_ajax) {
|
@@ -104,22 +144,26 @@
|
|
104
144
|
submit_event = /submit/.test(e.type);
|
105
145
|
|
106
146
|
// Has to count up to make sure the focus gets applied to the top error
|
107
|
-
for (var i=0; i < validation_count; i++) {
|
147
|
+
for (var i = 0; i < validation_count; i++) {
|
108
148
|
if (!validations[i] && (submit_event || is_ajax)) {
|
109
|
-
if (this.settings.focus_on_invalid)
|
110
|
-
|
149
|
+
if (this.settings.focus_on_invalid) {
|
150
|
+
els[i].focus();
|
151
|
+
}
|
152
|
+
form.trigger('invalid.fndtn.abide');
|
111
153
|
this.S(els[i]).closest('form').attr(this.invalid_attr, '');
|
112
154
|
return false;
|
113
155
|
}
|
114
156
|
}
|
115
157
|
|
116
158
|
if (submit_event || is_ajax) {
|
117
|
-
form.trigger('valid');
|
159
|
+
form.trigger('valid.fndtn.abide');
|
118
160
|
}
|
119
161
|
|
120
162
|
form.removeAttr(this.invalid_attr);
|
121
163
|
|
122
|
-
if (is_ajax)
|
164
|
+
if (is_ajax) {
|
165
|
+
return false;
|
166
|
+
}
|
123
167
|
|
124
168
|
return true;
|
125
169
|
},
|
@@ -156,6 +200,7 @@
|
|
156
200
|
return [el, pattern, required];
|
157
201
|
},
|
158
202
|
|
203
|
+
// TODO: Break this up into smaller methods, getting hard to read.
|
159
204
|
check_validation_and_apply_styles : function (el_patterns) {
|
160
205
|
var i = el_patterns.length,
|
161
206
|
validations = [],
|
@@ -167,8 +212,8 @@
|
|
167
212
|
value = el.value.trim(),
|
168
213
|
direct_parent = this.S(el).parent(),
|
169
214
|
validator = el.getAttribute(this.add_namespace('data-abide-validator')),
|
170
|
-
is_radio = el.type ===
|
171
|
-
is_checkbox = el.type ===
|
215
|
+
is_radio = el.type === 'radio',
|
216
|
+
is_checkbox = el.type === 'checkbox',
|
172
217
|
label = this.S('label[for="' + el.getAttribute('id') + '"]'),
|
173
218
|
valid_length = (required) ? (el.value.length > 0) : true,
|
174
219
|
el_validations = [];
|
@@ -176,7 +221,7 @@
|
|
176
221
|
var parent, valid;
|
177
222
|
|
178
223
|
// support old way to do equalTo validations
|
179
|
-
if(el.getAttribute(this.add_namespace('data-equalto'))) { validator =
|
224
|
+
if (el.getAttribute(this.add_namespace('data-equalto'))) { validator = 'equalTo' }
|
180
225
|
|
181
226
|
if (!direct_parent.is('label')) {
|
182
227
|
parent = direct_parent;
|
@@ -184,15 +229,36 @@
|
|
184
229
|
parent = direct_parent.parent();
|
185
230
|
}
|
186
231
|
|
187
|
-
if (validator) {
|
188
|
-
valid = this.settings.validators[validator].apply(this, [el, required, parent]);
|
189
|
-
el_validations.push(valid);
|
190
|
-
}
|
191
|
-
|
192
232
|
if (is_radio && required) {
|
193
233
|
el_validations.push(this.valid_radio(el, required));
|
194
234
|
} else if (is_checkbox && required) {
|
195
235
|
el_validations.push(this.valid_checkbox(el, required));
|
236
|
+
|
237
|
+
} else if (validator) {
|
238
|
+
// Validate using each of the specified (space-delimited) validators.
|
239
|
+
var validators = validator.split(' ');
|
240
|
+
var last_valid = true, all_valid = true;
|
241
|
+
for (var iv = 0; iv < validators.length; iv++) {
|
242
|
+
valid = this.settings.validators[validators[iv]].apply(this, [el, required, parent])
|
243
|
+
el_validations.push(valid);
|
244
|
+
all_valid = valid && last_valid;
|
245
|
+
last_valid = valid;
|
246
|
+
}
|
247
|
+
if (all_valid) {
|
248
|
+
this.S(el).removeAttr(this.invalid_attr);
|
249
|
+
parent.removeClass('error');
|
250
|
+
if (label.length > 0 && this.settings.error_labels) {
|
251
|
+
label.removeClass(this.settings.error_class).removeAttr('role');
|
252
|
+
}
|
253
|
+
$(el).triggerHandler('valid');
|
254
|
+
} else {
|
255
|
+
this.S(el).attr(this.invalid_attr, '');
|
256
|
+
parent.addClass('error');
|
257
|
+
if (label.length > 0 && this.settings.error_labels) {
|
258
|
+
label.addClass(this.settings.error_class).attr('role', 'alert');
|
259
|
+
}
|
260
|
+
$(el).triggerHandler('invalid');
|
261
|
+
}
|
196
262
|
} else {
|
197
263
|
|
198
264
|
if (el_patterns[i][1].test(value) && valid_length ||
|
@@ -202,9 +268,8 @@
|
|
202
268
|
el_validations.push(false);
|
203
269
|
}
|
204
270
|
|
205
|
-
el_validations = [el_validations.every(function(valid){return valid;})];
|
206
|
-
|
207
|
-
if(el_validations[0]){
|
271
|
+
el_validations = [el_validations.every(function (valid) {return valid;})];
|
272
|
+
if (el_validations[0]) {
|
208
273
|
this.S(el).removeAttr(this.invalid_attr);
|
209
274
|
el.setAttribute('aria-invalid', 'false');
|
210
275
|
el.removeAttribute('aria-describedby');
|
@@ -218,9 +283,11 @@
|
|
218
283
|
el.setAttribute('aria-invalid', 'true');
|
219
284
|
|
220
285
|
// Try to find the error associated with the input
|
221
|
-
var errorElem = parent.find('small.'+this.settings.error_class, 'span.'+this.settings.error_class);
|
222
|
-
var errorID = errorElem.length > 0 ? errorElem[0].id :
|
223
|
-
if (errorID.length > 0)
|
286
|
+
var errorElem = parent.find('small.' + this.settings.error_class, 'span.' + this.settings.error_class);
|
287
|
+
var errorID = errorElem.length > 0 ? errorElem[0].id : '';
|
288
|
+
if (errorID.length > 0) {
|
289
|
+
el.setAttribute('aria-describedby', errorID);
|
290
|
+
}
|
224
291
|
|
225
292
|
// el.setAttribute('aria-describedby', $(el).find('.error')[0].id);
|
226
293
|
parent.addClass(this.settings.error_class);
|
@@ -230,20 +297,21 @@
|
|
230
297
|
$(el).triggerHandler('invalid');
|
231
298
|
}
|
232
299
|
}
|
233
|
-
validations.
|
300
|
+
validations = validations.concat(el_validations);
|
234
301
|
}
|
235
|
-
validations = [validations.every(function(valid){return valid;})];
|
236
302
|
return validations;
|
237
303
|
},
|
238
304
|
|
239
|
-
valid_checkbox : function(el, required) {
|
305
|
+
valid_checkbox : function (el, required) {
|
240
306
|
var el = this.S(el),
|
241
|
-
valid = (el.is(':checked') || !required);
|
307
|
+
valid = (el.is(':checked') || !required || el.get(0).getAttribute('disabled'));
|
242
308
|
|
243
309
|
if (valid) {
|
244
310
|
el.removeAttr(this.invalid_attr).parent().removeClass(this.settings.error_class);
|
311
|
+
$(el).triggerHandler('valid');
|
245
312
|
} else {
|
246
313
|
el.attr(this.invalid_attr, '').parent().addClass(this.settings.error_class);
|
314
|
+
$(el).triggerHandler('invalid');
|
247
315
|
}
|
248
316
|
|
249
317
|
return valid;
|
@@ -251,28 +319,42 @@
|
|
251
319
|
|
252
320
|
valid_radio : function (el, required) {
|
253
321
|
var name = el.getAttribute('name'),
|
254
|
-
group = this.S(el).closest('[data-' + this.attr_name(true) + ']').find("[name='"+name+"']"),
|
322
|
+
group = this.S(el).closest('[data-' + this.attr_name(true) + ']').find("[name='" + name + "']"),
|
255
323
|
count = group.length,
|
256
|
-
valid = false
|
324
|
+
valid = false,
|
325
|
+
disabled = false;
|
257
326
|
|
258
327
|
// Has to count up to make sure the focus gets applied to the top error
|
259
|
-
|
260
|
-
|
261
|
-
|
328
|
+
for (var i=0; i < count; i++) {
|
329
|
+
if( group[i].getAttribute('disabled') ){
|
330
|
+
disabled=true;
|
331
|
+
valid=true;
|
332
|
+
} else {
|
333
|
+
if (group[i].checked){
|
334
|
+
valid = true;
|
335
|
+
} else {
|
336
|
+
if( disabled ){
|
337
|
+
valid = false;
|
338
|
+
}
|
339
|
+
}
|
340
|
+
}
|
341
|
+
}
|
262
342
|
|
263
343
|
// Has to count up to make sure the focus gets applied to the top error
|
264
|
-
for (var i=0; i < count; i++) {
|
344
|
+
for (var i = 0; i < count; i++) {
|
265
345
|
if (valid) {
|
266
346
|
this.S(group[i]).removeAttr(this.invalid_attr).parent().removeClass(this.settings.error_class);
|
347
|
+
$(group[i]).triggerHandler('valid');
|
267
348
|
} else {
|
268
349
|
this.S(group[i]).attr(this.invalid_attr, '').parent().addClass(this.settings.error_class);
|
350
|
+
$(group[i]).triggerHandler('invalid');
|
269
351
|
}
|
270
352
|
}
|
271
353
|
|
272
354
|
return valid;
|
273
355
|
},
|
274
356
|
|
275
|
-
valid_equal: function(el, required, parent) {
|
357
|
+
valid_equal : function (el, required, parent) {
|
276
358
|
var from = document.getElementById(el.getAttribute(this.add_namespace('data-equalto'))).value,
|
277
359
|
to = el.value,
|
278
360
|
valid = (from === to);
|
@@ -280,17 +362,21 @@
|
|
280
362
|
if (valid) {
|
281
363
|
this.S(el).removeAttr(this.invalid_attr);
|
282
364
|
parent.removeClass(this.settings.error_class);
|
283
|
-
if (label.length > 0 && settings.error_labels)
|
365
|
+
if (label.length > 0 && settings.error_labels) {
|
366
|
+
label.removeClass(this.settings.error_class);
|
367
|
+
}
|
284
368
|
} else {
|
285
369
|
this.S(el).attr(this.invalid_attr, '');
|
286
370
|
parent.addClass(this.settings.error_class);
|
287
|
-
if (label.length > 0 && settings.error_labels)
|
371
|
+
if (label.length > 0 && settings.error_labels) {
|
372
|
+
label.addClass(this.settings.error_class);
|
373
|
+
}
|
288
374
|
}
|
289
375
|
|
290
376
|
return valid;
|
291
377
|
},
|
292
378
|
|
293
|
-
valid_oneof: function(el, required, parent, doNotValidateOthers) {
|
379
|
+
valid_oneof : function (el, required, parent, doNotValidateOthers) {
|
294
380
|
var el = this.S(el),
|
295
381
|
others = this.S('[' + this.add_namespace('data-oneof') + ']'),
|
296
382
|
valid = others.filter(':checked').length > 0;
|
@@ -303,12 +389,20 @@
|
|
303
389
|
|
304
390
|
if (!doNotValidateOthers) {
|
305
391
|
var _this = this;
|
306
|
-
others.each(function() {
|
392
|
+
others.each(function () {
|
307
393
|
_this.valid_oneof.call(_this, this, null, null, true);
|
308
394
|
});
|
309
395
|
}
|
310
396
|
|
311
397
|
return valid;
|
398
|
+
},
|
399
|
+
|
400
|
+
reflow : function(scope, options) {
|
401
|
+
var self = this,
|
402
|
+
form = self.S('[' + this.attr_name() + ']').attr('novalidate', 'novalidate');
|
403
|
+
self.S(form).each(function (idx, el) {
|
404
|
+
self.events(el);
|
405
|
+
});
|
312
406
|
}
|
313
407
|
};
|
314
408
|
}(jQuery, window, window.document));
|
data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.accordion.js
CHANGED
@@ -4,13 +4,13 @@
|
|
4
4
|
Foundation.libs.accordion = {
|
5
5
|
name : 'accordion',
|
6
6
|
|
7
|
-
version : '5.
|
7
|
+
version : '5.5.2',
|
8
8
|
|
9
9
|
settings : {
|
10
|
-
content_class: 'content',
|
11
|
-
active_class: 'active',
|
12
|
-
multi_expand: false,
|
13
|
-
toggleable: true,
|
10
|
+
content_class : 'content',
|
11
|
+
active_class : 'active',
|
12
|
+
multi_expand : false,
|
13
|
+
toggleable : true,
|
14
14
|
callback : function () {}
|
15
15
|
},
|
16
16
|
|
@@ -18,29 +18,35 @@
|
|
18
18
|
this.bindings(method, options);
|
19
19
|
},
|
20
20
|
|
21
|
-
events : function () {
|
21
|
+
events : function (instance) {
|
22
22
|
var self = this;
|
23
23
|
var S = this.S;
|
24
|
+
self.create(this.S(instance));
|
25
|
+
|
24
26
|
S(this.scope)
|
25
27
|
.off('.fndtn.accordion')
|
26
|
-
.on('click.fndtn.accordion', '[' + this.attr_name() + '] > dd > a', function (e) {
|
28
|
+
.on('click.fndtn.accordion', '[' + this.attr_name() + '] > dd > a, [' + this.attr_name() + '] > li > a', function (e) {
|
27
29
|
var accordion = S(this).closest('[' + self.attr_name() + ']'),
|
28
30
|
groupSelector = self.attr_name() + '=' + accordion.attr(self.attr_name()),
|
29
|
-
settings = accordion.data(self.attr_name(true) + '-init'),
|
31
|
+
settings = accordion.data(self.attr_name(true) + '-init') || self.settings,
|
30
32
|
target = S('#' + this.href.split('#')[1]),
|
31
|
-
aunts = $('> dd', accordion),
|
32
|
-
siblings = aunts.children('.'+settings.content_class),
|
33
|
+
aunts = $('> dd, > li', accordion),
|
34
|
+
siblings = aunts.children('.' + settings.content_class),
|
33
35
|
active_content = siblings.filter('.' + settings.active_class);
|
36
|
+
|
34
37
|
e.preventDefault();
|
35
38
|
|
36
39
|
if (accordion.attr(self.attr_name())) {
|
37
|
-
siblings = siblings.add('[' + groupSelector + '] dd > .'+settings.content_class);
|
38
|
-
aunts = aunts.add('[' + groupSelector + '] dd');
|
40
|
+
siblings = siblings.add('[' + groupSelector + '] dd > ' + '.' + settings.content_class + ', [' + groupSelector + '] li > ' + '.' + settings.content_class);
|
41
|
+
aunts = aunts.add('[' + groupSelector + '] dd, [' + groupSelector + '] li');
|
39
42
|
}
|
40
43
|
|
41
44
|
if (settings.toggleable && target.is(active_content)) {
|
42
|
-
target.parent('dd').toggleClass(settings.active_class, false);
|
45
|
+
target.parent('dd, li').toggleClass(settings.active_class, false);
|
43
46
|
target.toggleClass(settings.active_class, false);
|
47
|
+
S(this).attr('aria-expanded', function(i, attr){
|
48
|
+
return attr === 'true' ? 'false' : 'true';
|
49
|
+
});
|
44
50
|
settings.callback(target);
|
45
51
|
target.triggerHandler('toggled', [accordion]);
|
46
52
|
accordion.triggerHandler('toggled', [target]);
|
@@ -50,15 +56,31 @@
|
|
50
56
|
if (!settings.multi_expand) {
|
51
57
|
siblings.removeClass(settings.active_class);
|
52
58
|
aunts.removeClass(settings.active_class);
|
59
|
+
aunts.children('a').attr('aria-expanded','false');
|
53
60
|
}
|
54
61
|
|
55
62
|
target.addClass(settings.active_class).parent().addClass(settings.active_class);
|
56
63
|
settings.callback(target);
|
57
64
|
target.triggerHandler('toggled', [accordion]);
|
58
65
|
accordion.triggerHandler('toggled', [target]);
|
66
|
+
S(this).attr('aria-expanded','true');
|
59
67
|
});
|
60
68
|
},
|
61
69
|
|
70
|
+
create: function($instance) {
|
71
|
+
var self = this,
|
72
|
+
accordion = $instance,
|
73
|
+
aunts = $('> .accordion-navigation', accordion),
|
74
|
+
settings = accordion.data(self.attr_name(true) + '-init') || self.settings;
|
75
|
+
|
76
|
+
aunts.children('a').attr('aria-expanded','false');
|
77
|
+
aunts.has('.' + settings.content_class + '.' + settings.active_class).children('a').attr('aria-expanded','true');
|
78
|
+
|
79
|
+
if (settings.multi_expand) {
|
80
|
+
$instance.attr('aria-multiselectable','true');
|
81
|
+
}
|
82
|
+
},
|
83
|
+
|
62
84
|
off : function () {},
|
63
85
|
|
64
86
|
reflow : function () {}
|
data/vendor/assets/stylesheets/bower_components/foundation/js/foundation/foundation.alert.js
CHANGED
@@ -4,10 +4,10 @@
|
|
4
4
|
Foundation.libs.alert = {
|
5
5
|
name : 'alert',
|
6
6
|
|
7
|
-
version : '5.
|
7
|
+
version : '5.5.2',
|
8
8
|
|
9
9
|
settings : {
|
10
|
-
callback: function (){}
|
10
|
+
callback : function () {}
|
11
11
|
},
|
12
12
|
|
13
13
|
init : function (scope, method, options) {
|
@@ -19,19 +19,19 @@
|
|
19
19
|
S = this.S;
|
20
20
|
|
21
21
|
$(this.scope).off('.alert').on('click.fndtn.alert', '[' + this.attr_name() + '] .close', function (e) {
|
22
|
-
|
23
|
-
|
22
|
+
var alertBox = S(this).closest('[' + self.attr_name() + ']'),
|
23
|
+
settings = alertBox.data(self.attr_name(true) + '-init') || self.settings;
|
24
24
|
|
25
25
|
e.preventDefault();
|
26
26
|
if (Modernizr.csstransitions) {
|
27
|
-
alertBox.addClass(
|
28
|
-
alertBox.on('transitionend webkitTransitionEnd oTransitionEnd', function(e) {
|
29
|
-
S(this).trigger('close
|
27
|
+
alertBox.addClass('alert-close');
|
28
|
+
alertBox.on('transitionend webkitTransitionEnd oTransitionEnd', function (e) {
|
29
|
+
S(this).trigger('close.fndtn.alert').remove();
|
30
30
|
settings.callback();
|
31
31
|
});
|
32
32
|
} else {
|
33
33
|
alertBox.fadeOut(300, function () {
|
34
|
-
S(this).trigger('close
|
34
|
+
S(this).trigger('close.fndtn.alert').remove();
|
35
35
|
settings.callback();
|
36
36
|
});
|
37
37
|
}
|