witten
/
luminotes
Archived
1
0
Fork 0

Prevent UI from attempting to load undefined toolbar buttons when viewing the trash.

This commit is contained in:
Dan Helfman 2009-01-29 16:21:11 -08:00
parent caaff7af59
commit b2648a037a
1 changed files with 3 additions and 3 deletions

View File

@ -1312,7 +1312,7 @@ Wiki.prototype.connect_image_button = function ( button, filename_prefix ) {
Wiki.prototype.down_image_button = function ( name ) {
var button = getElement( name );
if ( !button )
if ( !button || !button.filename_preifx )
return;
var toolbar_image_dir = this.get_toolbar_image_dir( button.always_small );
@ -1328,7 +1328,7 @@ Wiki.prototype.down_image_button = function ( name ) {
Wiki.prototype.up_image_button = function ( name ) {
var button = getElement( name );
if ( !button )
if ( !button || !button.filename_prefix )
return;
var toolbar_image_dir = this.get_toolbar_image_dir( button.always_small );
@ -1344,7 +1344,7 @@ Wiki.prototype.up_image_button = function ( name ) {
Wiki.prototype.toggle_image_button = function ( name ) {
var button = getElement( name );
if ( !button )
if ( !button || !button.filename_prefix )
return;
var toolbar_image_dir = this.get_toolbar_image_dir( button.always_small );