nuvio-tizen 1.8.11 → 1.8.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of nuvio-tizen might be problematic. Click here for more details.
- package/config.xml +1 -1
- package/index.html +9 -9
- package/js/views.js +8 -2
- package/package.json +1 -1
package/config.xml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets"
|
|
3
|
-
id="http://nuvio.tizen/NuvioTizen" version="1.8.
|
|
3
|
+
id="http://nuvio.tizen/NuvioTizen" version="1.8.12" viewmodes="maximized">
|
|
4
4
|
<tizen:application id="Nuvio00001.Nuvio" package="Nuvio00001" required_version="2.4"/>
|
|
5
5
|
<content src="index.html"/>
|
|
6
6
|
<feature name="http://tizen.org/feature/screen.size.all"/>
|
package/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta name="viewport" content="width=1920, height=1080, user-scalable=no">
|
|
6
6
|
<title>Nuvio</title>
|
|
7
|
-
<link rel="stylesheet" href="css/style.css?v=1.8.
|
|
7
|
+
<link rel="stylesheet" href="css/style.css?v=1.8.12">
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
<!-- CSS-applied sentinel (kept off-screen); app.js waits for its width before rendering -->
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
|
|
48
48
|
<!-- Load order matters: polyfills -> util -> data -> input -> player -> views -> app -->
|
|
49
49
|
<!-- ?v= busts the TV webview cache on every release (keep in sync with package.json) -->
|
|
50
|
-
<script src="js/polyfills.js?v=1.8.
|
|
51
|
-
<script src="js/util.js?v=1.8.
|
|
52
|
-
<script src="js/stremio.js?v=1.8.
|
|
53
|
-
<script src="js/keys.js?v=1.8.
|
|
54
|
-
<script src="js/focus.js?v=1.8.
|
|
55
|
-
<script src="js/player.js?v=1.8.
|
|
56
|
-
<script src="js/views.js?v=1.8.
|
|
57
|
-
<script src="js/app.js?v=1.8.
|
|
50
|
+
<script src="js/polyfills.js?v=1.8.12"></script>
|
|
51
|
+
<script src="js/util.js?v=1.8.12"></script>
|
|
52
|
+
<script src="js/stremio.js?v=1.8.12"></script>
|
|
53
|
+
<script src="js/keys.js?v=1.8.12"></script>
|
|
54
|
+
<script src="js/focus.js?v=1.8.12"></script>
|
|
55
|
+
<script src="js/player.js?v=1.8.12"></script>
|
|
56
|
+
<script src="js/views.js?v=1.8.12"></script>
|
|
57
|
+
<script src="js/app.js?v=1.8.12"></script>
|
|
58
58
|
</body>
|
|
59
59
|
</html>
|
package/js/views.js
CHANGED
|
@@ -655,9 +655,11 @@ var Views = (function () {
|
|
|
655
655
|
var cancelBtn = U.el('div', 'pill focusable', 'Cancel');
|
|
656
656
|
confirmBtn.__onselect = doConfirm;
|
|
657
657
|
cancelBtn.__onselect = function () { App.back(); };
|
|
658
|
-
|
|
658
|
+
|
|
659
|
+
// Order: Validate · Confirm · Cancel
|
|
660
|
+
var valBtn = null;
|
|
659
661
|
if (cfg.validator) {
|
|
660
|
-
|
|
662
|
+
valBtn = U.el('div', 'pill focusable', 'Validate');
|
|
661
663
|
valBtn.__onselect = function () {
|
|
662
664
|
var v = ('' + input.value).trim();
|
|
663
665
|
if (!v) { U.toast('Enter a key first'); return; }
|
|
@@ -668,9 +670,13 @@ var Views = (function () {
|
|
|
668
670
|
};
|
|
669
671
|
row.appendChild(valBtn);
|
|
670
672
|
}
|
|
673
|
+
row.appendChild(confirmBtn);
|
|
671
674
|
row.appendChild(cancelBtn);
|
|
672
675
|
wrap.appendChild(row);
|
|
673
676
|
|
|
677
|
+
// DOWN from the field lands on Validate (or Confirm when there's no validator)
|
|
678
|
+
input.__navDOWN = function () { Focus.setFocus(valBtn || confirmBtn); return true; };
|
|
679
|
+
|
|
674
680
|
s.appendChild(wrap);
|
|
675
681
|
Focus.setScope(s, input);
|
|
676
682
|
|