From c30083ff11d4d206c564c8476a034b37aefad885 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Tue, 13 Feb 2018 21:01:04 -0800 Subject: change domain / url style --- static/ui.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'static/ui.js') 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); }, -- cgit v1.2.3