Prevent UI from attempting to load undefined toolbar buttons when viewing the trash.
This commit is contained in:
parent
caaff7af59
commit
b2648a037a
|
@ -1312,7 +1312,7 @@ Wiki.prototype.connect_image_button = function ( button, filename_prefix ) {
|
||||||
|
|
||||||
Wiki.prototype.down_image_button = function ( name ) {
|
Wiki.prototype.down_image_button = function ( name ) {
|
||||||
var button = getElement( name );
|
var button = getElement( name );
|
||||||
if ( !button )
|
if ( !button || !button.filename_preifx )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var toolbar_image_dir = this.get_toolbar_image_dir( button.always_small );
|
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 ) {
|
Wiki.prototype.up_image_button = function ( name ) {
|
||||||
var button = getElement( name );
|
var button = getElement( name );
|
||||||
if ( !button )
|
if ( !button || !button.filename_prefix )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var toolbar_image_dir = this.get_toolbar_image_dir( button.always_small );
|
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 ) {
|
Wiki.prototype.toggle_image_button = function ( name ) {
|
||||||
var button = getElement( name );
|
var button = getElement( name );
|
||||||
if ( !button )
|
if ( !button || !button.filename_prefix )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var toolbar_image_dir = this.get_toolbar_image_dir( button.always_small );
|
var toolbar_image_dir = this.get_toolbar_image_dir( button.always_small );
|
||||||
|
|
Reference in New Issue