Support » Plugin: NextGEN Gallery - WordPress Gallery Plugin » [Plugin: NextGEN Gallery] IE6 Javascript Error Fix

  • T Klein

    (@tklein87gmailcom)


    // 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/

  • The topic ‘[Plugin: NextGEN Gallery] IE6 Javascript Error Fix’ is closed to new replies.