minor bug fix

Recommend this page to a friend!

      jQuery AJAX File Upload  >  All threads  >  minor bug fix  >  (Un) Subscribe thread alerts  
Subject:minor bug fix
Summary:remove iframe before appending in init function
Messages:1
Author:Peter Drinnan
Date:2013-07-04 14:52:24
 

  1. minor bug fix   Reply   Report abuse  
Picture of Peter Drinnan Peter Drinnan - 2013-07-04 14:52:24
Just a minor change here so that if you reinitialize the plugin to change the target url, it will not create a duplicated iframe (thereby making the element data inaccessible ) :

Added this line in the init function just above methods.createFrame(element)

> $('#' + $(element).data('settings').frameId).remove();