'success'=>'js: function(data) {
$("#addToListDialog$model->product_id").dialog().dialog("close");}'
I'm trying to write the above piece of javascript, but can't get the right combination of curly brackets a single/double quotes in order to resolve the PHP variable. How should I be writing this?