WordPress.org

Ready to get started?Download WordPress

Forums

PicasaView
fix conflict with Gravity Forms (1 post)

  1. sunriseweb
    Member
    Posted 1 year ago #

    In compatible with Gravity Forms form editor. To fix this problem change the following lines so that admin javascript is loaded only on picasaview page:

    public function adminHeader() {
    	  if($_GET['page'] == 'picasaview.php') {
    		  wp_enqueue_script('picasaview-admin', plugins_url('picasaview-admin.js', __FILE__), array('scriptaculous'), '1.0');
    		}
    	}

    Also changed loadScripts so that only loaded on front end:

    public function loadScripts() {
    		if($this->options['quickpaging'] && !is_admin()) {
    			wp_enqueue_script('picasaview', plugins_url('picasaview.js', __FILE__), array('jquery'), '1.1.5');
    		}
    	}

    http://wordpress.org/extend/plugins/picasaview/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic