Plugin Directory

Changeset 702301


Ignore:
Timestamp:
04/23/2013 03:20:02 PM (13 years ago)
Author:
Travelgrove
Message:

On admin interface if the searchbox is coming from JS, it's not added to the DOM -> bug was fixed by forceing teh searchbox to not come from JS on admin section(on admin section the JS file that initializes the searchbox on the frontend is not loaded and because if this the searchbox is not added to the DOM)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • travel-search/tags/1.2.3/classes/tgSearchboxesRenderer.class.php

    r702284 r702301  
    7171            $this->atts         = json_decode($this->atts['options'], true);
    7272        }
     73       
     74        /* on admin section we shouldn't use JS since the JS hadnling is not included on these pages */
     75        if (is_admin())
     76            $this->atts['usejavascript']    = false;
    7377
    7478        if (!isset($this->atts['usejavascript']))
Note: See TracChangeset for help on using the changeset viewer.