Make WordPress Core


Ignore:
Timestamp:
05/31/2009 11:34:08 AM (16 years ago)
Author:
azaozz
Message:

Reload the widget form with the ajax response after save, add Close link to the widgets, don't auto-close on save to show possible errors returned from validation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/widgets.php

    r11445 r11498  
    169169    <div class="widget-inside">
    170170    <form action="" method="post">
     171    <div class="widget-content">
    171172<?php
    172173    if ( isset($control['callback']) )
     
    174175    else
    175176        echo "\t\t<p>" . __('There are no options for this widget.') . "</p>\n"; ?>
    176 
     177    </div>
    177178    <input type="hidden" name="widget-id" class="widget-id" value="<?php echo esc_attr($id_format); ?>" />
    178179    <input type="hidden" name="id_base" class="id_base" value="<?php echo esc_attr($id_base); ?>" />
     
    184185
    185186    <div class="widget-control-actions">
    186         <a class="button widget-control-remove alignleft" href="#remove"><?php _e('Remove'); ?></a>
     187        <div class="alignleft">
     188        <a class="widget-control-remove" href="#remove"><?php _e('Remove'); ?></a> |
     189        <a class="widget-control-close" href="#close"><?php _e('Close'); ?></a>
     190        </div>
    187191<?php       if ( 'noform' !== $has_form ) { ?>
    188         <input type="submit" name="savewidget" class="button-primary widget-control-save alignright" value="<?php esc_attr_e('Save'); ?>" />
     192        <div class="alignright">
     193        <img src="images/wpspin_light.gif" class="ajax-feedback " title="" alt="" />
     194        <input type="submit" name="savewidget" class="button-primary widget-control-save" value="<?php esc_attr_e('Save'); ?>" />
     195        </div>
    189196<?php       } ?>
    190197        <br class="clear" />
Note: See TracChangeset for help on using the changeset viewer.