Plugin Directory

Changeset 491046


Ignore:
Timestamp:
01/17/2012 10:29:38 AM (14 years ago)
Author:
Skowron
Message:

fixed widget save button issue
fixed wizard problems on <IE8

Location:
nokia-mapsplaces/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nokia-mapsplaces/trunk/page/js/core.js

    r490588 r491046  
    178178                var saveId = widget[1].replace('placeData', 'savewidget');
    179179               
    180                 var saveBtn = jQuery(node.parentNode.parentNode.parentNode).find('#savewidget, #'+saveId);
     180                var saveBtn = jQuery(node.parentNode.parentNode.parentNode).find('input[name=savewidget]');  //, #savewidget, #'+saveId
    181181                if(saveBtn){
    182182                    saveBtn.trigger('click');
     
    213213            jQuery('.checkboxContainer div[rel=' + options[i] + ']').removeClass('hidden');
    214214            checkbox = jQuery('.checkboxContainer input[value=' + options[i] + ']')[0];
    215             checkbox.checked = true;
    216             toogleDisplayOption.call(checkbox)
     215            if(checkbox){
     216                checkbox.checked = true;
     217                toogleDisplayOption.call(checkbox)
     218            }
    217219        }
    218220    }
     
    348350                }
    349351            },
    350             template: 'nokia.blue.place'
     352            template: widget ? 'nokia.blue.compact' : 'nokia.blue.place'
    351353        });
    352354
  • nokia-mapsplaces/trunk/widget.php

    r488838 r491046  
    4848            <p>
    4949            <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 Place" name="addPlace"></a>
     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>
    5151            </p>
    5252            <?php
Note: See TracChangeset for help on using the changeset viewer.