Change delete js confirm to et2_dialog with slightly better message

This commit is contained in:
Nathan Gray 2015-12-04 21:23:32 +00:00
parent 7d20c6074d
commit 0788ca6f62

View File

@ -19,7 +19,7 @@
<menulist> <menulist>
<menupopup id="types" no_lang="1" onchange="1"/> <menupopup id="types" no_lang="1" onchange="1"/>
</menulist> </menulist>
<button label="Delete" id="delete" onclick="return confirm('WARNING: You are about to delete this type. Entries of this type won\'t be accessable then.');"/> <button label="Delete" id="delete" onclick="et2_dialog.confirm(widget,'Entries with a deleted type can cause problems.\nCheck for entries with this type before deleting.\nDelete?','Delete');"/>
<textbox blur="new name" id="name"/> <textbox blur="new name" id="name"/>
<button label="Create" id="create"/> <button label="Create" id="create"/>
</row> </row>