Changeset 1867


Ignore:
Timestamp:
May 24, 2011, 12:38:24 PM (9 years ago)
Author:
work@…
Message:
  • improved feedback for #447
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/studyWizard/pages/_subjects.gsp

    r1865 r1867  
    6767                if (tableEditor) {
    6868                        tableEditor.registerActionCallback('delete', function() {
    69                                 if (confirm('are you sure you want to delete ' + ((this.length>1) ? 'these '+this.length+' subjects?' : 'this subject?'))) {
     69                                var subjects = (this.length>1) ? 'these ' + this.length + ' subjects' : 'this subject';
     70                                if (confirm('are you sure you want to delete ' + subjects +'? Note that samples for ' + subjects + ' will also be deleted!')) {
    7071                                        $('input[name="do"]').val(this);
    7172                                        <af:ajaxSubmitJs name="delete" afterSuccess="onPage()" />
Note: See TracChangeset for help on using the changeset viewer.