@@ -134,474 +301,474 @@ To change the drawer container when it's in the right side:
-
+
+ });
+ }());
+
+
diff --git a/dashboard-ui/bower_components/paper-drawer-panel/test/index.html b/dashboard-ui/bower_components/paper-drawer-panel/test/index.html
new file mode 100644
index 000000000..1090a4113
--- /dev/null
+++ b/dashboard-ui/bower_components/paper-drawer-panel/test/index.html
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+ paper-drawer-panel tests
+
+
+
+
+
+
diff --git a/dashboard-ui/bower_components/paper-drawer-panel/test/positioning.html b/dashboard-ui/bower_components/paper-drawer-panel/test/positioning.html
new file mode 100644
index 000000000..64f0ada87
--- /dev/null
+++ b/dashboard-ui/bower_components/paper-drawer-panel/test/positioning.html
@@ -0,0 +1,96 @@
+
+
+
+
+
+ paper-drawer-panel tests
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/dashboard-ui/bower_components/paper-drawer-panel/test/small-devices.html b/dashboard-ui/bower_components/paper-drawer-panel/test/small-devices.html
new file mode 100644
index 000000000..adaae88a7
--- /dev/null
+++ b/dashboard-ui/bower_components/paper-drawer-panel/test/small-devices.html
@@ -0,0 +1,141 @@
+
+
+
+
+
+ paper-drawer-panel tests
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/dashboard-ui/bower_components/paper-tabs/.bower.json b/dashboard-ui/bower_components/paper-tabs/.bower.json
index 3e05e2b96..d311764c8 100644
--- a/dashboard-ui/bower_components/paper-tabs/.bower.json
+++ b/dashboard-ui/bower_components/paper-tabs/.bower.json
@@ -1,6 +1,6 @@
{
"name": "paper-tabs",
- "version": "1.0.4",
+ "version": "1.0.5",
"license": "http://polymer.github.io/LICENSE.txt",
"description": "Material design tabs",
"private": true,
@@ -39,11 +39,11 @@
"web-component-tester": "*"
},
"homepage": "https://github.com/PolymerElements/paper-tabs",
- "_release": "1.0.4",
+ "_release": "1.0.5",
"_resolution": {
"type": "version",
- "tag": "v1.0.4",
- "commit": "b07b594cc08e7c97cda7e9b30b0bdd6c8969226c"
+ "tag": "v1.0.5",
+ "commit": "5c47302763d9cbb5fbbbf777a49b3ccc5f5a16bf"
},
"_source": "git://github.com/PolymerElements/paper-tabs.git",
"_target": "~1.0.0",
diff --git a/dashboard-ui/bower_components/paper-tabs/CONTRIBUTING.md b/dashboard-ui/bower_components/paper-tabs/CONTRIBUTING.md
new file mode 100644
index 000000000..7b1014156
--- /dev/null
+++ b/dashboard-ui/bower_components/paper-tabs/CONTRIBUTING.md
@@ -0,0 +1,72 @@
+
+
+# Polymer Elements
+## Guide for Contributors
+
+Polymer Elements are built in the open, and the Polymer authors eagerly encourage any and all forms of community contribution. When contributing, please follow these guidelines:
+
+### Filing Issues
+
+**If you are filing an issue to request a feature**, please provide a clear description of the feature. It can be helpful to describe answers to the following questions:
+
+ 1. **Who will use the feature?** _“As someone filling out a form…”_
+ 2. **When will they use the feature?** _“When I enter an invalid value…”_
+ 3. **What is the user’s goal?** _“I want to be visually notified that the value needs to be corrected…”_
+
+**If you are filing an issue to report a bug**, please provide:
+
+ 1. **A clear description of the bug and related expectations.** Consider using the following example template for reporting a bug:
+
+ ```markdown
+ The `paper-foo` element causes the page to turn pink when clicked.
+
+ ## Expected outcome
+
+ The page stays the same color.
+
+ ## Actual outcome
+
+ The page turns pink.
+
+ ## Steps to reproduce
+
+ 1. Put a `paper-foo` element in the page.
+ 2. Open the page in a web browser.
+ 3. Click the `paper-foo` element.
+ ```
+
+ 2. **A reduced test case that demonstrates the problem.** If possible, please include the test case as a JSBin. Start with this template to easily import and use relevant Polymer Elements: [http://jsbin.com/cagaye](http://jsbin.com/cagaye/edit?html,output).
+
+ 3. **A list of browsers where the problem occurs.** This can be skipped if the problem is the same across all browsers.
+
+### Submitting Pull Requests
+
+**Before creating a pull request**, please ensure that an issue exists for the corresponding change in the pull request that you intend to make. **If an issue does not exist, please create one per the guidelines above**. The goal is to discuss the design and necessity of the proposed change with Polymer authors and community before diving into a pull request.
+
+When submitting pull requests, please provide:
+
+ 1. **A reference to the corresponding issue** or issues that will be closed by the pull request. Please refer to these issues using the following syntax:
+
+ ```markdown
+ (For a single issue)
+ Fixes #20
+
+ (For multiple issues)
+ Fixes #32, #40
+ ```
+
+ 2. **A succinct description of the design** used to fix any related issues. For example:
+
+ ```markdown
+ This fixes #20 by removing styles that leaked which would cause the page to turn pink whenever `paper-foo` is clicked.
+ ```
+
+ 3. **At least one test for each bug fixed or feature added** as part of the pull request. Pull requests that fix bugs or add features without accompanying tests will not be considered.
+
+If a proposed change contains multiple commits, please [squash commits](https://www.google.com/url?q=http://blog.steveklabnik.com/posts/2012-11-08-how-to-squash-commits-in-a-github-pull-request) to as few as is necessary to succinctly express the change. A Polymer author can help you squash commits, so don’t be afraid to ask us if you need help with that!
diff --git a/dashboard-ui/bower_components/paper-tabs/bower.json b/dashboard-ui/bower_components/paper-tabs/bower.json
index d533fa1bb..2f3076a00 100644
--- a/dashboard-ui/bower_components/paper-tabs/bower.json
+++ b/dashboard-ui/bower_components/paper-tabs/bower.json
@@ -1,6 +1,6 @@
{
"name": "paper-tabs",
- "version": "1.0.4",
+ "version": "1.0.5",
"license": "http://polymer.github.io/LICENSE.txt",
"description": "Material design tabs",
"private": true,
diff --git a/dashboard-ui/bower_components/paper-tabs/paper-tabs.html b/dashboard-ui/bower_components/paper-tabs/paper-tabs.html
index 7939ef0e3..b3927e079 100644
--- a/dashboard-ui/bower_components/paper-tabs/paper-tabs.html
+++ b/dashboard-ui/bower_components/paper-tabs/paper-tabs.html
@@ -131,8 +131,10 @@ Custom property | Description | Default
}
paper-icon-button {
- width: 24px;
- padding: 16px;
+ width: 48px;
+ height: 48px;
+ padding: 12px;
+ margin: 0 4px;
}
#selectionBar {
diff --git a/dashboard-ui/cordova/iap.js b/dashboard-ui/cordova/iap.js
index 04c0a36ec..9cf9e0f5c 100644
--- a/dashboard-ui/cordova/iap.js
+++ b/dashboard-ui/cordova/iap.js
@@ -77,27 +77,38 @@
amt: price
};
+ var promise;
+
if (enteredEmail) {
postData.email = enteredEmail;
postData.storeId = enteredEmail;
postData.feature = "MBSClubMonthly";
+
+ promise = ApiClient.ajax({
+ type: "POST",
+ url: ApiClient.getUrl("Appstore/Register"),
+ data: {
+ Parameters: JSON.stringify(postData)
+ }
+ });
+
+ } else {
+
+ promise = ApiClient.ajax({
+ type: "POST",
+ url: "http://mb3admin.com/admin/service/appstore/register",
+ data: JSON.stringify(postData),
+ contentType: "application/json"
+ });
}
- ApiClient.ajax({
-
- type: "POST",
- url: ApiClient.getUrl("Appstore/Register"),
- data: {
- Parameters: JSON.stringify(postData)
- }
- }).done(function () {
+ promise.done(function () {
callback(true, product);
}).fail(function (e) {
if (e.status == 402) {
- alert('validate fail - expired');
callback(false, {
code: store.PURCHASE_EXPIRED,
@@ -105,6 +116,7 @@
message: "Subscription Expired"
}
});
+
} else {
alert('validate fail - other');
@@ -155,7 +167,7 @@
if (requiresVerification) {
//product.verify();
if (product.owned) {
- alert('sub owned!');
+ //alert('sub owned!');
}
} else {
product.finish();
diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css
index 84a66dbcc..8a7cb6f56 100644
--- a/dashboard-ui/css/librarybrowser.css
+++ b/dashboard-ui/css/librarybrowser.css
@@ -1220,6 +1220,8 @@ span.itemCommunityRating:not(:empty) + .userDataIcons {
background: #43A047;
z-index: 1000;
padding: 0 .75em 0 .25em;
+ display: flex;
+ align-items: center;
}
.selectionCommandsPanel paper-icon-button {
@@ -1235,11 +1237,6 @@ span.itemCommunityRating:not(:empty) + .userDataIcons {
padding-top: 1px;
}
-.selectionCommandsPanel paper-icon-button {
- height: 32px;
- width: 32px;
-}
-
@media all and (min-height: 480px) {
.alphabetPicker {
diff --git a/dashboard-ui/scripts/librarylist.js b/dashboard-ui/scripts/librarylist.js
index 7572db256..d6b4cbc63 100644
--- a/dashboard-ui/scripts/librarylist.js
+++ b/dashboard-ui/scripts/librarylist.js
@@ -1139,7 +1139,7 @@
html += '';
html += '
';
- html += '';
+ html += '';
selectionCommandsPanel.innerHTML = html;
diff --git a/dashboard-ui/scripts/librarymenu.js b/dashboard-ui/scripts/librarymenu.js
index 4a228d474..1e7a45ae3 100644
--- a/dashboard-ui/scripts/librarymenu.js
+++ b/dashboard-ui/scripts/librarymenu.js
@@ -223,15 +223,20 @@
document.querySelector('.mainDrawerPanel #drawer').classList.add('verticalScrollingDrawer');
}
- function onMainDrawerClosed() {
-
- document.body.classList.remove('bodyWithPopupOpen');
- document.querySelector('.mainDrawerPanel #drawer').classList.remove('verticalScrollingDrawer');
- }
function closeMainDrawer() {
document.querySelector('.mainDrawerPanel').closeDrawer();
}
+ function onMainDrawerSelect() {
+
+ if (this.selected == 'main') {
+
+ document.body.classList.remove('bodyWithPopupOpen');
+ document.querySelector('.mainDrawerPanel #drawer').classList.remove('verticalScrollingDrawer');
+ } else {
+ onMainDrawerOpened();
+ }
+ }
function ensureDrawerStructure(drawer) {
@@ -994,8 +999,7 @@
});
var mainDrawerPanel = document.querySelector('.mainDrawerPanel');
- Events.on(mainDrawerPanel, 'paper-drawer-panel-open', onMainDrawerOpened);
- Events.on(mainDrawerPanel, 'paper-drawer-panel-close', onMainDrawerClosed);
+ Events.on(mainDrawerPanel, 'iron-select', onMainDrawerSelect);
});
})(window, document, jQuery, window.devicePixelRatio);
diff --git a/dashboard-ui/vulcanize-out.html b/dashboard-ui/vulcanize-out.html
index ecb86c68a..dcb3971a4 100644
--- a/dashboard-ui/vulcanize-out.html
+++ b/dashboard-ui/vulcanize-out.html
@@ -16214,168 +16214,160 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
-
-
+
+
-