Fix nm_popup dialog does not display full content of button's label

This commit is contained in:
Hadi Nategh 2014-12-19 13:52:57 +00:00
parent 1bec5bb261
commit 2021a8227e

View File

@ -431,12 +431,14 @@ function nm_open_popup(_action, _selected)
} }
}); });
}); });
// Need to get the dialog width before make it hidden
var dialog_width = dialog.outerWidth(true);
popup.hide(); popup.hide();
dialog.dialog({ dialog.dialog({
title: jQuery('.promptheader',popup).text(), title: jQuery('.promptheader',popup).text(),
modal: true, modal: true,
buttons: d_buttons, buttons: d_buttons,
minWidth: dialog.outerWidth(true), minWidth: dialog_width,
close: function(event, ui) { close: function(event, ui) {
// Need to destroy the dialog, etemplate widget needs divs back where they were // Need to destroy the dialog, etemplate widget needs divs back where they were
dialog.dialog("destroy"); dialog.dialog("destroy");