Plugin Directory

Changeset 491101


Ignore:
Timestamp:
01/17/2012 12:20:44 PM (14 years ago)
Author:
Skowron
Message:

event for thickbox in widget area for WP 2.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nokia-mapsplaces/trunk/widget.php

    r491046 r491101  
    4747            ?>
    4848            <p>
    49             <input id="<?php echo $this->get_field_id('placeData'); ?>" name="<?php echo $this->get_field_name('placeData'); ?>" type="hidden" value="<?php echo $placeData; ?>" />
    50             <a id='add_place' style="text-decoration: none;" href='<?php echo $path; ?>/page/index.php?widgetMode=<?php echo $this->get_field_id('placeData'); ?>&TB_iframe=true&height=500&width=660' class='thickbox' alt='foo' title='Add a map - Powered by Nokia'><input id="addPlace" class="button-primary" type="button" value="Choose a place" name="addPlace"></a>
     49                <input id="<?php echo $this->get_field_id('placeData'); ?>" name="<?php echo $this->get_field_name('placeData'); ?>" type="hidden" value="<?php echo $placeData; ?>" />
     50                <a id='add_place' style="text-decoration: none;" href='<?php echo $path; ?>/page/index.php?widgetMode=<?php echo $this->get_field_id('placeData'); ?>&TB_iframe=true&height=500&width=660' class='thickbox thickbox<?php echo $this->get_field_id('placeData'); ?>' alt='foo' title='Add a map - Powered by Nokia'><input id="addPlace" class="button-primary" type="button" value="Choose a place" name="addPlace"></a>
    5151            </p>
     52            <script type="text/javascript">
     53                tb_init('a.thickbox<?php echo $this->get_field_id('placeData'); ?>');// Needed for WP 2.9
     54            </script>
     55           
    5256            <?php
    5357    }
Note: See TracChangeset for help on using the changeset viewer.