Replace old confirm() with new confirm dialog for admin app

This commit is contained in:
Hadi Nategh 2013-12-05 11:19:18 +00:00
parent f222706dcc
commit 19eb5f0d76
4 changed files with 7 additions and 7 deletions

View File

@ -47,8 +47,8 @@
<description id="${row}[session_action]"/>
<description statustext="$row_cont[user_agent]" id="{$row}[user_agent]" class="userAgent"/>
<hbox align="center" options="0,0">
<button statustext="Delete this log entry" label="Delete" id="delete[$row_cont[sessionid]]" onclick="return confirm('Delete this log entry');" image="delete"/>
<button label="Kill" id="kill[$row_cont[sessionid]]" onclick="return confirm('Are you sure you want to kill this session ?');" image="close"/>
<button statustext="Delete this log entry" label="Delete" id="delete[$row_cont[sessionid]]" onclick="et2_dialog.confirm(widget,'Delete this log entry','Delete');" image="delete"/>
<button label="Kill" id="kill[$row_cont[sessionid]]" onclick="et2_dialog.confirm(widget,'Are you sure you want to kill this session ?','Kill');" image="close"/>
<checkbox align="right" id="selected[]" options="$row_cont[sessionid]"/>
</hbox>
</row>
@ -75,8 +75,8 @@
<textbox type="float" label=": %s %" id="percent" precision="1" readonly="true"/>
</hbox>
<hbox align="right">
<button statustext="Delete selected entries" label="Delete" id="delete" onclick="return confirm('Delete the selected entries');" image="delete"/>
<button label="Kill" id="kill" onclick="return confirm('Are you sure you want to kill this session ?');" image="close"/>
<button statustext="Delete selected entries" label="Delete" id="delete" onclick="et2_dialog.confirm(widget,'Delete the selected entries','Delete')" image="delete"/>
<button label="Kill" id="kill" onclick="et2_dialog.confirm(widget,'Are you sure you want to kill this session ?','Kill')" image="close"/>
<buttononly label="Select all" onclick="toggle_all(this.form,form::name('selected[]')); return false;" options="arrow_ltr"/>
</hbox>
</row>

View File

@ -45,7 +45,7 @@
</vbox>
<date-time id="${row}[modified]" readonly="true"/>
<url-email id="${row}[modifier]" readonly="true" options=",,,$row_cont[modifier_email]"/>
<button image="delete" label="Cancel" id="delete[$row_cont[id]]" statustext="Cancel this scheduled command" onclick="return confirm('Cancel this scheduled command');"/>
<button image="delete" label="Cancel" id="delete[$row_cont[id]]" statustext="Cancel this scheduled command" onclick="et2_dialog.confirm(widget,'Cancel this scheduled command','Cancel');"/>
</row>
</rows>
</grid>

View File

@ -18,7 +18,7 @@
<menulist>
<menupopup id="types" no_lang="1" onchange="1"/>
</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,'WARNING: You are about to delete this type. Entries of this type won\'t be accessable then.','Delete')"/>
<textbox blur="new name" id="name"/>
<button label="Create" id="create"/>
</row>

View File

@ -18,7 +18,7 @@
<row>
<textbox id="${row}[phrase]" size="64"/>
<textbox id="${row}[translation]" size="64"/>
<button align="center" label="Delete" id="delete[$row]" onclick="return confirm('Delete');" image="delete"/>
<button align="center" label="Delete" id="delete[$row]" onclick="et2_dialog.confirm(widget,'Delete','Delete')" image="delete"/>
</row>
</rows>
</grid>