Closed (fixed)
Project:
Asset
Version:
5.x-1.x-dev
Component:
User interface (Asset wizard)
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jan 2008 at 13:42 UTC
Updated:
7 Feb 2008 at 07:41 UTC
asset_textarea.js and asset_textfield.js both contain code that is already taken care of by asset.js :
$("#edit-cancel").click(cancelAction);
$("#edit-aid").change(function(){
$(".asset-preview").load(''/index.php?q=asset/js/preview/'+$(this).val());
});
initLoader();
This causes the cancelAction() to be performed twice on 'cancel' (no big deal)
the load performed twice on 'change'
and initLoader executed twice.
AFAICT, that code could be removed from asset_textarea.js and asset_textfield.js
Comments
Comment #1
wmostrey commentedThanks for pointing this out. I removed it from both files, did some testing with both TinyMCE, CCK and normal "Insert assets" and functionality remains.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.