diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2017-01-11 07:57:11 -0500 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2017-01-11 07:57:11 -0500 |
| commit | f3062c5e1b47d5c0d3bbcff4f4dabd35805ad7cd (patch) | |
| tree | f79883f2a43f2c78e305d7171583149da7184e10 /www | |
| parent | a89529158fd8be97ce4383bd906c51a260fd43d1 (diff) | |
edits for #363
Diffstat (limited to 'www')
| -rw-r--r-- | www/js/app.js | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/www/js/app.js b/www/js/app.js index 9d764bbd..359343ff 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -153,7 +153,7 @@ angular.module('zmApp', [ }) -//http://stackoverflow.com/a/23931217/1361529 +//credit: http://stackoverflow.com/a/23931217/1361529 .directive('hidepassword', function () { var modelSet = function (str) @@ -167,19 +167,31 @@ angular.module('zmApp', [ //https://github.com/garycourt/uri-js if (!str) return str; var c = URI.parse(str); - if (c.userinfo) c.userinfo="***:***"; - var vc = URI.serialize({scheme : c.scheme, + //if (c.userinfo) c.userinfo="***:***"; + if (c.userinfo) c.userinfo="\u2022\u2022\u2022:\u2022\u2022\u2022"; + + var ostr = ""; + if (c.scheme) ostr = ostr+c.scheme+"://"; + if (c.userinfo) ostr = ostr+c.userinfo+"@"; + if (c.host) ostr = ostr+c.host; + if (c.port) ostr = ostr+":"+c.port; + if (c.path) ostr = ostr+c.path; + if (c.query) ostr = ostr+c.query; + if (c.fragment) ostr = ostr+c.fragment; + + + /*var vc = URI.serialize({scheme : c.scheme, userinfo: c.userinfo, host: c.host, port: c.port, path: c.path, query: c.query, fragment: c.fragment - }); - console.log ("CONVERTED IS "+vc); + },{unicodeSupport:true});*/ + // console.log ("CONVERTED IS "+vc); - return vc; + return ostr; }; return { |
