Changeset 491046
- Timestamp:
- 01/17/2012 10:29:38 AM (14 years ago)
- Location:
- nokia-mapsplaces/trunk
- Files:
-
- 2 edited
-
page/js/core.js (modified) (3 diffs)
-
widget.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
nokia-mapsplaces/trunk/page/js/core.js
r490588 r491046 178 178 var saveId = widget[1].replace('placeData', 'savewidget'); 179 179 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 181 181 if(saveBtn){ 182 182 saveBtn.trigger('click'); … … 213 213 jQuery('.checkboxContainer div[rel=' + options[i] + ']').removeClass('hidden'); 214 214 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 } 217 219 } 218 220 } … … 348 350 } 349 351 }, 350 template: 'nokia.blue.place'352 template: widget ? 'nokia.blue.compact' : 'nokia.blue.place' 351 353 }); 352 354 -
nokia-mapsplaces/trunk/widget.php
r488838 r491046 48 48 <p> 49 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 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> 51 51 </p> 52 52 <?php
Note: See TracChangeset
for help on using the changeset viewer.