WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
IE6 Javascript Error Fix (1 post)

  1. T Klein
    Member
    Posted 3 years ago #

    // File Tree implementation
    		jQuery(function() {
    		    jQuery("span.browsefiles").show().click(function(){
        		    jQuery("#file_browser").fileTree({
        		      script: "admin-ajax.php?action=ngg_file_browser&nonce=<?php echo wp_create_nonce( 'ngg-ajax' ) ;?>",
                      root: jQuery("#galleryfolder").val(),
        		    }, function(folder) {
        		        jQuery("#galleryfolder").val( folder );
        		    });
    		    	jQuery("#file_browser").show('slide');
    		    });
    		});

    Notice the comma after the "root: jQuery("#galleryfolder").val(),"

    This comma is unneccessary as was causing javascript errors in IE6. Removing the comma doesn't seem to cause any ILL effects, and fixes the error and the layout breaking in IE6 on the add gallery/images tab.

    // File Tree implementation
    		jQuery(function() {
    		    jQuery("span.browsefiles").show().click(function(){
        		    jQuery("#file_browser").fileTree({
        		      script: "admin-ajax.php?action=ngg_file_browser&nonce=<?php echo wp_create_nonce( 'ngg-ajax' ) ;?>",
                      root: jQuery("#galleryfolder").val()
        		    }, function(folder) {
        		        jQuery("#galleryfolder").val( folder );
        		    });
    		    	jQuery("#file_browser").show('slide');
    		    });
    		});

    http://wordpress.org/extend/plugins/nextgen-gallery/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.