Support » Plugin: Advanced AJAX Page Loader » [Plugin: Advanced AJAX Page Loader] Ignore List by some class or id

  • Hey.
    Is it possible to ignore list, not through url, but after a certain class or id?

    Why? Let me explain:
    I use a multilingual plugin qTranslate. It generates its own menu to switch languages. Therefore, to change the language of the main menu – you need to refresh the entire page, as the main menu is the same in the header. Otherwise, if you change the language changes only content, and the menu is the one that was in the beginning, when approaching the site.

    http://wordpress.org/extend/plugins/advanced-ajax-page-loader/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Andrew MAGIK

    (@magikru)

    Спасибо за быстрый и изчерпывающий ответ )
    Вообщем вот моё решение:

    заменяем 43 строчку кода в

    if (this.href.indexOf(AAPLhome) >= 0 && AAPL_check_ignore(this.href) == true){

    на

    if (this.href.indexOf(AAPLhome) >= 0 && AAPL_check_ignore(this.href) == true && (this.href).parent().attr('class')=='language-menu-container'){

    где language-menu-container – название класса родителя, ссылки в котором будут полностью перегружать страницу, без использования плагина.

    It’s not working :-/

    I’ve made this change in advanced-ajax-page-loader/ajax-page-loader.js and plugin is no longer working.

    Thread Starter Andrew MAGIK

    (@magikru)

    Вот что я в итоге использовал в рабочем проекте:
    if (this.href.indexOf(AAPLhome) >= 0 && AAPL_check_ignore(this.href) == true && 1 != jQuery(this).closest('.language-menu-container').length){
    это изменение проверят наличие нужного класса у всех родителей элемента, не только у его непосредственного родителя…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Advanced AJAX Page Loader] Ignore List by some class or id’ is closed to new replies.