1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update tabs

This commit is contained in:
Luke Pulverenti 2015-09-01 10:01:59 -04:00
parent 382dea3748
commit 9ea282ff39
129 changed files with 371 additions and 418 deletions

View file

@ -1,7 +1,7 @@
{ {
"name": "iron-icon", "name": "iron-icon",
"private": true, "private": true,
"version": "1.0.3", "version": "1.0.4",
"license": "http://polymer.github.io/LICENSE.txt", "license": "http://polymer.github.io/LICENSE.txt",
"description": "An element that supports displaying an icon", "description": "An element that supports displaying an icon",
"main": "iron-icon.html", "main": "iron-icon.html",
@ -31,11 +31,11 @@
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
}, },
"homepage": "https://github.com/polymerelements/iron-icon", "homepage": "https://github.com/polymerelements/iron-icon",
"_release": "1.0.3", "_release": "1.0.4",
"_resolution": { "_resolution": {
"type": "version", "type": "version",
"tag": "v1.0.3", "tag": "v1.0.4",
"commit": "818c2d2af2d3287a444e4cf0a19c2b5717d480e8" "commit": "5a5e6cad097561ff9d182ad2b8e20bb822d6f640"
}, },
"_source": "git://github.com/polymerelements/iron-icon.git", "_source": "git://github.com/polymerelements/iron-icon.git",
"_target": "^1.0.0", "_target": "^1.0.0",

View file

@ -1,7 +1,7 @@
{ {
"name": "iron-icon", "name": "iron-icon",
"private": true, "private": true,
"version": "1.0.3", "version": "1.0.4",
"license": "http://polymer.github.io/LICENSE.txt", "license": "http://polymer.github.io/LICENSE.txt",
"description": "An element that supports displaying an icon", "description": "An element that supports displaying an icon",
"main": "iron-icon.html", "main": "iron-icon.html",

View file

@ -92,7 +92,6 @@ Custom property | Description | Default
</style> </style>
<template> <template>
<iron-meta id="meta" type="iconset"></iron-meta>
</template> </template>
<script> <script>
@ -129,7 +128,12 @@ Custom property | Description | Default
src: { src: {
type: String, type: String,
observer: '_srcChanged' observer: '_srcChanged'
},
_meta: {
value: Polymer.Base.create('iron-meta', {type: 'iconset'})
} }
}, },
_DEFAULT_ICONSET: 'icons', _DEFAULT_ICONSET: 'icons',
@ -153,7 +157,7 @@ Custom property | Description | Default
_updateIcon: function() { _updateIcon: function() {
if (this._usesIconset()) { if (this._usesIconset()) {
if (this._iconsetName) { if (this._iconsetName) {
this._iconset = this.$.meta.byKey(this._iconsetName); this._iconset = this._meta.byKey(this._iconsetName);
if (this._iconset) { if (this._iconset) {
this._iconset.applyIcon(this, this._iconName, this.theme); this._iconset.applyIcon(this, this._iconName, this.theme);
} else { } else {

View file

@ -1,6 +1,6 @@
{ {
"name": "paper-radio-button", "name": "paper-radio-button",
"version": "1.0.6", "version": "1.0.7",
"description": "A material design radio button", "description": "A material design radio button",
"authors": [ "authors": [
"The Polymer Authors" "The Polymer Authors"
@ -23,20 +23,21 @@
"paper-ripple": "PolymerElements/paper-ripple#^1.0.0", "paper-ripple": "PolymerElements/paper-ripple#^1.0.0",
"paper-styles": "PolymerLabs/paper-styles#^1.0.0", "paper-styles": "PolymerLabs/paper-styles#^1.0.0",
"paper-behaviors": "PolymerElements/paper-behaviors#^1.0.0", "paper-behaviors": "PolymerElements/paper-behaviors#^1.0.0",
"iron-checked-element-behavior": "PolymerElements/iron-checked-element-behavior#^1.0.0",
"polymer": "Polymer/polymer#^1.0.0" "polymer": "Polymer/polymer#^1.0.0"
}, },
"devDependencies": { "devDependencies": {
"web-component-tester": "*", "web-component-tester": "Polymer/web-component-tester#^3.3.0",
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0", "iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
"test-fixture": "PolymerElements/test-fixture#^1.0.0", "test-fixture": "PolymerElements/test-fixture#^1.0.0",
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0", "iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
}, },
"_release": "1.0.6", "_release": "1.0.7",
"_resolution": { "_resolution": {
"type": "version", "type": "version",
"tag": "v1.0.6", "tag": "v1.0.7",
"commit": "85e8553c117d9ad10e7faa8d94f815455a675bd3" "commit": "63a78475ecc28dfbc849e63001f0c8d001811e44"
}, },
"_source": "git://github.com/PolymerElements/paper-radio-button.git", "_source": "git://github.com/PolymerElements/paper-radio-button.git",
"_target": "~1.0.5", "_target": "~1.0.5",

View file

@ -1,6 +1,6 @@
{ {
"name": "paper-radio-button", "name": "paper-radio-button",
"version": "1.0.6", "version": "1.0.7",
"description": "A material design radio button", "description": "A material design radio button",
"authors": [ "authors": [
"The Polymer Authors" "The Polymer Authors"
@ -23,10 +23,11 @@
"paper-ripple": "PolymerElements/paper-ripple#^1.0.0", "paper-ripple": "PolymerElements/paper-ripple#^1.0.0",
"paper-styles": "PolymerLabs/paper-styles#^1.0.0", "paper-styles": "PolymerLabs/paper-styles#^1.0.0",
"paper-behaviors": "PolymerElements/paper-behaviors#^1.0.0", "paper-behaviors": "PolymerElements/paper-behaviors#^1.0.0",
"iron-checked-element-behavior": "PolymerElements/iron-checked-element-behavior#^1.0.0",
"polymer": "Polymer/polymer#^1.0.0" "polymer": "Polymer/polymer#^1.0.0"
}, },
"devDependencies": { "devDependencies": {
"web-component-tester": "*", "web-component-tester": "Polymer/web-component-tester#^3.3.0",
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0", "iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
"test-fixture": "PolymerElements/test-fixture#^1.0.0", "test-fixture": "PolymerElements/test-fixture#^1.0.0",
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0", "iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0",

View file

@ -1,4 +1,5 @@
/* /**
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved. Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt

View file

@ -11,6 +11,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<link rel="import" href="../paper-ripple/paper-ripple.html"> <link rel="import" href="../paper-ripple/paper-ripple.html">
<link rel="import" href="../paper-styles/default-theme.html"> <link rel="import" href="../paper-styles/default-theme.html">
<link rel="import" href="../paper-behaviors/paper-inky-focus-behavior.html"> <link rel="import" href="../paper-behaviors/paper-inky-focus-behavior.html">
<link rel="import" href="../iron-checked-element-behavior/iron-checked-element-behavior.html">
<!-- <!--
`paper-radio-button` is a button that can be either checked or unchecked. `paper-radio-button` is a button that can be either checked or unchecked.
@ -56,7 +57,7 @@ Custom property | Description | Default
<paper-ripple id="ink" class="circle" center checked$="[[checked]]"></paper-ripple> <paper-ripple id="ink" class="circle" center checked$="[[checked]]"></paper-ripple>
</div> </div>
<div id="radioLabel" aria-hidden="true"><content></content></div> <div id="radioLabel"><content></content></div>
</template> </template>
@ -65,7 +66,8 @@ Custom property | Description | Default
is: 'paper-radio-button', is: 'paper-radio-button',
behaviors: [ behaviors: [
Polymer.PaperInkyFocusBehavior Polymer.PaperInkyFocusBehavior,
Polymer.IronCheckedElementBehavior
], ],
hostAttributes: { hostAttributes: {
@ -87,38 +89,30 @@ Custom property | Description | Default
* @event iron-change * @event iron-change
*/ */
/** ariaActiveAttribute: {
* Gets or sets the state, `true` is checked and `false` is unchecked. value: 'aria-checked'
*/
checked: {
type: Boolean,
value: false,
reflectToAttribute: true,
notify: true,
observer: '_checkedChanged'
},
/**
* If true, the button toggles the active state with each tap or press
* of the spacebar.
*/
toggles: {
type: Boolean,
value: true,
reflectToAttribute: true
} }
}, },
attached: function() { attached: function() {
var trimmedText = Polymer.dom(this).textContent.trim();
if (trimmedText === '') {
this.$.radioLabel.hidden = true;
}
// Don't stomp over a user-set aria-label.
if (trimmedText !== '' && !this.getAttribute('aria-label')) {
this.setAttribute('aria-label', trimmedText);
}
this._isReady = true; this._isReady = true;
// Don't stomp over a user-set aria-label.
if (!this.getAttribute('aria-label')) {
this.updateAriaLabel();
}
},
/**
* Update the checkbox aria-label. This is a temporary workaround not
* being able to observe changes in <content>
* (see: https://github.com/Polymer/polymer/issues/1773)
*
* Call this if you manually change the contents of the checkbox
* and want the aria-label to match the new contents.
*/
updateAriaLabel: function() {
this.setAttribute('aria-label', Polymer.dom(this).textContent.trim());
}, },
_buttonStateChanged: function() { _buttonStateChanged: function() {
@ -128,12 +122,6 @@ Custom property | Description | Default
if (this._isReady) { if (this._isReady) {
this.checked = this.active; this.checked = this.active;
} }
},
_checkedChanged: function() {
this.setAttribute('aria-checked', this.checked ? 'true' : 'false');
this.active = this.checked;
this.fire('iron-change');
} }
}) })
</script> </script>

View file

@ -50,33 +50,35 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
r1 = fixture('NoLabel'); r1 = fixture('NoLabel');
}); });
test('check button via click', function() { test('check button via click', function(done) {
r1.addEventListener('click', function() { r1.addEventListener('click', function() {
assert.isTrue(r1.getAttribute('aria-checked')); assert.isTrue(r1.getAttribute('aria-checked') == 'true');
assert.isTrue(r1.checked); assert.isTrue(r1.checked);
done(); done();
}); });
MockInteractions.down(r1); MockInteractions.tap(r1);
}); });
test('toggle button via click', function() { test('toggle button via click', function(done) {
r1.checked = true; r1.checked = true;
r1.addEventListener('click', function() { r1.addEventListener('click', function() {
assert.isFalse(r1.getAttribute('aria-checked')); assert.isFalse(r1.getAttribute('aria-checked') == 'true');
assert.isFalse(r1.checked); assert.isFalse(r1.checked);
done(); done();
}); });
MockInteractions.down(r1); MockInteractions.tap(r1);
}); });
test('disabled button cannot be clicked', function() { test('disabled button cannot be clicked', function(done) {
r1.disabled = true; r1.disabled = true;
r1.addEventListener('click', function() { r1.checked = true;
assert.isTrue(r1.getAttribute('aria-checked')); MockInteractions.tap(r1);
setTimeout(function() {
assert.isTrue(r1.getAttribute('aria-checked') == 'true');
assert.isTrue(r1.checked); assert.isTrue(r1.checked);
done(); done();
}); }, 1);
MockInteractions.down(r1);
}); });
}); });
@ -106,6 +108,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
var c = fixture('AriaLabel'); var c = fixture('AriaLabel');
assert.isTrue(c.getAttribute('aria-label') == "Batman"); assert.isTrue(c.getAttribute('aria-label') == "Batman");
}); });
a11ySuite('NoLabel');
a11ySuite('WithLabel');
a11ySuite('AriaLabel');
}); });
</script> </script>
</body> </body>

View file

@ -1,6 +1,6 @@
{ {
"name": "paper-toggle-button", "name": "paper-toggle-button",
"version": "1.0.6", "version": "1.0.7",
"description": "A material design toggle button control", "description": "A material design toggle button control",
"authors": [ "authors": [
"The Polymer Authors" "The Polymer Authors"
@ -20,24 +20,25 @@
"homepage": "https://github.com/PolymerElements/paper-toggle-button", "homepage": "https://github.com/PolymerElements/paper-toggle-button",
"ignore": [], "ignore": [],
"dependencies": { "dependencies": {
"polymer": "Polymer/polymer#^1.1.0",
"paper-ripple": "PolymerElements/paper-ripple#^1.0.0", "paper-ripple": "PolymerElements/paper-ripple#^1.0.0",
"paper-styles": "PolymerElements/paper-styles#^1.0.0", "paper-styles": "PolymerElements/paper-styles#^1.0.0",
"paper-behaviors": "PolymerElements/paper-behaviors#^1.0.0", "paper-behaviors": "PolymerElements/paper-behaviors#^1.0.0",
"polymer": "Polymer/polymer#^1.0.0" "iron-checked-element-behavior": "PolymerElements/iron-checked-element-behavior#^1.0.0"
}, },
"devDependencies": { "devDependencies": {
"web-component-tester": "*", "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
"web-component-tester": "Polymer/web-component-tester#^3.3.0",
"test-fixture": "PolymerElements/test-fixture#^1.0.0", "test-fixture": "PolymerElements/test-fixture#^1.0.0",
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0", "iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0", "iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0",
"iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0", "iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0"
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
}, },
"_release": "1.0.6", "_release": "1.0.7",
"_resolution": { "_resolution": {
"type": "version", "type": "version",
"tag": "v1.0.6", "tag": "v1.0.7",
"commit": "e0bc6b17079da9487c62aaadeb46e3a199a7a112" "commit": "9abc8568d25c83c77394d141b82ff1630649ee7c"
}, },
"_source": "git://github.com/PolymerElements/paper-toggle-button.git", "_source": "git://github.com/PolymerElements/paper-toggle-button.git",
"_target": "~1.0.5", "_target": "~1.0.5",

View file

@ -1,6 +1,6 @@
{ {
"name": "paper-toggle-button", "name": "paper-toggle-button",
"version": "1.0.6", "version": "1.0.7",
"description": "A material design toggle button control", "description": "A material design toggle button control",
"authors": [ "authors": [
"The Polymer Authors" "The Polymer Authors"
@ -20,17 +20,18 @@
"homepage": "https://github.com/PolymerElements/paper-toggle-button", "homepage": "https://github.com/PolymerElements/paper-toggle-button",
"ignore": [], "ignore": [],
"dependencies": { "dependencies": {
"polymer": "Polymer/polymer#^1.1.0",
"paper-ripple": "PolymerElements/paper-ripple#^1.0.0", "paper-ripple": "PolymerElements/paper-ripple#^1.0.0",
"paper-styles": "PolymerElements/paper-styles#^1.0.0", "paper-styles": "PolymerElements/paper-styles#^1.0.0",
"paper-behaviors": "PolymerElements/paper-behaviors#^1.0.0", "paper-behaviors": "PolymerElements/paper-behaviors#^1.0.0",
"polymer": "Polymer/polymer#^1.0.0" "iron-checked-element-behavior": "PolymerElements/iron-checked-element-behavior#^1.0.0"
}, },
"devDependencies": { "devDependencies": {
"web-component-tester": "*", "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
"web-component-tester": "Polymer/web-component-tester#^3.3.0",
"test-fixture": "PolymerElements/test-fixture#^1.0.0", "test-fixture": "PolymerElements/test-fixture#^1.0.0",
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0", "iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0", "iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0",
"iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0", "iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0"
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
} }
} }

View file

@ -1,113 +0,0 @@
/*
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
:host {
display: inline-block;
}
:host([disabled]) {
pointer-events: none;
}
:host(:focus) {
outline:none;
}
:host .toggle-bar {
background-color: var(--paper-toggle-button-unchecked-bar-color, #000000);
@apply(--paper-toggle-button-unchecked-bar);
}
:host .toggle-button {
background-color: var(--paper-toggle-button-unchecked-button-color, --paper-grey-50);
@apply(--paper-toggle-button-unchecked-button);
}
:host([checked]) .toggle-bar {
background-color: var(--paper-toggle-button-checked-bar-color, --google-green-500);
@apply(--paper-toggle-button-checked-bar);
}
:host([checked]) .toggle-button {
background-color: var(--paper-toggle-button-checked-button-color, --google-green-500);
@apply(--paper-toggle-button-checked-button);
}
:host .toggle-ink {
color: var(--paper-toggle-button-unchecked-ink-color, --primary-text-color);
}
:host([checked]) .toggle-ink {
color: var(--paper-toggle-button-checked-ink-color, --google-green-500);
}
/* ID selectors should not be overriden by users. */
#toggleContainer {
position: relative;
width: 36px;
height: 14px;
}
#toggleBar {
position: absolute;
height: 100%;
width: 100%;
border-radius: 8px;
pointer-events: none;
opacity: 0.4;
transition: background-color linear .08s;
}
:host([checked]) #toggleBar {
opacity: 0.5;
}
:host([disabled]) #toggleBar {
background-color: #000;
opacity: 0.12;
}
#toggleButton {
position: absolute;
top: -3px;
height: 20px;
width: 20px;
border-radius: 50%;
box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.6);
transition: -webkit-transform linear .08s, background-color linear .08s;
transition: transform linear .08s, background-color linear .08s;
will-change: transform;
}
#toggleButton.dragging {
-webkit-transition: none;
transition: none;
}
:host([checked]) #toggleButton {
-webkit-transform: translate(16px, 0);
transform: translate(16px, 0);
}
:host([disabled]) #toggleButton {
background-color: #bdbdbd;
opacity: 1;
}
#ink {
position: absolute;
top: -14px;
left: -14px;
width: 48px;
height: 48px;
opacity: 0.5;
pointer-events: none;
}

View file

@ -13,6 +13,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<link rel="import" href="../paper-styles/default-theme.html"> <link rel="import" href="../paper-styles/default-theme.html">
<link rel="import" href="../paper-ripple/paper-ripple.html"> <link rel="import" href="../paper-ripple/paper-ripple.html">
<link rel="import" href="../paper-behaviors/paper-inky-focus-behavior.html"> <link rel="import" href="../paper-behaviors/paper-inky-focus-behavior.html">
<link rel="import" href="../iron-checked-element-behavior/iron-checked-element-behavior.html">
<!-- <!--
`paper-toggle-button` provides a ON/OFF switch that user can toggle the state `paper-toggle-button` provides a ON/OFF switch that user can toggle the state
@ -31,9 +32,9 @@ Custom property | Description | Default
`--paper-toggle-button-unchecked-bar-color` | Slider color when the input is not checked | `#000000` `--paper-toggle-button-unchecked-bar-color` | Slider color when the input is not checked | `#000000`
`--paper-toggle-button-unchecked-button-color` | Button color when the input is not checked | `--paper-grey-50` `--paper-toggle-button-unchecked-button-color` | Button color when the input is not checked | `--paper-grey-50`
`--paper-toggle-button-unchecked-ink-color` | Selected/focus ripple color when the input is not checked | `--dark-primary-color` `--paper-toggle-button-unchecked-ink-color` | Selected/focus ripple color when the input is not checked | `--dark-primary-color`
`--paper-toggle-button-checked-bar-color` | Slider button color when the input is checked | `--google-green-500` `--paper-toggle-button-checked-bar-color` | Slider button color when the input is checked | `--default-primary-color`
`--paper-toggle-button-checked-button-color` | Button color when the input is checked | `--google-green-500` `--paper-toggle-button-checked-button-color` | Button color when the input is checked | `--default-primary-color`
`--paper-toggle-button-checked-ink-color` | Selected/focus ripple color when the input is checked | `--google-green-500` `--paper-toggle-button-checked-ink-color` | Selected/focus ripple color when the input is checked | `--default-primary-color`
`--paper-toggle-button-unchecked-bar` | Mixin applied to the slider when the input is not checked | `{}` `--paper-toggle-button-unchecked-bar` | Mixin applied to the slider when the input is not checked | `{}`
`--paper-toggle-button-unchecked-button` | Mixin applied to the slider button when the input is not checked | `{}` `--paper-toggle-button-unchecked-button` | Mixin applied to the slider button when the input is not checked | `{}`
`--paper-toggle-button-checked-bar` | Mixin applied to the slider when the input is checked | `{}` `--paper-toggle-button-checked-bar` | Mixin applied to the slider when the input is checked | `{}`
@ -46,11 +47,114 @@ Custom property | Description | Default
--> -->
<dom-module id="paper-toggle-button"> <dom-module id="paper-toggle-button">
<link rel="import" type="css" href="paper-toggle-button.css">
<template> <template>
<style>
:host {
display: inline-block;
}
:host([disabled]) {
pointer-events: none;
}
:host(:focus) {
outline:none;
}
:host .toggle-bar {
background-color: var(--paper-toggle-button-unchecked-bar-color, #000000);
@apply(--paper-toggle-button-unchecked-bar);
}
:host .toggle-button {
background-color: var(--paper-toggle-button-unchecked-button-color, --paper-grey-50);
@apply(--paper-toggle-button-unchecked-button);
}
:host([checked]) .toggle-bar {
background-color: var(--paper-toggle-button-checked-bar-color, --default-primary-color);
@apply(--paper-toggle-button-checked-bar);
}
:host([checked]) .toggle-button {
background-color: var(--paper-toggle-button-checked-button-color, --default-primary-color);
@apply(--paper-toggle-button-checked-button);
}
:host .toggle-ink {
color: var(--paper-toggle-button-unchecked-ink-color, --primary-text-color);
}
:host([checked]) .toggle-ink {
color: var(--paper-toggle-button-checked-ink-color, --default-primary-color);
}
/* ID selectors should not be overriden by users. */
#toggleContainer {
position: relative;
width: 36px;
height: 14px;
}
#toggleBar {
position: absolute;
height: 100%;
width: 100%;
border-radius: 8px;
pointer-events: none;
opacity: 0.4;
transition: background-color linear .08s;
}
:host([checked]) #toggleBar {
opacity: 0.5;
}
:host([disabled]) #toggleBar {
background-color: #000;
opacity: 0.12;
}
#toggleButton {
position: absolute;
top: -3px;
height: 20px;
width: 20px;
border-radius: 50%;
box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.6);
transition: -webkit-transform linear .08s, background-color linear .08s;
transition: transform linear .08s, background-color linear .08s;
will-change: transform;
}
#toggleButton.dragging {
-webkit-transition: none;
transition: none;
}
:host([checked]) #toggleButton {
-webkit-transform: translate(16px, 0);
transform: translate(16px, 0);
}
:host([disabled]) #toggleButton {
background-color: #bdbdbd;
opacity: 1;
}
#ink {
position: absolute;
top: -14px;
left: -14px;
width: 48px;
height: 48px;
opacity: 0.5;
pointer-events: none;
}
</style>
<div id="toggleContainer"> <div id="toggleContainer">
<div id="toggleBar" class="toggle-bar"></div> <div id="toggleBar" class="toggle-bar"></div>
<div id="toggleButton" class="toggle-button"> <div id="toggleButton" class="toggle-button">
@ -65,7 +169,8 @@ Custom property | Description | Default
is: 'paper-toggle-button', is: 'paper-toggle-button',
behaviors: [ behaviors: [
Polymer.PaperInkyFocusBehavior Polymer.PaperInkyFocusBehavior,
Polymer.IronCheckedElementBehavior
], ],
hostAttributes: { hostAttributes: {
@ -85,34 +190,6 @@ Custom property | Description | Default
* *
* @event iron-change * @event iron-change
*/ */
/**
* Gets or sets the state, `true` is checked and `false` is unchecked.
*
* @attribute checked
* @type boolean
* @default false
*/
checked: {
type: Boolean,
value: false,
reflectToAttribute: true,
notify: true,
observer: '_checkedChanged'
},
/**
* If true, the button toggles the active state with each tap or press
* of the spacebar.
*
* @attribute toggles
* @type boolean
* @default true
*/
toggles: {
type: Boolean,
value: true,
reflectToAttribute: true
}
}, },
listeners: { listeners: {
@ -133,11 +210,6 @@ Custom property | Description | Default
} }
}, },
_checkedChanged: function(checked) {
this.active = this.checked;
this.fire('iron-change');
},
_ontrack: function(event) { _ontrack: function(event) {
var track = event.detail; var track = event.detail;
if (track.state === 'start') { if (track.state === 'start') {
@ -174,5 +246,4 @@ Custom property | Description | Default
}); });
</script> </script>
</dom-module> </dom-module>

View file

@ -39,33 +39,35 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
b1 = fixture('Basic'); b1 = fixture('Basic');
}); });
test('check button via click', function() { test('check button via click', function(done) {
b1.addEventListener('click', function() { b1.addEventListener('click', function() {
assert.isTrue(b1.getAttribute('aria-checked')); assert.isTrue(b1.getAttribute('aria-pressed') == 'true');
assert.isTrue(b1.checked); assert.isTrue(b1.checked);
done(); done();
}); });
MockInteractions.down(b1); MockInteractions.tap(b1);
}); });
test('toggle button via click', function() { test('toggle button via click', function(done) {
b1.checked = true; b1.checked = true;
b1.addEventListener('click', function() { b1.addEventListener('click', function() {
assert.isFalse(b1.getAttribute('aria-checked')); assert.isFalse(b1.getAttribute('aria-pressed') == 'true');
assert.isFalse(b1.checked); assert.isFalse(b1.checked);
done(); done();
}); });
MockInteractions.down(b1); MockInteractions.tap(b1);
}); });
test('disabled button cannot be clicked', function() { test('disabled button cannot be clicked', function(done) {
b1.disabled = true; b1.disabled = true;
b1.addEventListener('click', function() { b1.checked = true;
assert.isTrue(b1.getAttribute('aria-checked')); MockInteractions.tap(b1);
setTimeout(function() {
assert.isTrue(b1.getAttribute('aria-pressed') == 'true');
assert.isTrue(b1.checked); assert.isTrue(b1.checked);
done(); done();
}); }, 1);
MockInteractions.down(b1);
}); });
}); });
@ -80,6 +82,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
console.log(b1.getAttribute('role')); console.log(b1.getAttribute('role'));
assert.isTrue(b1.getAttribute('role') == 'button'); assert.isTrue(b1.getAttribute('role') == 'button');
}); });
a11ySuite('Basic');
}); });
</script> </script>
</body> </body>

View file

@ -7,7 +7,7 @@
<div id="channelsPage" data-role="page" class="page libraryPage channelsPage pageWithAbsoluteTabs" data-contextname="${HeaderChannels}" data-require="scripts/channels,scripts/channelslatest,scripts/sections"> <div id="channelsPage" data-role="page" class="page libraryPage channelsPage pageWithAbsoluteTabs" data-contextname="${HeaderChannels}" data-require="scripts/channels,scripts/channelslatest,scripts/sections">
<div class="libraryViewNav scopedLibraryViewNav libraryViewNavWithMinHeight"> <div class="libraryViewNav scopedLibraryViewNav libraryViewNavWithMinHeight">
<paper-tabs> <paper-tabs hidescrollbuttons noink>
<paper-tab><iron-icon icon="new-releases"></iron-icon>${TabLatest}</paper-tab> <paper-tab><iron-icon icon="new-releases"></iron-icon>${TabLatest}</paper-tab>
<paper-tab><iron-icon icon="live-tv"></iron-icon>${TabChannels}</paper-tab> <paper-tab><iron-icon icon="live-tv"></iron-icon>${TabChannels}</paper-tab>
</paper-tabs> </paper-tabs>

View file

@ -14,7 +14,7 @@
<div class="editPageInnerContent" style="visibility:hidden;"> <div class="editPageInnerContent" style="visibility:hidden;">
<h1 class="itemName editPageName">&nbsp;</h1> <h1 class="itemName editPageName">&nbsp;</h1>
<br /> <br />
<paper-tabs> <paper-tabs hidescrollbuttons noink>
<paper-tab class="metadataTabButton">${TabMetadata}</paper-tab> <paper-tab class="metadataTabButton">${TabMetadata}</paper-tab>
<paper-tab class="subtitleTabButton hide">${TabSubtitles}</paper-tab> <paper-tab class="subtitleTabButton hide">${TabSubtitles}</paper-tab>
<paper-tab class="collectionItemsTabButton hide">${TabCollectionTitles}</paper-tab> <paper-tab class="collectionItemsTabButton hide">${TabCollectionTitles}</paper-tab>

View file

@ -8,7 +8,7 @@
<div id="indexPage" data-role="page" class="page homePage libraryPage allLibraryPage backdropPage pageWithAbsoluteTabs" data-title="${ButtonHome}" data-backdroptype="movie,series,game,book" data-require="scripts/indexpage"> <div id="indexPage" data-role="page" class="page homePage libraryPage allLibraryPage backdropPage pageWithAbsoluteTabs" data-title="${ButtonHome}" data-backdroptype="movie,series,game,book" data-require="scripts/indexpage">
<div class="libraryViewNav libraryViewNavWithMinHeight"> <div class="libraryViewNav libraryViewNavWithMinHeight">
<paper-tabs> <paper-tabs hidescrollbuttons noink>
<paper-tab><iron-icon icon="home"></iron-icon>${TabHome}</paper-tab> <paper-tab><iron-icon icon="home"></iron-icon>${TabHome}</paper-tab>
<paper-tab><iron-icon icon="navigate-next"></iron-icon>${TabNextUp}</paper-tab> <paper-tab><iron-icon icon="navigate-next"></iron-icon>${TabNextUp}</paper-tab>
<paper-tab><iron-icon icon="favorite"></iron-icon>${TabFavorites}</paper-tab> <paper-tab><iron-icon icon="favorite"></iron-icon>${TabFavorites}</paper-tab>

View file

@ -7,7 +7,7 @@
<div id="liveTvSuggestedPage" data-role="page" class="page libraryPage liveTvPage pageWithAbsoluteTabs" data-contextname="${HeaderLiveTv}" data-backdroptype="series,movie" data-require="scripts/livetvsuggested,livetvcss,scripts/livetvcomponents"> <div id="liveTvSuggestedPage" data-role="page" class="page libraryPage liveTvPage pageWithAbsoluteTabs" data-contextname="${HeaderLiveTv}" data-backdroptype="series,movie" data-require="scripts/livetvsuggested,livetvcss,scripts/livetvcomponents">
<div class="libraryViewNav libraryViewNavWithMinHeight"> <div class="libraryViewNav libraryViewNavWithMinHeight">
<paper-tabs class="papertabs-800 scrollingPaperTabs"> <paper-tabs class="scrollingPaperTabs" hidescrollbuttons noink>
<paper-tab><iron-icon icon="info"></iron-icon>${TabSuggestions}</paper-tab> <paper-tab><iron-icon icon="info"></iron-icon>${TabSuggestions}</paper-tab>
<paper-tab><iron-icon icon="grid-on"></iron-icon>${TabGuide}</paper-tab> <paper-tab><iron-icon icon="grid-on"></iron-icon>${TabGuide}</paper-tab>
<paper-tab><iron-icon icon="live-tv"></iron-icon>${TabChannels}</paper-tab> <paper-tab><iron-icon icon="live-tv"></iron-icon>${TabChannels}</paper-tab>

View file

@ -7,7 +7,7 @@
<div id="moviesPage" data-role="page" class="page libraryPage backdropPage pageWithAbsoluteTabs collectionEditorPage" data-backdroptype="movie" data-require="scripts/moviesrecommended"> <div id="moviesPage" data-role="page" class="page libraryPage backdropPage pageWithAbsoluteTabs collectionEditorPage" data-backdroptype="movie" data-require="scripts/moviesrecommended">
<div class="libraryViewNav libraryViewNavWithMinHeight"> <div class="libraryViewNav libraryViewNavWithMinHeight">
<paper-tabs class="papertabs-800 scrollingPaperTabs"> <paper-tabs class="scrollingPaperTabs" hidescrollbuttons noink>
<paper-tab><iron-icon icon="info"></iron-icon>${TabSuggestions}</paper-tab> <paper-tab><iron-icon icon="info"></iron-icon>${TabSuggestions}</paper-tab>
<paper-tab><iron-icon icon="local-movies"></iron-icon>${TabMovies}</paper-tab> <paper-tab><iron-icon icon="local-movies"></iron-icon>${TabMovies}</paper-tab>
<paper-tab class="movieTrailersTab"><iron-icon icon="movie"></iron-icon>${TabTrailers}</paper-tab> <paper-tab class="movieTrailersTab"><iron-icon icon="movie"></iron-icon>${TabTrailers}</paper-tab>

View file

@ -149,7 +149,7 @@
</neon-animatable> </neon-animatable>
</neon-animated-pages> </neon-animated-pages>
<paper-tabs selected="{{selected}}" style="position:fixed;bottom:0;left:0;right:0;" class="bottomTabs"> <paper-tabs selected="{{selected}}" style="position:fixed;bottom:0;left:0;right:0;" class="bottomTabs" hidescrollbuttons noink>
<paper-tab>${TabNowPlaying}</paper-tab> <paper-tab>${TabNowPlaying}</paper-tab>
<paper-tab>${TabControls}</paper-tab> <paper-tab>${TabControls}</paper-tab>

View file

@ -7,7 +7,7 @@
<div id="photosPage" data-role="page" class="page libraryPage pageWithAbsoluteTabs" data-require="scripts/photos"> <div id="photosPage" data-role="page" class="page libraryPage pageWithAbsoluteTabs" data-require="scripts/photos">
<div class="libraryViewNav scopedLibraryViewNav libraryViewNavWithMinHeight"> <div class="libraryViewNav scopedLibraryViewNav libraryViewNavWithMinHeight">
<paper-tabs> <paper-tabs hidescrollbuttons noink>
<paper-tab><iron-icon icon="photo-album"></iron-icon>${TabAlbums}</paper-tab> <paper-tab><iron-icon icon="photo-album"></iron-icon>${TabAlbums}</paper-tab>
<paper-tab><iron-icon icon="photo"></iron-icon>${TabPhotos}</paper-tab> <paper-tab><iron-icon icon="photo"></iron-icon>${TabPhotos}</paper-tab>
<paper-tab><iron-icon icon="videocam"></iron-icon>${TabVideos}</paper-tab> <paper-tab><iron-icon icon="videocam"></iron-icon>${TabVideos}</paper-tab>

View file

@ -170,7 +170,7 @@
Dashboard.hideLoadingMsg(); Dashboard.hideLoadingMsg();
} }
$(document).on('pageinitdepends', "#addPluginPage", function () { $(document).on('pageinit', "#addPluginPage", function () {
$('.addPluginForm').off('submit', AddPluginPage.onSubmit).on('submit', AddPluginPage.onSubmit); $('.addPluginForm').off('submit', AddPluginPage.onSubmit).on('submit', AddPluginPage.onSubmit);

View file

@ -84,7 +84,7 @@
}); });
}).on('pageinitdepends', "#advancedConfigurationPage", function () { }).on('pageinit', "#advancedConfigurationPage", function () {
var page = this; var page = this;

View file

@ -59,7 +59,7 @@
}); });
} }
$(document).on('pageinitdepends', ".libraryPage", function () { $(document).on('pageinit', ".libraryPage", function () {
var page = this; var page = this;

View file

@ -338,7 +338,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#libraryFileOrganizerLogPage", function () { $(document).on('pageinit', "#libraryFileOrganizerLogPage", function () {
var page = this; var page = this;

View file

@ -109,7 +109,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#libraryFileOrganizerPage", function () { $(document).on('pageinit', "#libraryFileOrganizerPage", function () {
var page = this; var page = this;

View file

@ -201,7 +201,7 @@
$('#selectPageSize', page).val(query.Limit).selectmenu('refresh'); $('#selectPageSize', page).val(query.Limit).selectmenu('refresh');
} }
$(document).on('pageinitdepends', "#channelItemsPage", function () { $(document).on('pageinit', "#channelItemsPage", function () {
var page = this; var page = this;

View file

@ -70,7 +70,7 @@
} }
} }
$(document).on('pageinitdepends', "#channelsPage", function () { $(document).on('pageinit', "#channelsPage", function () {
var page = this; var page = this;

View file

@ -25,7 +25,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#channelSettingsPage", function () { $(document).on('pageinit', "#channelSettingsPage", function () {
var page = this; var page = this;

View file

@ -21,7 +21,7 @@
} }
} }
$(document).on('pageinitdepends', "#channelsPage", function () { $(document).on('pageinit', "#channelsPage", function () {
var page = this; var page = this;
var pages = page.querySelector('neon-animated-pages'); var pages = page.querySelector('neon-animated-pages');

View file

@ -51,7 +51,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#cinemaModeConfigurationPage", function () { $(document).on('pageinit', "#cinemaModeConfigurationPage", function () {
var page = this; var page = this;

View file

@ -130,7 +130,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', ".collectionEditorPage", function () { $(document).on('pageinit', ".collectionEditorPage", function () {
var page = this; var page = this;

View file

@ -210,7 +210,7 @@
}); });
} }
$(document).on('pageinitdepends', "#connectLoginPage", function () { $(document).on('pageinit', "#connectLoginPage", function () {
var page = this; var page = this;

View file

@ -77,7 +77,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#dashboardGeneralPage", function () { $(document).on('pageinit', "#dashboardGeneralPage", function () {
var page = this; var page = this;

View file

@ -52,7 +52,7 @@
}); });
}).on('pageinitdepends', "#dashboardHostingPage", function () { }).on('pageinit', "#dashboardHostingPage", function () {
var page = this; var page = this;

View file

@ -1354,7 +1354,7 @@ $(document).on('pageshowready', "#dashboardPage", DashboardPage.onPageShow).on('
} }
} }
$(document).on('pageinitdepends', "#dashboardPage", function () { $(document).on('pageinit', "#dashboardPage", function () {
var page = this; var page = this;

View file

@ -58,7 +58,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#devicePage", function () { $(document).on('pageinit', "#devicePage", function () {
var page = this; var page = this;

View file

@ -111,7 +111,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#devicesUploadPage", function () { $(document).on('pageinit', "#devicesUploadPage", function () {
var page = this; var page = this;

View file

@ -940,7 +940,7 @@
profile.UserId = $('#selectUser', page).val(); profile.UserId = $('#selectUser', page).val();
} }
$(document).on('pageinitdepends', "#dlnaProfilePage", function () { $(document).on('pageinit', "#dlnaProfilePage", function () {
var page = this; var page = this;

View file

@ -39,7 +39,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#dlnaServerSettingsPage", function () { $(document).on('pageinit', "#dlnaServerSettingsPage", function () {
$('.dlnaServerSettingsForm').off('submit', onSubmit).on('submit', onSubmit); $('.dlnaServerSettingsForm').off('submit', onSubmit).on('submit', onSubmit);

View file

@ -28,7 +28,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#dlnaSettingsPage", function () { $(document).on('pageinit', "#dlnaSettingsPage", function () {
$('.dlnaSettingsForm').off('submit', onSubmit).on('submit', onSubmit); $('.dlnaSettingsForm').off('submit', onSubmit).on('submit', onSubmit);

View file

@ -227,7 +227,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#editItemMetadataPage", function () { $(document).on('pageinit', "#editItemMetadataPage", function () {
var page = this; var page = this;

View file

@ -500,7 +500,7 @@
window.EditItemImagesPage = new editItemImages(); window.EditItemImagesPage = new editItemImages();
$(document).on('pageinitdepends', "#editItemMetadataPage", function () { $(document).on('pageinit', "#editItemMetadataPage", function () {
var page = this; var page = this;

View file

@ -1420,7 +1420,7 @@
$('.editorTab', page).addClass('hide')[index].classList.remove('hide'); $('.editorTab', page).addClass('hide')[index].classList.remove('hide');
} }
$(document).on('pageinitdepends', "#editItemMetadataPage", function () { $(document).on('pageinit', "#editItemMetadataPage", function () {
var page = this; var page = this;

View file

@ -281,7 +281,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#editItemMetadataPage", function () { $(document).on('pageinit', "#editItemMetadataPage", function () {
var page = this; var page = this;

View file

@ -425,7 +425,7 @@
}); });
}).on('pageinitdepends', ".metadataEditorPage", function () { }).on('pageinit', ".metadataEditorPage", function () {
Dashboard.importCss('css/metadataeditor.css'); Dashboard.importCss('css/metadataeditor.css');
window.MetadataEditor = new metadataEditor(); window.MetadataEditor = new metadataEditor();

View file

@ -39,7 +39,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#encodingSettingsPage", function () { $(document).on('pageinit', "#encodingSettingsPage", function () {
var page = this; var page = this;

View file

@ -153,7 +153,7 @@
$('#selectPageSize', page).val(query.Limit).selectmenu('refresh'); $('#selectPageSize', page).val(query.Limit).selectmenu('refresh');
} }
$(document).on('pageinitdepends', "#episodesPage", function () { $(document).on('pageinit', "#episodesPage", function () {
var page = this; var page = this;

View file

@ -62,7 +62,7 @@
} }
$(document).on('pageinitdepends', '#forgotPasswordPage', function () { $(document).on('pageinit', '#forgotPasswordPage', function () {
var page = this; var page = this;
$('.forgotPasswordForm', page).off('submit', onSubmit).on('submit', onSubmit); $('.forgotPasswordForm', page).off('submit', onSubmit).on('submit', onSubmit);

View file

@ -51,7 +51,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', '#forgotPasswordPinPage', function () { $(document).on('pageinit', '#forgotPasswordPinPage', function () {
$('.forgotPasswordPinForm').off('submit', onSubmit).on('submit', onSubmit); $('.forgotPasswordPinForm').off('submit', onSubmit).on('submit', onSubmit);
}); });

View file

@ -71,7 +71,7 @@
$('#selectPageSize', page).val(query.Limit).selectmenu('refresh'); $('#selectPageSize', page).val(query.Limit).selectmenu('refresh');
} }
$(document).on('pageinitdepends', "#gameGenresPage", function () { $(document).on('pageinit', "#gameGenresPage", function () {
var page = this; var page = this;

View file

@ -154,7 +154,7 @@
} }
} }
$(document).on('pageinitdepends', "#gamesPage", function () { $(document).on('pageinit', "#gamesPage", function () {
var page = this; var page = this;

View file

@ -73,7 +73,7 @@
$('#selectPageSize', page).val(query.Limit).selectmenu('refresh'); $('#selectPageSize', page).val(query.Limit).selectmenu('refresh');
} }
$(document).on('pageinitdepends', "#gameStudiosPage", function () { $(document).on('pageinit', "#gameStudiosPage", function () {
var page = this; var page = this;

View file

@ -228,7 +228,7 @@
}); });
} }
$(document).on('pageinitdepends', "#indexPage", function () { $(document).on('pageinit', "#indexPage", function () {
var page = this; var page = this;

View file

@ -1710,7 +1710,7 @@
}); });
} }
$(document).on('pageinitdepends', "#itemDetailPage", function () { $(document).on('pageinit', "#itemDetailPage", function () {
var page = this; var page = this;

View file

@ -188,7 +188,7 @@
} }
} }
$(document).on('pageinitdepends', "#itemListPage", function () { $(document).on('pageinit', "#itemListPage", function () {
var page = this; var page = this;

View file

@ -91,7 +91,7 @@
$('.kidsBackdropContainer').css('background-image', 'url(css/images/kids/bg.jpg)'); $('.kidsBackdropContainer').css('background-image', 'url(css/images/kids/bg.jpg)');
}).on('pageinitdepends', "#kidsPage", function () { }).on('pageinit', "#kidsPage", function () {
var page = this; var page = this;

View file

@ -193,10 +193,7 @@
return !LibraryBrowser.enableFullPaperTabs(); return !LibraryBrowser.enableFullPaperTabs();
}, },
configurePaperLibraryTabs: function (ownerpage, tabs, pages, defaultTabIndex) { configurePaperLibraryTabs: function (ownerpage, tabs, pages) {
tabs.hideScrollButtons = true;
tabs.noink = true;
if (AppInfo.enableBottomTabs) { if (AppInfo.enableBottomTabs) {
tabs.alignBottom = true; tabs.alignBottom = true;
@ -210,7 +207,6 @@
// Not very iOS-like I suppose // Not very iOS-like I suppose
tabs.noSlide = true; tabs.noSlide = true;
tabs.noBar = true; tabs.noBar = true;
tabs.noink = true;
} }
else { else {
LibraryBrowser.configureSwipeTabs(ownerpage, tabs, pages); LibraryBrowser.configureSwipeTabs(ownerpage, tabs, pages);
@ -222,7 +218,6 @@
tabs.noSlide = true; tabs.noSlide = true;
tabs.noBar = true; tabs.noBar = true;
tabs.scrollable = true;
var legacyTabs = $('.legacyTabs', ownerpage); var legacyTabs = $('.legacyTabs', ownerpage);
@ -254,6 +249,20 @@
onTabbedpagebeforeshow: function () { onTabbedpagebeforeshow: function () {
var page = this; var page = this;
var delay = 0;
if (!page.getAttribute('data-firstload')) {
delay = 300;
page.setAttribute('data-firstload', '1');
}
setTimeout(function () {
LibraryBrowser.onTabbedpagebeforeshowInternal(page);
}, delay);
},
onTabbedpagebeforeshowInternal: function (page) {
var tabs = page.querySelector('paper-tabs'); var tabs = page.querySelector('paper-tabs');
var selected = tabs.selected; var selected = tabs.selected;

View file

@ -1185,7 +1185,7 @@
}); });
} }
$(document).on('pageinitdepends', ".libraryPage", function () { $(document).on('pageinit', ".libraryPage", function () {
var page = this; var page = this;

View file

@ -113,7 +113,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#libraryPathMappingPage", function () { $(document).on('pageinit', "#libraryPathMappingPage", function () {
$('.libraryPathMappingForm').off('submit', onSubmit).on('submit', onSubmit); $('.libraryPathMappingForm').off('submit', onSubmit).on('submit', onSubmit);

View file

@ -55,7 +55,7 @@
}); });
}).on('pageinitdepends', "#librarySettingsPage", function () { }).on('pageinit', "#librarySettingsPage", function () {
var page = this; var page = this;

View file

@ -95,7 +95,7 @@
}); });
} }
$(document).on('pageinitdepends', "#liveTvItemsPage", function () { $(document).on('pageinit', "#liveTvItemsPage", function () {
var page = this; var page = this;

View file

@ -218,7 +218,7 @@
}); });
} }
$(document).on('pageinitdepends', "#liveTvNewRecordingPage", function () { $(document).on('pageinit', "#liveTvNewRecordingPage", function () {
var page = this; var page = this;

View file

@ -81,7 +81,7 @@
} }
$(document).on('pageinitdepends', "#liveTvRecordingListPage", function () { $(document).on('pageinit', "#liveTvRecordingListPage", function () {
var page = this; var page = this;

View file

@ -259,7 +259,7 @@
}); });
} }
$(document).on('pageinitdepends', "#liveTvSeriesTimerPage", function () { $(document).on('pageinit', "#liveTvSeriesTimerPage", function () {
var page = this; var page = this;

View file

@ -41,7 +41,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#liveTvSettingsPage", function () { $(document).on('pageinit', "#liveTvSettingsPage", function () {
var page = this; var page = this;

View file

@ -476,7 +476,7 @@
}); });
} }
$(document).on('pageinitdepends', "#liveTvStatusPage", function () { $(document).on('pageinit', "#liveTvStatusPage", function () {
var page = this; var page = this;

View file

@ -209,7 +209,7 @@
}); });
} }
$(document).on('pageinitdepends', "#liveTvSuggestedPage", function () { $(document).on('pageinit', "#liveTvSuggestedPage", function () {
var page = this; var page = this;

View file

@ -101,7 +101,7 @@
}); });
} }
$(document).on('pageinitdepends', "#liveTvTimerPage", function () { $(document).on('pageinit', "#liveTvTimerPage", function () {
var page = this; var page = this;

View file

@ -58,7 +58,7 @@
} }
$(document).on('pageinitdepends', "#liveTvTunerProviderHdHomerunPage", function () { $(document).on('pageinit', "#liveTvTunerProviderHdHomerunPage", function () {
var page = this; var page = this;

View file

@ -51,7 +51,7 @@
} }
$(document).on('pageinitdepends', "#liveTvTunerProviderM3UPage", function () { $(document).on('pageinit', "#liveTvTunerProviderM3UPage", function () {
var page = this; var page = this;

View file

@ -216,7 +216,7 @@
} }
}; };
$(document).on('pageinitdepends', "#loginPage", function () { $(document).on('pageinit', "#loginPage", function () {
var page = this; var page = this;

View file

@ -347,7 +347,7 @@
} }
}; };
$(document).on('pageinitdepends', ".mediaLibraryPage", MediaLibraryPage.onPageInit).on('pageshowready', ".mediaLibraryPage", MediaLibraryPage.onPageShow); $(document).on('pageinit', ".mediaLibraryPage", MediaLibraryPage.onPageInit).on('pageshowready', ".mediaLibraryPage", MediaLibraryPage.onPageShow);
var WizardLibraryPage = { var WizardLibraryPage = {

View file

@ -168,7 +168,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#advancedMetadataConfigurationPage", function () { $(document).on('pageinit', "#advancedMetadataConfigurationPage", function () {
var page = this; var page = this;

View file

@ -36,7 +36,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#metadataConfigurationPage", function () { $(document).on('pageinit', "#metadataConfigurationPage", function () {
Dashboard.showLoadingMsg(); Dashboard.showLoadingMsg();

View file

@ -518,7 +518,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#metadataImagesConfigurationPage", function () { $(document).on('pageinit', "#metadataImagesConfigurationPage", function () {
var page = this; var page = this;

View file

@ -39,7 +39,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#metadataNfoPage", function () { $(document).on('pageinit', "#metadataNfoPage", function () {
$('.metadataNfoForm').off('submit', onSubmit).on('submit', onSubmit); $('.metadataNfoForm').off('submit', onSubmit).on('submit', onSubmit);

View file

@ -77,7 +77,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#metadataSubtitlesPage", function () { $(document).on('pageinit', "#metadataSubtitlesPage", function () {
$('.metadataSubtitlesForm').off('submit', onSubmit).on('submit', onSubmit); $('.metadataSubtitlesForm').off('submit', onSubmit).on('submit', onSubmit);

View file

@ -209,7 +209,7 @@
}); });
} }
$(document).on('pageinitdepends', "#boxsetsPage", function () { $(document).on('pageinit', "#boxsetsPage", function () {
var page = this; var page = this;

View file

@ -316,7 +316,7 @@
window.MoviesPage = window.MoviesPage || {}; window.MoviesPage = window.MoviesPage || {};
window.MoviesPage.renderSuggestedTab = loadSuggestionsTab; window.MoviesPage.renderSuggestedTab = loadSuggestionsTab;
$(document).on('pageinitdepends', "#moviesPage", function () { $(document).on('pageinit', "#moviesPage", function () {
var page = this; var page = this;

View file

@ -157,7 +157,7 @@
} }
} }
$(document).on('pageinitdepends', "#musicAlbumArtistsPage", function () { $(document).on('pageinit', "#musicAlbumArtistsPage", function () {
var page = this; var page = this;

View file

@ -170,7 +170,7 @@
} }
} }
$(document).on('pageinitdepends', "#musicAlbumsPage", function () { $(document).on('pageinit', "#musicAlbumsPage", function () {
var page = this; var page = this;

View file

@ -155,7 +155,7 @@
} }
} }
$(document).on('pageinitdepends', "#musicArtistsPage", function () { $(document).on('pageinit', "#musicArtistsPage", function () {
var page = this; var page = this;

View file

@ -91,7 +91,7 @@
$('#selectPageSize', page).val(query.Limit).selectmenu('refresh'); $('#selectPageSize', page).val(query.Limit).selectmenu('refresh');
} }
$(document).on('pageinitdepends', "#musicGenresPage", function () { $(document).on('pageinit', "#musicGenresPage", function () {
var page = this; var page = this;

View file

@ -127,7 +127,7 @@
} }
} }
$(document).on('pageinitdepends', "#musicVideosPage", function () { $(document).on('pageinit', "#musicVideosPage", function () {
var page = this; var page = this;

View file

@ -53,7 +53,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#displayPreferencesPage", function () { $(document).on('pageinit', "#displayPreferencesPage", function () {
var page = this; var page = this;

View file

@ -230,7 +230,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#homeScreenPreferencesPage", function () { $(document).on('pageinit', "#homeScreenPreferencesPage", function () {
var page = this; var page = this;

View file

@ -116,7 +116,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#languagePreferencesPage", function () { $(document).on('pageinit', "#languagePreferencesPage", function () {
var page = this; var page = this;

View file

@ -181,7 +181,7 @@
window.MyProfilePage = new myProfilePage(); window.MyProfilePage = new myProfilePage();
$(document).on('pageinitdepends', "#userImagePage", function () { $(document).on('pageinit', "#userImagePage", function () {
var page = this; var page = this;
@ -406,7 +406,7 @@
window.UpdatePasswordPage = new updatePasswordPage(); window.UpdatePasswordPage = new updatePasswordPage();
$(document).on('pageinitdepends', ".userPasswordPage", function () { $(document).on('pageinit', ".userPasswordPage", function () {
var page = this; var page = this;

View file

@ -34,7 +34,7 @@
var interval; var interval;
$(document).on('pageinitdepends', "#mySyncActivityPage", function () { $(document).on('pageinit', "#mySyncActivityPage", function () {
var page = this; var page = this;

View file

@ -37,7 +37,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#syncPreferencesPage", function () { $(document).on('pageinit', "#syncPreferencesPage", function () {
var page = this; var page = this;

View file

@ -161,7 +161,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#notificationSettingPage", function () { $(document).on('pageinit', "#notificationSettingPage", function () {
var page = this; var page = this;

View file

@ -742,7 +742,7 @@
}); });
} }
$(document).on('pageinitdepends', "#nowPlayingPage", function () { $(document).on('pageinit', "#nowPlayingPage", function () {
var page = this; var page = this;

View file

@ -201,7 +201,7 @@
} }
} }
$(document).on('pageinitdepends', "#photosPage", function () { $(document).on('pageinit', "#photosPage", function () {
var page = this; var page = this;

View file

@ -27,7 +27,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#playbackConfigurationPage", function () { $(document).on('pageinit', "#playbackConfigurationPage", function () {
$('.playbackConfigurationForm').off('submit', onSubmit).on('submit', onSubmit); $('.playbackConfigurationForm').off('submit', onSubmit).on('submit', onSubmit);

View file

@ -244,7 +244,7 @@
return html; return html;
} }
$(document).on('pageinitdepends', "#pluginCatalogPage", function () { $(document).on('pageinit', "#pluginCatalogPage", function () {
var page = this; var page = this;

View file

@ -540,7 +540,7 @@
} }
} }
$(document).on('pageinitdepends', "#libraryReportManagerPage", function () { $(document).on('pageinit', "#libraryReportManagerPage", function () {
var page = this; var page = this;

View file

@ -310,7 +310,7 @@
return false; return false;
} }
$(document).on('pageinitdepends', "#scheduledTaskPage", function () { $(document).on('pageinit', "#scheduledTaskPage", function () {
$('.addTriggerForm').off('submit', onSubmit).on('submit', onSubmit); $('.addTriggerForm').off('submit', onSubmit).on('submit', onSubmit);

View file

@ -194,7 +194,7 @@
} }
} }
$(document).on('pageinitdepends', "#scheduledTasksPage", function () { $(document).on('pageinit', "#scheduledTasksPage", function () {
var page = this; var page = this;

View file

@ -167,7 +167,7 @@
}); });
} }
$(document).on('pageinitdepends', "#secondaryItemsPage", function () { $(document).on('pageinit', "#secondaryItemsPage", function () {
var page = this; var page = this;

View file

@ -341,7 +341,7 @@
} }
} }
$(document).on('pageinitdepends pagebeforeshow', "#selectServerPage", function () { $(document).on('pageinit pagebeforeshow', "#selectServerPage", function () {
var page = this; var page = this;
updatePageStyle(page); updatePageStyle(page);

Some files were not shown because too many files have changed in this diff Show more