返信先: 商品追加ダイアログで追加ボタンを押す時の表示位置

フォーラム 要望と提案 商品追加ダイアログで追加ボタンを押す時の表示位置 返信先: 商品追加ダイアログで追加ボタンを押す時の表示位置

#78374
tatsuquito
参加者

時間があったので order_edit_form.php の該当箇所をいじってみました:

$(“#addItemDialog”).dialog({
autoOpen: false,
height: 500,
width: 700,
position: { my: ‘top’, at: ‘top+150’ },  <- ここ追加
resizable: true,
modal: true,
buttons: {
‘<?php _e(‘close’, ‘usces’); ?>’: function() {
$(this).dialog(‘close’);
}
},
close: function() {
$(“#newitemcategory”).val( “-1” );
$(“#newitemform”).html( “” );
$(‘#newitemcode’).val(”);
}
});

StackOverflowのこれを参考にしました:

jqueryui dialog positioning
http://stackoverflow.com/questions/9304830/jqueryui-dialog-positioning