Results 1 to 2 of 2

Thread: Pagination question and possible problem

  1. #1
    Thread Starter
    Newbie primaltalk's Avatar
    Join Date
    May 2011
    Location
    United Kingdom
    Posts
    4
    Thanks
    0
    Thanked 5 Times in 2 Posts

    Pagination question and possible problem

    The pagination code constructs a form to post refined search fields back to the server on each page link (which isn't great practice as it doesn't degrade gracefully with javascript turned off).

    Regardless, looking at the code, I see that classipress constructs the form including the field name and id, which conflicts with the refine search widget that uses the same ids for its form fields and then screws up any javascript that tries to reference the field by id (which should be unique).

    My question is: is there any reason the pagination form includes the id, or can it be removed? It's on about line 689 of appthemes-functions.php.


    Code:
    <input type="hidden" name="<?php echo esc_attr( $key ); ?>" value="<?php echo esc_attr( $value ); ?>" />
    should be

    Code:
    <input type="hidden" name="<?php echo esc_attr( $key ); ?>" id="<?php echo esc_attr( $key ); ?>" value="<?php echo esc_attr( $value ); ?>" />
    Thanks.

  2. #2
    Veteran barukar's Avatar
    Join Date
    Sep 2010
    Location
    Brasil, São Paulo, SP
    Posts
    6,782
    Thanks
    185
    Thanked 741 Times in 623 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    -------------------------------------------------------------------------------------------
    Projects: ClassiNoiva - Classimóveis - vocênoenem - i50 - Clube DETRAN

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Pagination
    By titomartins in forum Report ClassiPress Bugs
    Replies: 5
    Last Post: July 19th, 2011, 09:18 AM
  2. Job pagination
    By designengine in forum Report JobRoller Bugs
    Replies: 5
    Last Post: June 23rd, 2011, 03:32 AM
  3. Bug in Tab pagination
    By bundyla in forum Report ClassiPress Bugs
    Replies: 10
    Last Post: May 12th, 2011, 05:41 PM
  4. [MOD NEEDED] Pagination problem
    By pinocchio in forum ClassiPress General Discussion
    Replies: 2
    Last Post: April 21st, 2011, 06:00 AM
  5. Pagination
    By jobsmall in forum Report JobRoller Bugs
    Replies: 1
    Last Post: January 3rd, 2011, 08:14 PM