jrAction_form in modal window like site search (jrElastic)
Design and Skin Customization
Got it! Thanks
So I just want to make sure I am not going to mess anything up here.
/**
* Display a modal new action form
*/
function jrAction_modal_form(){
$('#new_action').modal({
onOpen: function (dialog) {
dialog.overlay.fadeIn(75, function () {
dialog.container.slideDown(5, function () {
dialog.data.fadeIn(75);
$('#new_action_input').focus();
});
});
},
onClose: function (dialog) {
dialog.data.fadeOut('fast', function () {
dialog.container.hide('fast', function () {
dialog.overlay.fadeOut('fast', function () {
$.modal.close();
});
});
});
},
overlayClose:true
});
}
I am the most unsure about this line: $('#new_action_input').focus();
What do you think? Is it even necessary?
Lastly, what is the difference between "75" "5" and "fast"?
Thanks