diff options
author | Adam Mathes <adam@trenchant.org> | 2018-02-13 21:01:04 -0800 |
---|---|---|
committer | Adam Mathes <adam@trenchant.org> | 2018-02-13 21:01:04 -0800 |
commit | c30083ff11d4d206c564c8476a034b37aefad885 (patch) | |
tree | 2db71f613311ebde0cb5f9fa77072be2bc14ab4d /static/ui.js | |
parent | c55b94202858eac95358358d2add5cd46afa38b4 (diff) | |
download | neko-c30083ff11d4d206c564c8476a034b37aefad885.tar.gz neko-c30083ff11d4d206c564c8476a034b37aefad885.tar.bz2 neko-c30083ff11d4d206c564c8476a034b37aefad885.zip |
change domain / url style
Diffstat (limited to 'static/ui.js')
-rw-r--r-- | static/ui.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/static/ui.js b/static/ui.js index 4df0550..d76602e 100644 --- a/static/ui.js +++ b/static/ui.js @@ -177,6 +177,10 @@ var Item = Backbone.Model.extend({ url: '/item/', initialize: function() { + var p_url = this.get('url'); + p_url = p_url.replace('https://', ''); + p_url = p_url.replace('http://', ''); + this.set('p_url', p_url); this.bind('change', this.maybeSave); }, |