Commit a476184ce3a3669ab54e435f8996df74c593089c
1 parent
1a60caf1
Exists in
staging
and in
42 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 | 112 | function callAction(action, params, callback){ |
| 113 | 113 | var profile = projectContentData('profile'); |
| 114 | 114 | var content = projectContentData('content'); |
| 115 | - var endpoint = '/profile/' + profile + '/plugins/mezuro/' + action + '/' + content; | |
| 115 | + var endpoint = '/profile/' + profile + '/plugin/mezuro/' + action + '/' + content; | |
| 116 | 116 | jQuery.get(endpoint, params, callback); |
| 117 | 117 | } |
| 118 | 118 | ... | ... |
plugins/shopping_cart/public/cart.js
| ... | ... | @@ -14,7 +14,7 @@ function Cart(config) { |
| 14 | 14 | this.enterprise = config.enterprise; |
| 15 | 15 | me = this; |
| 16 | 16 | $.ajax({ |
| 17 | - url: '/profile/'+ this.enterprise +'/plugins/shopping_cart/visibility', | |
| 17 | + url: '/profile/'+ this.enterprise +'/plugin/shopping_cart/visibility', | |
| 18 | 18 | dataType: 'json', |
| 19 | 19 | success: function(data, status, ajax){ |
| 20 | 20 | me.visible = /^true$/i.test(data); |
| ... | ... | @@ -25,7 +25,7 @@ function Cart(config) { |
| 25 | 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 | 34 | Cart.prototype.listProducts = function() { |
| 35 | 35 | var me = this; |
| 36 | 36 | $.ajax({ |
| 37 | - url: '/profile/'+ this.enterprise +'/plugins/shopping_cart/list', | |
| 37 | + url: '/profile/'+ this.enterprise +'/plugin/shopping_cart/list', | |
| 38 | 38 | dataType: 'json', |
| 39 | 39 | success: function(data, ststus, ajax){ |
| 40 | 40 | if ( !data.ok ) alert(data.error.message); |
| ... | ... | @@ -100,7 +100,7 @@ function Cart(config) { |
| 100 | 100 | var me = this; |
| 101 | 101 | if( quantity == NaN ) return input.value = input.lastValue; |
| 102 | 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 | 104 | dataType: 'json', |
| 105 | 105 | success: function(data, status, ajax){ |
| 106 | 106 | if ( !data.ok ) { |
| ... | ... | @@ -150,12 +150,12 @@ function Cart(config) { |
| 150 | 150 | Cart.prototype.addItem = function(enterprise, itemId, callback) { |
| 151 | 151 | if(!this.enterprise) { |
| 152 | 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 | 154 | // $(this.cartElem).show(); |
| 155 | 155 | } |
| 156 | 156 | var me = this; |
| 157 | 157 | $.ajax({ |
| 158 | - url: '/profile/'+ enterprise +'/plugins/shopping_cart/add/'+ itemId, | |
| 158 | + url: '/profile/'+ enterprise +'/plugin/shopping_cart/add/'+ itemId, | |
| 159 | 159 | dataType: 'json', |
| 160 | 160 | success: function(data, status, ajax){ |
| 161 | 161 | if ( !data.ok ) alert(data.error.message); |
| ... | ... | @@ -178,7 +178,7 @@ function Cart(config) { |
| 178 | 178 | if ($("li", this.itemsBox).size() < 2) return this.clean(); |
| 179 | 179 | var me = this; |
| 180 | 180 | $.ajax({ |
| 181 | - url: '/profile/'+ enterprise +'/plugins/shopping_cart/remove/'+ itemId, | |
| 181 | + url: '/profile/'+ enterprise +'/plugin/shopping_cart/remove/'+ itemId, | |
| 182 | 182 | dataType: 'json', |
| 183 | 183 | success: function(data, status, ajax){ |
| 184 | 184 | if ( !data.ok ) alert(data.error.message); |
| ... | ... | @@ -200,7 +200,7 @@ function Cart(config) { |
| 200 | 200 | |
| 201 | 201 | Cart.prototype.show = function() { |
| 202 | 202 | $.ajax({ |
| 203 | - url: '/profile/'+ this.enterprise +'/plugins/shopping_cart/show', | |
| 203 | + url: '/profile/'+ this.enterprise +'/plugin/shopping_cart/show', | |
| 204 | 204 | dataType: 'json', |
| 205 | 205 | cache: false, |
| 206 | 206 | error: function(ajax, status, errorThrown) { |
| ... | ... | @@ -215,7 +215,7 @@ function Cart(config) { |
| 215 | 215 | } |
| 216 | 216 | Cart.prototype.hide = function() { |
| 217 | 217 | $.ajax({ |
| 218 | - url: '/profile/'+ this.enterprise +'/plugins/shopping_cart/hide', | |
| 218 | + url: '/profile/'+ this.enterprise +'/plugin/shopping_cart/hide', | |
| 219 | 219 | dataType: 'json', |
| 220 | 220 | cache: false, |
| 221 | 221 | error: function(ajax, status, errorThrown) { |
| ... | ... | @@ -252,7 +252,7 @@ function Cart(config) { |
| 252 | 252 | Cart.prototype.clean = function() { |
| 253 | 253 | var me = this; |
| 254 | 254 | $.ajax({ |
| 255 | - url: '/profile/'+ me.enterprise +'/plugins/shopping_cart/clean', | |
| 255 | + url: '/profile/'+ me.enterprise +'/plugin/shopping_cart/clean', | |
| 256 | 256 | dataType: 'json', |
| 257 | 257 | success: function(data, status, ajax){ |
| 258 | 258 | if ( !data.ok ) alert(data.error.message); |
| ... | ... | @@ -284,7 +284,7 @@ function Cart(config) { |
| 284 | 284 | var me = this; |
| 285 | 285 | $.ajax({ |
| 286 | 286 | type: 'POST', |
| 287 | - url: '/profile/'+ me.enterprise +'/plugins/shopping_cart/send_request', | |
| 287 | + url: '/profile/'+ me.enterprise +'/plugin/shopping_cart/send_request', | |
| 288 | 288 | data: params, |
| 289 | 289 | dataType: 'json', |
| 290 | 290 | success: function(data, status, ajax){ | ... | ... |