]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Merge pull request #996 from PeterDaveHelloKitchen/zh-tw-translation
authorSamuel Mannehed <samuel@cendio.se>
Thu, 11 Jan 2018 22:51:39 +0000 (23:51 +0100)
committerGitHub <noreply@github.com>
Thu, 11 Jan 2018 22:51:39 +0000 (23:51 +0100)
Add Chinese (Traditional) translation

README.md
po/xgettext-html
tests/test.display.js

index dfc06edb86d0ff13fc3f7fd59f700aaf3c812882..23dc5c303eb5a32ec91a404f9188c7aef03aed94 100644 (file)
--- a/README.md
+++ b/README.md
@@ -16,6 +16,17 @@ Many companies, projects and products have integrated noVNC including
 [the Projects and Companies wiki page](https://github.com/novnc/noVNC/wiki/Projects-and-companies-using-noVNC)
 for a more complete list with additional info and links.
 
+### Table of Contents
+
+- [News/help/contact](#newshelpcontact)
+- [Features](#features)
+- [Screenshots](#screenshots)
+- [Browser Requirements](#browser-requirements)
+- [Server Requirements](#server-requirements)
+- [Quick Start](#quick-start)
+- [Integration and Deployment](#integration-and-deployment)
+- [Authors/Contributors](#authorscontributors)
+
 ### News/help/contact
 
 The project website is found at [novnc.com](http://novnc.com).
index 2e4e93bf5e5c534fbefd0f0eed53789d518c4e3f..231de446a54d539f63432aea9f4ecb5c7c039da7 100755 (executable)
@@ -69,7 +69,7 @@ function process(elem, locator, enabled) {
         }
         if (elem.hasAttribute("value") &&
             elem.tagName === "INPUT" &&
-            isAnyOf(elem.getAttribute("type"), ["reset", "button"])) {
+            isAnyOf(elem.getAttribute("type"), ["reset", "button", "submit"])) {
             addString(elem.getAttribute("value"), locator(elem));
         }
     }
index 60201edf79bf7f810d488a0cf8beae67dd5258f7..2e8f90e2f2e947715a69524edc1c3522e40ce383 100644 (file)
@@ -354,7 +354,8 @@ describe('Display/Canvas Helper', function () {
                 for (let x = 0;x < 16;x++) {
                     let pixel;
                     if ((x < 4) && (y < 4)) {
-                        pixel = checked_data.slice((y*4+x)*4, (y*4+x+1)*4);
+                        // NB: of course IE11 doesn't support #slice on ArrayBufferViews...
+                        pixel = Array.prototype.slice.call(checked_data, (y*4+x)*4, (y*4+x+1)*4);
                     } else {
                         pixel = [0, 0xff, 0, 255];
                     }