[wp-trac] Re: [WordPress Trac] #2539: Better maintainability of client-server administration code.

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 6 23:23:19 GMT 2006


#2539: Better maintainability of client-server administration code.
-----------------------+----------------------------------------------------
       Id:  2539       |      Status:  new                     
Component:  General    |    Modified:  Mon Mar  6 23:23:19 2006
 Severity:  normal     |   Milestone:  2.1                     
 Priority:  low        |     Version:  2.0.1                   
    Owner:  anonymous  |    Reporter:  mdawaffe                
-----------------------+----------------------------------------------------
Comment (by mdawaffe):

 We could define a DOING_AJAX constant in list-manipulation.php and then
 have all the cases in that file point to where they are handled in the
 regular, non-AJAX files ('delete-post' going to post.php with $action =
 'delete' ).  These non-AJAX sections would then have to be tweaked to
 change their behaviour based on DOING_AJAX.  That keeps the JS simple.

 Alternatively, we could get rid of list-manipulation.php altogether and
 make the JS beefy enough to direct the AJAX calls to the right file.  I'd
 like to keep the JS as small as possible, though.  Plus, it'll be tricky
 to detect if we're doing an AJAX call.

 Thoughts?  PS: No need to take care of this right away.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2539>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list