fix conflict with Gravity Forms
-
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'); } }
- The topic ‘fix conflict with Gravity Forms’ is closed to new replies.