/** * Render popup dialog to change Telemarketer of listings * * @author Lam Huynh */ public function actionUpdateTelemarketer($id) { $model = new Listing(); $id = explode('-', trim($id, '-')); $aModelListing = Listing::GetModelByListId($id); if (isset($_POST['Listing'])) { Listing::massUpdateTelemarketer($_POST['Listing']); die('<script type="text/javascript">parent.$.fn.colorbox.close(); parent.$.fn.yiiGridView.update("listing-company-grid");</script>'); } $this->renderPartial('update-telemarketer', array('model' => $model, 'aModelListing' => $aModelListing, 'actions' => $this->listActionsCanAccess)); }