i want to add my own javascript file to dataobject_manager popup
in DataObject_Manager.php add
Requirements::javascript('dataobject_manager/javascript/test.js');
test.js
(function($) {
alert('start');
var option = $('#DataObjectManager_Popup_AddForm_FileID option:selected').text();
alert(option);
})(jQuery);
the alert is shown when i reload the CMS but the next rules doesn't work
also this rule doesn't work too
$('.footer').css('background-color','#000');
.footer --> footer div of dataobject_manager popup