Made function not throw in IE when run before the page is fully loaded.
This commit is contained in:
parent
1d0867d776
commit
d8eb591549
|
@ -2941,15 +2941,21 @@ Recent_notes.prototype.total_notes_count_updated = function( count ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Recent_notes.prototype.update_navigation_links = function() {
|
Recent_notes.prototype.update_navigation_links = function() {
|
||||||
if ( this.total_notes_count > this.max_recent_notes_count )
|
var more_link = getElement( "recent_notes_more_link" );
|
||||||
removeElementClass( "recent_notes_more_link", "undisplayed" );
|
if ( more_link ) {
|
||||||
else
|
if ( this.total_notes_count > this.max_recent_notes_count )
|
||||||
addElementClass( "recent_notes_more_link", "undisplayed" );
|
removeElementClass( more_link, "undisplayed" );
|
||||||
|
else
|
||||||
|
addElementClass( more_link, "undisplayed" );
|
||||||
|
}
|
||||||
|
|
||||||
if ( this.max_recent_notes_count > this.INCREMENT )
|
var less_link = getElement( "recent_notes_less_link" );
|
||||||
removeElementClass( "recent_notes_less_link", "undisplayed" );
|
if ( less_link ) {
|
||||||
else
|
if ( this.max_recent_notes_count > this.INCREMENT )
|
||||||
addElementClass( "recent_notes_less_link", "undisplayed" );
|
removeElementClass( less_link, "undisplayed" );
|
||||||
|
else
|
||||||
|
addElementClass( less_link, "undisplayed" );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Recent_notes.prototype.link_clicked = function ( event ) {
|
Recent_notes.prototype.link_clicked = function ( event ) {
|
||||||
|
|
Reference in New Issue
Block a user