jQuery errors when non-admin is logged in
Permalink2. The block uses a jquery dialog
3. User Profiles and Advanced permissions are enabled (if you think it matters)
4. Running C5 5.7.5
When logged in as administrator, everything works fine.
When logged in as a normal user i get:
- On I.E 11: "SCRIPT438: Object doesn't support property or method 'dialog'"
- On Chrome or Firefox: "TypeError: $(...).dialog is not a function"
function productDetails(pID){ var pName = $('#pName' + pID).html(); $("#pCost").html("$" + $('#pPrice' + pID).val()); $("#pMarkup").html($('#pMarkup' + pID).val() + "%"); $( "#productDialog" ).dialog({ modal: true, title: pName + " Options", height: 530, width: 400, buttons: { Ok: function() { $( this ).dialog( "close" ); } } });
According to "alert($().jquery);" i am running "1.11.3"
fix: