Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ticket/12342 Javascript Bugs and Fixes #2229

Merged
merged 4 commits into from Apr 4, 2014

Conversation

iMattPro
Copy link
Member

@iMattPro iMattPro commented Apr 2, 2014

http://tracker.phpbb.com/browse/PHPBB3-12342

  1. Use prop() instead of attr() when checking/setting boolean properties
  2. Fix the Find a member/Hide a member ajax search form
  3. Fix the custom date script in UCP Global Prefs. When a user has
    chosen a custom date, any time the UCP Global Prefs page loads,
    it should reveal to the user the normally hidden custom date field.
    This function was being triggered at the wrong time, so it was trying
    to use functions that did not exists yet.

PHPBB3-12342

Function was being called before dE() function exists,
causing it to fail. Should be called when the page/window
is ready.

PHPBB3-12342
@@ -30,7 +30,7 @@ <h2 class="solo">{PAGE_TITLE}<!-- IF SEARCH_WORDS -->{L_COLON} <a href="{U_SEARC

<ul class="linklist wrap">
<li>
<!-- IF U_FIND_MEMBER and not S_SEARCH_USER --><a href="{U_FIND_MEMBER}" id="member_search" data-alt-text="{LA_HIDE_MEMBER_SEARCH}">{L_FIND_USERNAME}</a> &bull; <!-- ELSEIF S_SEARCH_USER and U_HIDE_FIND_MEMBER and not S_IN_SEARCH_POPUP --><a href="{U_HIDE_FIND_MEMBER}" id="member_search" data-alt-text="{LA_FIND_USERNAME}">{L_HIDE_MEMBER_SEARCH}</a> &bull; <!-- ENDIF -->
<!-- IF U_FIND_MEMBER and not S_SEARCH_USER --><a href="{U_FIND_MEMBER}" id="member_search" data-ajax="alt_text" data-alt-text="{LA_HIDE_MEMBER_SEARCH}">{L_FIND_USERNAME}</a> &bull; <!-- ELSEIF S_SEARCH_USER and U_HIDE_FIND_MEMBER and not S_IN_SEARCH_POPUP --><a href="{U_HIDE_FIND_MEMBER}" id="member_search" data-ajax="alt_text" data-alt-text="{LA_FIND_USERNAME}">{L_HIDE_MEMBER_SEARCH}</a> &bull; <!-- ENDIF -->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't the alt_text here duplicate of https://github.com/phpbb/phpbb/pull/2229/files#diff-c4a89ebc14a8dd561ba742e24e328cbeR390 ?
Also this added the waiting-circle icon (which i dont really understand why it is needed at all)
This should not be an ajax call, just pure JS?

@iMattPro
Copy link
Member Author

iMattPro commented Apr 3, 2014

Updated. You're right. The real problem was in the core.js file. That has been fixed. Now the member list show/hide toggles without any spinner.

@nickvergessen nickvergessen merged commit 0c25c60 into phpbb:develop-ascraeus Apr 4, 2014
@iMattPro iMattPro deleted the ticket/12342 branch April 4, 2014 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants