Author Topic: Errore deleting a report (ver 1.4.2)  (Read 2084 times)

ftaioli

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Errore deleting a report (ver 1.4.2)
« on: June 23, 2009, 07:19:53 am »
When I try to delete a report a get javascript error
 
 " og.deleteReport is not a function "

Browser:  firefox 3

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Errore deleting a report (ver 1.4.2)
« Reply #1 on: June 24, 2009, 03:01:52 pm »
Yep, there's a missing function. Add this code at the end of 'application/views/reporting/index.php':

Code: [Select]
<script>
og.deleteReport = function(id){
if(confirm(lang('delete report confirmation'))){
og.openLink(og.getUrl('reporting', 'delete_custom_report', {id: id}));
}
};
</script>

This will be fixed for next version.

Thanks.

ftaioli

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Errore deleting a report (ver 1.4.2)
« Reply #2 on: June 25, 2009, 01:22:17 pm »
Thank you very much!  ;)

Niels

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Vesper Interactive
Re: Errore deleting a report (ver 1.4.2)
« Reply #3 on: June 28, 2009, 07:28:27 am »
From me as well:)

 

anything
anything