15252.diff

Administrator Admin, 2010-07-27 20:43

Download (888 Bytes)

View differences:

typo3/js/shortcutmenu.js (Arbeitskopie)
254 254
		var toolbarItemIcon = $$('#shortcut-menu .toolbar-item span.t3-icon')[0];
255 255

  
256 256
		var parent = Element.up(toolbarItemIcon);
257
		var oldIcon = toolbarItemIcon.remove();
258
		var spinner = Element('span', { 'class': 'spinner'});
259
		parent.insert(spinner, {position: content});
257
		var spinner = new Element('span').addClassName('spinner');
258
		var oldIcon = toolbarItemIcon.replace(spinner);
260 259

  
261 260
			// synchrous call to wait for it to complete and call the render
262 261
			// method with backpath _afterwards_
......
266 265
		});
267 266

  
268 267
		this.reRenderMenu(null, null, backPath);
269
		spinner.remove();
270
		parent.insert(oldIcon, {position: content});
268
		spinner.replace(oldIcon);
271 269
	}
272 270

  
273 271
});