Fork me on GitHub
Please upgrade to 2.1.x here. The 2.0 branch is no longer being updated.
You should grab 2.1.9, released 18 March. It's what all the cool kids are doing.

Save Button handler for Edit My Thumbnail

edited June 2012 in Vanilla 2.0 Help

how to find where it is?

the found url redirects in files

forum\js\library\jquery.popup.js
and
forum\applications\dashboard\controllers\class.profilecontroller.php

seems not connected to this dialog.

Best Answers

  • peregrineperegrine MVP
    edited June 2012 Answer ✓

    it is probably take care of in profile.js around line 55

    $('.Popup :submit').click(function() {
    $('.Popup .Body').children().hide().end().append('<div class="Loading">&nbsp;</div>');
    }); 
    

    and then reverts back to the file that made the call to it - profile/index.php or profile/thumbnailphp. maybe? you might have look digging around in those three files.

    johansonlocker
  • 422422 Developer MVP
    Answer ✓

    is removepicturelink defined ?

    422 Real Estate Australia , now open Check it out

    johansonlocker

Answers

  • peregrineperegrine MVP
    edited June 2012 Answer ✓

    it is probably take care of in profile.js around line 55

    $('.Popup :submit').click(function() {
    $('.Popup .Body').children().hide().end().append('<div class="Loading">&nbsp;</div>');
    }); 
    

    and then reverts back to the file that made the call to it - profile/index.php or profile/thumbnailphp. maybe? you might have look digging around in those three files.

    johansonlocker
  • edited June 2012

    Yes, thanx. I've found this line already.

    Now i think of implementing remove picture approval.

    There's a popup linked to RemovePictureLink in the same profile.js

       // Remove Profile Picture
       $('a.RemovePictureLink').popup({
          confirm: true,
          followConfirm: false
       });
    

    but it doesnt work.

  • well, if you ask a question and you solved it - save us some time from having to respond by saying solved - seems like the courteous thing to do.

    suggestion:
    how to find where it is?

    should say

    how do I find where it is?

    then I will know you are asking a question, instead of providing an answer.

  • 422422 Developer MVP

    Please keep one discussion to ONE question.

    It gets ever so complicated when you mix and match @johansonlocker

    Plus users searching the forums, will find a title to one thing and context within it to something else.

    422 Real Estate Australia , now open Check it out

    johansonlocker
  • edited June 2012

    @peregrine
    Oh my apologies, i've seen your answer by the moment when I had been going to say that the question had been solved :)

    And what about remove confirmation - could you help me ? :)

  • 422 said:
    Please keep one discussion to ONE question.

    Ok, I will next time :)

    422
  • johansonlocker said:
    @peregrine
    Oh my apologies, i've seen your answer by the moment when I had been going to say that the question had been solved :)

    And what about remove confirmation - could you help me ? :)

    can you explain again what you want to do or add more details - its not clear to me.

  • edited June 2012

    peregrine said:
    can you explain again what you want to do or add more details - its not clear to me.

    well, in the file profile.js there's a code
    which should call a confirmation popup $('a.RemovePictureLink').popup({

    But it doesn't popup - it redirects to RemovPicture in class.profilecontroller.php

    How to correct the code that it shows a confirmation dialog?

    I corrected the code to

               // Remove Profile Picture
               $('a.RemovePictureLink').live('click',function(){
                  alert(123);
               });
    

    but it does not work too.

  • 422422 Developer MVP
    Answer ✓

    is removepicturelink defined ?

    422 Real Estate Australia , now open Check it out

    johansonlocker
  • edited June 2012

    422 said:
    is removepicturelink defined ?

    oh thanx a lot - this class has really parent tag < li > :)

    Now the remove confirmation works :)

    422
Sign In or Register to comment.