Bug #22761 ยป 14536.diff
typo3/js/backendsearch.js (Arbeitskopie) | ||
---|---|---|
Ext.onReady(function() {
|
||
this.positionMenu();
|
||
this.toolbarItemIcon = $$('#backend-search-menu .toolbar-item img')[0].src;
|
||
this.toolbarItemIcon = $$('#backend-search-menu .toolbar-item span.t3-icon')[0];
|
||
$('search-query').observe('keypress', function(event) {
|
||
var keyCode;
|
typo3/js/clearcachemenu.js (Arbeitskopie) | ||
---|---|---|
Ext.onReady(function() {
|
||
this.positionMenu();
|
||
this.toolbarItemIcon = $$('#clear-cache-actions-menu .toolbar-item img')[0].src;
|
||
this.toolbarItemIcon = $$('#clear-cache-actions-menu .toolbar-item span.t3-icon')[0];
|
||
Event.observe('clear-cache-actions-menu', 'click', this.toggleMenu)
|
||
... | ... | |
* @param Event prototype event object
|
||
*/
|
||
clearCache: function(event) {
|
||
var toolbarItemIcon = $$('#clear-cache-actions-menu .toolbar-item img')[0];
|
||
var toolbarItemIcon = $$('#clear-cache-actions-menu .toolbar-item span.t3-icon')[0];
|
||
var url = '';
|
||
var clickedElement = Event.element(event);
|
||
// activate the spinner
|
||
toolbarItemIcon.src = 'gfx/spinner.gif';
|
||
var parent = Element.up(toolbarItemIcon);
|
||
var oldIcon = toolbarItemIcon.remove();
|
||
var spinner = Element('span', { 'class': 'spinner'});
|
||
parent.insert(spinner, {position: content});
|
||
if (clickedElement.tagName === 'IMG') {
|
||
if (clickedElement.tagName === 'SPAN') {
|
||
url = clickedElement.up('a').href;
|
||
} else {
|
||
url = clickedElement.href;
|
||
... | ... | |
var call = new Ajax.Request(url, {
|
||
'method': 'get',
|
||
'onComplete': function() {
|
||
toolbarItemIcon.src = this.toolbarItemIcon;
|
||
spinner.remove();
|
||
parent.insert(oldIcon, {position: content});
|
||
}.bind(this)
|
||
});
|
||
}
|
typo3/js/shortcutmenu.js (Arbeitskopie) | ||
---|---|---|
Ext.onReady(function() {
|
||
this.positionMenu();
|
||
this.toolbarItemIcon = $$('#shortcut-menu .toolbar-item img')[0].src;
|
||
this.toolbarItemIcon = $$('#shortcut-menu .toolbar-item span.t3-icon')[0];
|
||
Event.observe($$('#shortcut-menu .toolbar-item')[0], 'click', this.toggleMenu);
|
||
this.initControls();
|
||
... | ... | |
* when finished it reloads the menu
|
||
*/
|
||
createShortcut: function(backPath, moduleName, url) {
|
||
$$('#shortcut-menu .toolbar-item img')[0].src = 'gfx/spinner.gif';
|
||
var toolbarItemIcon = $$('#shortcut-menu .toolbar-item span.t3-icon')[0];
|
||
var parent = Element.up(toolbarItemIcon);
|
||
var oldIcon = toolbarItemIcon.remove();
|
||
var spinner = Element('span', { 'class': 'spinner'});
|
||
parent.insert(spinner, {position: content});
|
||
// synchrous call to wait for it to complete and call the render
|
||
// method with backpath _afterwards_
|
||
var call = new Ajax.Request(backPath + 'ajax.php', {
|
||
... | ... | |
});
|
||
this.reRenderMenu(null, null, backPath);
|
||
$$('#shortcut-menu .toolbar-item img')[0].src = this.toolbarItemIcon;
|
||
spinner.remove();
|
||
parent.insert(oldIcon, {position: content});
|
||
}
|
||
});
|
typo3/classes/class.clearcachemenu.php (Arbeitskopie) | ||
---|---|---|
$this->addJavascriptToBackend();
|
||
$cacheMenu = array();
|
||
$cacheMenu[] = '<a href="#" class="toolbar-item"><img'.t3lib_iconWorks::skinImg($this->backPath, 'gfx/lightning.png', 'width="16" height="16"').' title="'.$title.'" alt="'.$title.'" /></a>';
|
||
$cacheMenu[] = '<a href="#" class="toolbar-item">' .
|
||
t3lib_iconWorks::getSpriteIcon('apps-toolbar-menu-cache', array('title' => $title)) .
|
||
'</a>';
|
||
$cacheMenu[] = '<ul class="toolbar-item-menu" style="display: none;">';
|
||
typo3/classes/class.workspaceselector.php (Arbeitskopie) | ||
---|---|---|
$stateUncheckedIcon = '<img src="clear.gif" width="16" height="16" title="' . $GLOBALS['LANG']->getLL('shortcut_inactive') .
|
||
'" alt="' . $GLOBALS['LANG']->getLL('shortcut_inactive') . '" class="state-inactive" />';
|
||
$workspaceMenu[] = '<a href="#" class="toolbar-item"><img' .
|
||
t3lib_iconWorks::skinImg(
|
||
$this->backPath,
|
||
'gfx/i/sys_workspace.png',
|
||
'width="16" height="16"') .
|
||
' title="' . $title . '" alt="' . $title . '" /></a>';
|
||
$workspaceMenu[] = '<a href="#" class="toolbar-item">' .
|
||
t3lib_iconWorks::getSpriteIcon('apps-toolbar-menu-workspace', array('title' => $title)) .
|
||
'</a>';
|
||
$workspaceMenu[] = '<ul class="toolbar-item-menu" style="display: none;">';
|
||
if (count($availableWorkspaces)) {
|
typo3/classes/class.shortcutmenu.php (Arbeitskopie) | ||
---|---|---|
$shortcutMenu = array();
|
||
$shortcutMenu[] = '<a href="#" class="toolbar-item"><img'.t3lib_iconWorks::skinImg($this->backPath, 'gfx/toolbar_shortcut.png', 'width="16" height="16"').' title="'.$title.'" alt="'.$title.'" /></a>';
|
||
$shortcutMenu[] = '<a href="#" class="toolbar-item">' .
|
||
t3lib_iconWorks::getSpriteIcon('apps-toolbar-menu-shortcut', array('title' => $title)) .
|
||
'</a>';
|
||
$shortcutMenu[] = '<div class="toolbar-item-menu" style="display: none;">';
|
||
$shortcutMenu[] = $this->renderMenu();
|
||
$shortcutMenu[] = '</div>';
|
typo3/classes/class.backendsearchmenu.php (Arbeitskopie) | ||
---|---|---|
$this->addJavascriptToBackend();
|
||
$searchMenu = array();
|
||
$searchMenu[] = '<a href="#" class="toolbar-item"><img'.t3lib_iconWorks::skinImg($this->backPath, 'gfx/magnifier.png', 'width="16" height="16"').' title="'.$title.'" alt="'.$title.'" /></a>';
|
||
$searchMenu[] = '<a href="#" class="toolbar-item">' .
|
||
t3lib_iconWorks::getSpriteIcon('apps-toolbar-menu-search', array('title' => $title)) .
|
||
'</a>';
|
||
$searchMenu[] = '<div class="toolbar-item-menu" style="display: none;">';
|
||
$searchMenu[] = '<input type="text" id="search-query" name="search-query" value="" />';
|
typo3/sysext/opendocs/class.tx_opendocs.php (Arbeitskopie) | ||
---|---|---|
// toolbar item icon
|
||
$opendocsMenu[] = '<a href="#" class="toolbar-item">';
|
||
$opendocsMenu[] = '<input type="text" id="tx-opendocs-counter" disabled="disabled" value="' . $numDocs . '" />';
|
||
$opendocsMenu[] = '<img' . t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], t3lib_extMgm::extRelPath($this->EXTKEY) . 'opendocs.png', 'width="23" height="16"') . ' alt="' . $title . '" title="' . $title . '" /></a>';
|
||
$opendocsMenu[] = t3lib_iconWorks::getSpriteIcon('apps-toolbar-menu-opendocs', array('title' => $title)) . '</a>';
|
||
// toolbar item menu and initial content
|
||
$opendocsMenu[] = '<div class="toolbar-item-menu" style="display: none;">';
|
typo3/sysext/opendocs/opendocs.js (Arbeitskopie) | ||
---|---|---|
Ext.onReady(function() {
|
||
this.positionMenu();
|
||
this.toolbarItemIcon = $$('#tx-opendocs-menu .toolbar-item img')[0].src;
|
||
this.toolbarItemIcon = $$('#tx-opendocs-menu .toolbar-item span.t3-icon')[0];
|
||
this.ajaxScript = top.TS.PATH_typo3 + this.ajaxScript; // can't be initialized earlier
|
||
Event.observe($$('#tx-opendocs-menu .toolbar-item')[0], 'click', this.toggleMenu);
|