added more descriptive wording to the template/report delete
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 26 Apr 2007 16:16:35 +0000 (16:16 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 26 Apr 2007 16:16:35 +0000 (16:16 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0@7176 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/reports/oils_rpt_folder_window.js
Open-ILS/web/reports/oils_rpt_folder_window.xhtml

index 73e8f72..d017f9a 100644 (file)
@@ -221,6 +221,7 @@ oilsRptFolderWindow.prototype.doFolderAction = function() {
 
        var obj = this;
        switch(action) {
+
                case 'create_report' :
                        hideMe(DOM.oils_rpt_folder_table_right_td);
                        unHideMe(DOM.oils_rpt_folder_table_alt_td);
@@ -228,12 +229,12 @@ oilsRptFolderWindow.prototype.doFolderAction = function() {
                        new oilsRptReportEditor(new oilsReport(objs[0]), this);
                        break;
                case 'delete_report' :
-                       if(!confirmId('oils_rpt_folder_contents_confirm_delete')) return;
+                       if(!confirmId('oils_rpt_verify_report_delete')) return;
                        this.deleteReports(objs, 0, successCallback);
                        break;
 
                case 'delete_template' :
-                       if(!confirmId('oils_rpt_folder_contents_confirm_delete')) return;
+            if(!confirmId('oils_rpt_verify_template_delete')) return;
                        this.deleteTemplates(objs, 0, successCallback);
                        break;
 
@@ -418,6 +419,7 @@ oilsRptFolderWindow.prototype.deleteTemplates = function(list, idx, callback, er
 
        } else {
 
+
 //             var req0 = new Request( OILS_RPT_TEMPLATE_HAS_RPTS, SESSION, tmpl.id() );
 //             req0.callback(
 //                     function(r0) {
index e04ce8c..5aab176 100644 (file)
                You may not move another user's items
        </span>
 
+       <span class='hide_me' id='oils_rpt_verify_template_delete'>
+        This will also delete all of your attached reports and outputs for
+        this template.  
+
+        If other users have reports or outputs attached to this template,
+        those will be left untouched and the template will not be deleted.
+        
+        Do you wish continue?
+       </span>
+
+       <span class='hide_me' id='oils_rpt_verify_report_delete'>
+        This will also delete all of your attached outputs for
+        this report.  
+        
+        If other users have outputs attached to this report,
+        those will be left untouched and the report will not be deleted.
+        
+        Do you wish continue?
+       </span>
+
 
 </div>