I need to use jquery ui tabs library but only in one add form. So i used hook_form_alter()
to enable tabs and add my js:
drupal_add_library('system', 'ui.tabs');
drupal_add_js(drupal_get_path('theme', 'rating') .'/js/newad.js', 'file');
Library and script was correctly added into page head
and it is correctly available by this url but something wrong with it and it's not working:
Wy Chrome is failed to load it?
contents of newad.js:
(function ($) {
$(function() {
$( ".select-format-ads" ).tabs();
});
})(jQuery);
UPD: if i add alert('test');
in begining nothing happens in Chrome, but works fine in Safari.