[-] BO: fixed bug Cart rules - Javascript error - #PSCFV-5045

This commit is contained in:
sLorenzini
2013-04-09 11:22:19 +02:00
parent e5cf7a4c06
commit c26fa09667
@@ -84,6 +84,13 @@ function addCartRuleOption(item)
function updateProductRuleShortDescription(item)
{
/******* For IE: put a product in condition on cart rules *******/
if(typeof String.prototype.trim !== 'function') {
String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g, '');
}
}
var id1 = $(item).attr('id').replace('_add', '').replace('_remove', '');
var id2 = id1.replace('_select', '');
var length = $('#' + id1 + '_2 option').length;