Changeset 1714

Show
Ignore:
Timestamp:
07/24/08 16:24:13 (4 months ago)
Author:
JensDiemer
Message:

add some JavaScript? confirm dialogs.

Location:
trunk/pylucid/media/PyLucid/internal_page
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/media/PyLucid/internal_page/blog/display_blog.html

    r1713 r1714  
    1919        {% endif %} 
    2020        {% if entry.delete_url %} 
    21             <a href="{{ entry.delete_url }}" title="delete this blog entry">delete</a> 
     21            <a href="{{ entry.delete_url }}" title="delete this blog entry" onClick="return confirm('{% trans 'Do you really want to delete the entry?' %}');">{% trans 'delete' %}</a> 
    2222        {% endif %} 
    2323        </div> 
     
    6161                      <div class="admin_links"> 
    6262                        {% if comment.edit_url %}<a href="{{ comment.edit_url }}">edit</a>{% endif %} 
    63                         {% if comment.delete_url %}<a href="{{ comment.delete_url }}" onClick="return confirm('Realy want to delete the comment entry?');">delete</a>{% endif %} 
     63                        {% if comment.delete_url %}<a href="{{ comment.delete_url }}" onClick="return confirm('{% trans 'Do you really want to delete the entry?' %}');">{% trans 'delete' %}</a>{% endif %} 
    6464                      </div> 
    6565 
  • trunk/pylucid/media/PyLucid/internal_page/plugin_admin/administation_menu.html

    r1575 r1714  
    5959                        <span class="action"> 
    6060                            &uArr; <input type="submit" value="deinstall" name="deinstall" 
    61                                 title="delete the Plugin with all Data (incl. internal pages)" /> 
     61                                onClick="return confirm('{% trans 'Do you really want to deinstall the plugin? All plugin data lost!' %}');" 
     62                                title="delete the plugin with all Data" /> 
    6263                        </span> 
    6364                    </form> 
     
    107108                <form method="post" action="{{ action_url }}"> 
    108109                    <input name="id" type="hidden" value="{{ plugin.id }}" /> 
    109                     <input type="submit" value="reinit" name="reinit" /> 
     110                    <input type="submit" value="reinit" name="reinit" 
     111                            onClick="return confirm('{% trans 'Do you really want to reinit the plugin? All plugin data lost!' %}');" 
     112                            title="delete the plugin with all Data and install it in one step" /> 
    110113                </form> 
    111114            </td>