Hello,

When I editing my node with a image field whose maxmimu size is 640X480, if the image uploaded is bigger than the size then there will be a message "the image was resized to ..", but it's strange that the purr messages show that message twice.

Comments

tanc’s picture

Assigned: Unassigned » tanc

Thanks rogical, I've been able to replicate and will look into it.

tanc’s picture

Version: 7.x-2.0-beta1 » 7.x-2.x-dev

It seems to be something to do with AHAH forms and the overlay, but I can't work out what is happening yet. Have added this to the known issues on the purr messages page.
Still investigating...

nimoatwoodway’s picture

Hello,

I know, a little bit dirty, but works for me:

in file js/jquery.purr.js

in function notify():

function notify() {
      
      //nimo hack: check if new message already exist
      
        //inner html of the new notice
        var newMessage = $(notice).children('.notice-body').html();
        
        //search for same message
        $(cont).find('.notice-body').each(function(){
            if(newMessage == $(this).html()) {
              notice = false;
            }
        });
        
        //cancel notify process if message is already present
        if(!notice)
          return false;
      
      //END: nimo hack: check if new message already exist
      
      // Set up the close button
      var close = window.top.document.createElement('a');
      $(close).attr({
        class: 'close_message',
        innerHTML: 'Close'
      })
      .html('×')
      .appendTo(notice);

.... and so on