X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FPrice%2FPage%2FField.php;h=f78efa343da3c45041ca943e66b0bb5c73d6eda4;hb=a74880802265c949ef3284b795d320396966629f;hp=83d8743ec6af9d0bc8a9b903a02dfe2cbf154fbb;hpb=67be46e602d4eed73b2739743698bc3f3719df2c;p=civicrm-core.git diff --git a/CRM/Price/Page/Field.php b/CRM/Price/Page/Field.php index 83d8743ec6..f78efa343d 100644 --- a/CRM/Price/Page/Field.php +++ b/CRM/Price/Page/Field.php @@ -1,7 +1,7 @@ array( 'name' => ts('Disable'), - 'extra' => 'onclick = "enableDisable( %%fid%%,\'' . 'CRM_Price_BAO_PriceField' . '\',\'' . 'enable-disable' . '\' );"', - 'ref' => 'disable-action', + 'ref' => 'crm-enable-disable', 'title' => ts('Disable Price'), ), CRM_Core_Action::ENABLE => array( 'name' => ts('Enable'), - 'extra' => 'onclick = "enableDisable( %%fid%%,\'' . 'CRM_Price_BAO_PriceField' . '\',\'' . 'disable-enable' . '\' );"', - 'ref' => 'enable-action', + 'ref' => 'crm-enable-disable', 'title' => ts('Enable Price'), ), CRM_Core_Action::DELETE => array( @@ -124,6 +122,7 @@ class CRM_Price_Page_Field extends CRM_Core_Page { * @access public */ function browse() { + CRM_Core_Resources::singleton()->addScriptFile('civicrm', 'js/crm.livePage.js'); $priceField = array(); $priceFieldBAO = new CRM_Price_BAO_PriceField(); @@ -172,11 +171,18 @@ class CRM_Price_Page_Field extends CRM_Core_Page { $htmlTypes = CRM_Price_BAO_PriceField::htmlTypes(); $priceField[$priceFieldBAO->id]['html_type'] = $htmlTypes[$priceField[$priceFieldBAO->id]['html_type']]; $priceField[$priceFieldBAO->id]['order'] = $priceField[$priceFieldBAO->id]['weight']; - $priceField[$priceFieldBAO->id]['action'] = CRM_Core_Action::formLink(self::actionLinks(), $action, + $priceField[$priceFieldBAO->id]['action'] = CRM_Core_Action::formLink( + self::actionLinks(), + $action, array( 'fid' => $priceFieldBAO->id, 'sid' => $this->_sid, - ) + ), + ts('more'), + FALSE, + 'priceField.row.actions', + 'PriceField', + $priceFieldBAO->id ); }