Project

General

Profile

Bug #3270 » 3270-part1.patch

krileon, 15 February 2012 16:05

View differences:

administrator/components/com_comprofiler/toolbar.comprofiler.html.php
/**
* Writes a custom option and task button for the button bar.
* Extended version of custom() calling hideMainMenu() before submitbutton().
* Extended version of custom() calling cbhideMainMenu() before submitbutton().
* @param string The task to perform (picked up by the switch($task) blocks
* @param string The image to display
* @param string The image to display when moused over
......
* @param boolean True if required to check that a standard list item is checked
*/
static function customX( $task='', $icon='', $iconOver='', $alt='', $listSelect=true ) {
CBtoolmenuBar::custom ($task, $icon, $iconOver, $alt, $listSelect, 'hideMainMenu();');
CBtoolmenuBar::custom ($task, $icon, $iconOver, $alt, $listSelect, 'cbhideMainMenu();');
}
/**
......
$script .= "if (confirm('" . addslashes( $confirmMsg ) . "')) { ";
}
if ( $extended ) {
$script .= 'hideMainMenu();';
$script .= 'cbhideMainMenu();';
}
$script .= "submitbutton('$task')";
if ( $confirmMsg ) {
......
/**
* Writes the common 'new' icon for the button bar.
* Extended version of addNew() calling hideMainMenu() before submitbutton().
* Extended version of addNew() calling cbhideMainMenu() before submitbutton().
* @param string An override for the task
* @param string An override for the alt text
*/
......
/**
* Writes a common 'edit' button for a list of records.
* Extended version of editList() calling hideMainMenu() before submitbutton().
* Extended version of editList() calling cbhideMainMenu() before submitbutton().
* @param string An override for the task
* @param string An override for the alt text
*/
......
/**
* Writes a common 'edit' button for a template html.
* Extended version of editHtml() calling hideMainMenu() before submitbutton().
* Extended version of editHtml() calling cbhideMainMenu() before submitbutton().
* @param string An override for the task
* @param string An override for the alt text
*/
......
/**
* Writes a common 'edit' button for a template css.
* Extended version of editCss() calling hideMainMenu() before submitbutton().
* Extended version of editCss() calling cbhideMainMenu() before submitbutton().
* @param string An override for the task
* @param string An override for the alt text
*/
......
/**
* Writes a common 'delete' button for a list of records.
* Extended version of deleteList() calling hideMainMenu() before submitbutton().
* Extended version of deleteList() calling cbhideMainMenu() before submitbutton().
* @param string Postscript for the 'are you sure' message
* @param string An override for the task
* @param string An override for the alt text
......
CBtoolmenuBar::spacer();
}
if ( CBuser::getMyInstance()->authoriseAction( 'core.edit' ) ) {
CBtoolmenuBar::editList('editPlugin');
/*
if (is_callable(array("CBtoolmenuBar","editListX"))) { // Mambo 4.5.0 support:
CBtoolmenuBar::editListX('editPlugin');
} else {
CBtoolmenuBar::editList('editPlugin');
}
*/
CBtoolmenuBar::spacer();
}
if ( CBuser::getMyInstance()->authoriseAction( 'core.admin' ) ) {
(1-1/2)