projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CRM-14106 - Regex targeting the first part of if statements
[civicrm-core.git]
/
CRM
/
Price
/
Page
/
Field.php
diff --git
a/CRM/Price/Page/Field.php
b/CRM/Price/Page/Field.php
index 46494f77a6fbb5fb5baf11224621f0cf144d0d57..f78efa343da3c45041ca943e66b0bb5c73d6eda4 100644
(file)
--- a/
CRM/Price/Page/Field.php
+++ b/
CRM/Price/Page/Field.php
@@
-93,14
+93,12
@@
class CRM_Price_Page_Field extends CRM_Core_Page {
),
CRM_Core_Action::DISABLE => array(
'name' => ts('Disable'),
),
CRM_Core_Action::DISABLE => 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'),
'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(
'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() {
* @access public
*/
function browse() {
+ CRM_Core_Resources::singleton()->addScriptFile('civicrm', 'js/crm.livePage.js');
$priceField = array();
$priceFieldBAO = new CRM_Price_BAO_PriceField();
$priceField = array();
$priceFieldBAO = new CRM_Price_BAO_PriceField();