Commit a476184ce3a3669ab54e435f8996df74c593089c
1 parent
1a60caf1
Exists in
master
and in
29 other branches
Fix references to deprecated pluggin URL's in JS
Showing
2 changed files
with
12 additions
and
12 deletions
Show diff stats
plugins/mezuro/public/javascripts/project_content.js
@@ -112,7 +112,7 @@ function showModuleResult(content){ | @@ -112,7 +112,7 @@ function showModuleResult(content){ | ||
112 | function callAction(action, params, callback){ | 112 | function callAction(action, params, callback){ |
113 | var profile = projectContentData('profile'); | 113 | var profile = projectContentData('profile'); |
114 | var content = projectContentData('content'); | 114 | var content = projectContentData('content'); |
115 | - var endpoint = '/profile/' + profile + '/plugins/mezuro/' + action + '/' + content; | 115 | + var endpoint = '/profile/' + profile + '/plugin/mezuro/' + action + '/' + content; |
116 | jQuery.get(endpoint, params, callback); | 116 | jQuery.get(endpoint, params, callback); |
117 | } | 117 | } |
118 | 118 |
plugins/shopping_cart/public/cart.js
@@ -14,7 +14,7 @@ function Cart(config) { | @@ -14,7 +14,7 @@ function Cart(config) { | ||
14 | this.enterprise = config.enterprise; | 14 | this.enterprise = config.enterprise; |
15 | me = this; | 15 | me = this; |
16 | $.ajax({ | 16 | $.ajax({ |
17 | - url: '/profile/'+ this.enterprise +'/plugins/shopping_cart/visibility', | 17 | + url: '/profile/'+ this.enterprise +'/plugin/shopping_cart/visibility', |
18 | dataType: 'json', | 18 | dataType: 'json', |
19 | success: function(data, status, ajax){ | 19 | success: function(data, status, ajax){ |
20 | me.visible = /^true$/i.test(data); | 20 | me.visible = /^true$/i.test(data); |
@@ -25,7 +25,7 @@ function Cart(config) { | @@ -25,7 +25,7 @@ function Cart(config) { | ||
25 | alert('Visibility - HTTP '+status+': '+errorThrown); | 25 | alert('Visibility - HTTP '+status+': '+errorThrown); |
26 | } | 26 | } |
27 | }); | 27 | }); |
28 | - $(".cart-buy", this.cartElem).colorbox({href: '/profile/' + this.enterprise + '/plugins/shopping_cart/buy'}); | 28 | + $(".cart-buy", this.cartElem).colorbox({href: '/profile/' + this.enterprise + '/plugin/shopping_cart/buy'}); |
29 | } | 29 | } |
30 | } | 30 | } |
31 | 31 | ||
@@ -34,7 +34,7 @@ function Cart(config) { | @@ -34,7 +34,7 @@ function Cart(config) { | ||
34 | Cart.prototype.listProducts = function() { | 34 | Cart.prototype.listProducts = function() { |
35 | var me = this; | 35 | var me = this; |
36 | $.ajax({ | 36 | $.ajax({ |
37 | - url: '/profile/'+ this.enterprise +'/plugins/shopping_cart/list', | 37 | + url: '/profile/'+ this.enterprise +'/plugin/shopping_cart/list', |
38 | dataType: 'json', | 38 | dataType: 'json', |
39 | success: function(data, ststus, ajax){ | 39 | success: function(data, ststus, ajax){ |
40 | if ( !data.ok ) alert(data.error.message); | 40 | if ( !data.ok ) alert(data.error.message); |
@@ -100,7 +100,7 @@ function Cart(config) { | @@ -100,7 +100,7 @@ function Cart(config) { | ||
100 | var me = this; | 100 | var me = this; |
101 | if( quantity == NaN ) return input.value = input.lastValue; | 101 | if( quantity == NaN ) return input.value = input.lastValue; |
102 | $.ajax({ | 102 | $.ajax({ |
103 | - url: '/profile/'+ this.enterprise +'/plugins/shopping_cart/update_quantity/'+ itemId +'?quantity='+ quantity, | 103 | + url: '/profile/'+ this.enterprise +'/plugin/shopping_cart/update_quantity/'+ itemId +'?quantity='+ quantity, |
104 | dataType: 'json', | 104 | dataType: 'json', |
105 | success: function(data, status, ajax){ | 105 | success: function(data, status, ajax){ |
106 | if ( !data.ok ) { | 106 | if ( !data.ok ) { |
@@ -150,12 +150,12 @@ function Cart(config) { | @@ -150,12 +150,12 @@ function Cart(config) { | ||
150 | Cart.prototype.addItem = function(enterprise, itemId, callback) { | 150 | Cart.prototype.addItem = function(enterprise, itemId, callback) { |
151 | if(!this.enterprise) { | 151 | if(!this.enterprise) { |
152 | this.enterprise = enterprise; | 152 | this.enterprise = enterprise; |
153 | - $(".cart-buy", this.cartElem).colorbox({href: '/profile/' + this.enterprise + '/plugins/shopping_cart/buy'}); | 153 | + $(".cart-buy", this.cartElem).colorbox({href: '/profile/' + this.enterprise + '/plugin/shopping_cart/buy'}); |
154 | // $(this.cartElem).show(); | 154 | // $(this.cartElem).show(); |
155 | } | 155 | } |
156 | var me = this; | 156 | var me = this; |
157 | $.ajax({ | 157 | $.ajax({ |
158 | - url: '/profile/'+ enterprise +'/plugins/shopping_cart/add/'+ itemId, | 158 | + url: '/profile/'+ enterprise +'/plugin/shopping_cart/add/'+ itemId, |
159 | dataType: 'json', | 159 | dataType: 'json', |
160 | success: function(data, status, ajax){ | 160 | success: function(data, status, ajax){ |
161 | if ( !data.ok ) alert(data.error.message); | 161 | if ( !data.ok ) alert(data.error.message); |
@@ -178,7 +178,7 @@ function Cart(config) { | @@ -178,7 +178,7 @@ function Cart(config) { | ||
178 | if ($("li", this.itemsBox).size() < 2) return this.clean(); | 178 | if ($("li", this.itemsBox).size() < 2) return this.clean(); |
179 | var me = this; | 179 | var me = this; |
180 | $.ajax({ | 180 | $.ajax({ |
181 | - url: '/profile/'+ enterprise +'/plugins/shopping_cart/remove/'+ itemId, | 181 | + url: '/profile/'+ enterprise +'/plugin/shopping_cart/remove/'+ itemId, |
182 | dataType: 'json', | 182 | dataType: 'json', |
183 | success: function(data, status, ajax){ | 183 | success: function(data, status, ajax){ |
184 | if ( !data.ok ) alert(data.error.message); | 184 | if ( !data.ok ) alert(data.error.message); |
@@ -200,7 +200,7 @@ function Cart(config) { | @@ -200,7 +200,7 @@ function Cart(config) { | ||
200 | 200 | ||
201 | Cart.prototype.show = function() { | 201 | Cart.prototype.show = function() { |
202 | $.ajax({ | 202 | $.ajax({ |
203 | - url: '/profile/'+ this.enterprise +'/plugins/shopping_cart/show', | 203 | + url: '/profile/'+ this.enterprise +'/plugin/shopping_cart/show', |
204 | dataType: 'json', | 204 | dataType: 'json', |
205 | cache: false, | 205 | cache: false, |
206 | error: function(ajax, status, errorThrown) { | 206 | error: function(ajax, status, errorThrown) { |
@@ -215,7 +215,7 @@ function Cart(config) { | @@ -215,7 +215,7 @@ function Cart(config) { | ||
215 | } | 215 | } |
216 | Cart.prototype.hide = function() { | 216 | Cart.prototype.hide = function() { |
217 | $.ajax({ | 217 | $.ajax({ |
218 | - url: '/profile/'+ this.enterprise +'/plugins/shopping_cart/hide', | 218 | + url: '/profile/'+ this.enterprise +'/plugin/shopping_cart/hide', |
219 | dataType: 'json', | 219 | dataType: 'json', |
220 | cache: false, | 220 | cache: false, |
221 | error: function(ajax, status, errorThrown) { | 221 | error: function(ajax, status, errorThrown) { |
@@ -252,7 +252,7 @@ function Cart(config) { | @@ -252,7 +252,7 @@ function Cart(config) { | ||
252 | Cart.prototype.clean = function() { | 252 | Cart.prototype.clean = function() { |
253 | var me = this; | 253 | var me = this; |
254 | $.ajax({ | 254 | $.ajax({ |
255 | - url: '/profile/'+ me.enterprise +'/plugins/shopping_cart/clean', | 255 | + url: '/profile/'+ me.enterprise +'/plugin/shopping_cart/clean', |
256 | dataType: 'json', | 256 | dataType: 'json', |
257 | success: function(data, status, ajax){ | 257 | success: function(data, status, ajax){ |
258 | if ( !data.ok ) alert(data.error.message); | 258 | if ( !data.ok ) alert(data.error.message); |
@@ -284,7 +284,7 @@ function Cart(config) { | @@ -284,7 +284,7 @@ function Cart(config) { | ||
284 | var me = this; | 284 | var me = this; |
285 | $.ajax({ | 285 | $.ajax({ |
286 | type: 'POST', | 286 | type: 'POST', |
287 | - url: '/profile/'+ me.enterprise +'/plugins/shopping_cart/send_request', | 287 | + url: '/profile/'+ me.enterprise +'/plugin/shopping_cart/send_request', |
288 | data: params, | 288 | data: params, |
289 | dataType: 'json', | 289 | dataType: 'json', |
290 | success: function(data, status, ajax){ | 290 | success: function(data, status, ajax){ |