Save Button handler for Edit My Thumbnail

edited June 2012 in Vanilla 2.0 - 2.8

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.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • 422422 MVP
    Answer ✓

    is removepicturelink defined ?

    There was an error rendering this rich post.

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.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • 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.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • 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.

    There was an error rendering this rich post.

  • 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 :)

  • 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.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • 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 MVP
    Answer ✓

    is removepicturelink defined ?

    There was an error rendering this rich post.

  • edited June 2012

    422 said:
    is removepicturelink defined ?

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

    Now the remove confirmation works :)

Sign In or Register to comment.