Closed (outdated)
Project:
jQuery UI
Version:
6.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Nov 2010 at 15:20 UTC
Updated:
20 Nov 2022 at 22:51 UTC
Jump to comment: Most recent
Comments
Comment #1
ionmedia commentedok, i found what where is no added all widgets by default and i must load needed via jquery_ui_add(array('ui.dialog', 'ui.draggable', 'ui.resizable'));
ok, i putt this into template.php and it's work, but how can i add js via jquery_ui_add to specified templates/nodes/pages ?
Comment #2
ionmedia commentedi found solution and maybe some people need it too
add to your .tpl file (page-node-add.tpl) this
instead this
echo $scriptsComment #3
ionmedia commentedand with http://drupal.org/node/388384#comment-3667740
for adding needed css and js from ui to tpl
Comment #4
mikedotexe commentedThank you very much. I couldn't find a solution anywhere. It seemed so simple, but running a
$('#div').dialog(); wasn't accomplishing anything. Thank you for posting this.
Comment #5
prakhyatgailani commentedI guess applying
$("#dialog").dialog({
title: "jQuery Dialog Popup",
buttons: {
Close: function () {
$(this).dialog('close');
}
},
modal: true
});
might work
Comment #6
nod_Version for Drupal 6 is not supported anymore, closing.