Plugin Directory

Changeset 600188


Ignore:
Timestamp:
09/17/2012 05:52:08 PM (13 years ago)
Author:
Bilbud
Message:

Corrected ajax call in errorList.

Location:
404-error-monitor
Files:
14 added
3 edited

Legend:

Unmodified
Added
Removed
  • 404-error-monitor/trunk/includes/errorList.php

    r599688 r600188  
    126126            <?php }
    127127            foreach($errorsRowset as $row){
    128            
     128                $domain = $error->getDomain($row);
    129129                if($previousBlogId != $row->blog_id && is_network_admin()){
    130                     $domain = $error->getDomain($row);
     130                   
    131131                    ?>
    132132                    <tr id="blog<?php echo $row->blog_id;?>">
     
    141141                    <td><?php echo $row->count;?></td>
    142142                    <td>
    143                     <?php if($row->referer != ""):?>
    144                         <a target="_blank" href="<?php echo $row->referer;?>"><?php echo $row->referer;?></a></td>
    145                     <?php else:?>
    146                         --
    147                     <?php endif;?>
     143                        <?php if($row->referer != ""):?>
     144                            <a target="_blank" href="<?php echo $row->referer;?>"><?php echo $row->referer;?></a>
     145                        <?php else:?>
     146                            --
     147                        <?php endif;?>
     148                    </td>
    148149                    <td><?php echo mysql2date(get_option('date_format'), $row->last_error);?>,  <?php echo mysql2date(get_option('time_format'), $row->last_error);?></td>
    149                     <td><a class="button-secondary" id="<?php echo $row->id;?>" href="<?php bloginfo('wpurl'); ?>/wp-admin/admin-ajax.php">Delete</a></td>
     150                    <td><a class="delete-single-entry button-secondary" id="<?php echo $row->id;?>" href="<?php bloginfo('wpurl'); ?>/wp-admin/admin-ajax.php">Delete</a></td>
    150151                </tr>
    151152            <?php
  • 404-error-monitor/trunk/js/admin.js

    r599688 r600188  
    1717
    1818jQuery(document).ready( function($) {
    19   $(".error_monitor-error-list .error_monitor-error-row td a").click( function() {
     19  $(".error_monitor-error-list .error_monitor-error-row td .delete-single-entry").click( function() {
    2020      var item = this;
    2121      $.post($(this).attr("href"), {
     
    2525          $('.wrap .error_monitor-message').html('');
    2626          if(data == 0){
    27               $('.wrap .error_monitor-message').html('<div class="error" id="message"><p><strong>Error</strong> while removing entries.</p></div>');
     27              $('.wrap .error_monitor-message').html('<div class="error" id="message"><p><strong>Error</strong> while removing entry.</p></div>');
    2828          } else {
    2929              $('.wrap .error_monitor-message').html('<div class="updated" id="message"><p>Entry <strong>removed </strong> successfully</p></div>');
  • 404-error-monitor/trunk/readme.txt

    r599745 r600188  
    25251. Configure settings. If you opted for a network install go to network admin dashboard to configure settings.
    26261. Go to 404 Error monitor page to see error list. For network installation, use 404 Error monitor page from network admin dashboard to see error list for the entire network or use 404 Error monitor page located in the settings menu of an admin dashboard to see website error lists individually.
     27
     28== Changelog ==
     29
     30= 1.0.1 =
     31* Corrected ajax call in errorList
Note: See TracChangeset for help on using the changeset viewer.