[Vtigercrm-developers] user export function not working in Firefox

Uma S uma.s at vtiger.com
Wed May 6 03:45:43 GMT 2015


Hi,

Thanks! for notification, will look into this issue.
On May 6, 2015 7:13 AM, "Hamono, Chris (DPC)" <Chris.Hamono at sa.gov.au>
wrote:

>
>
> Vtiger 6.2
>
>
>
> When clicking on export users nothing happens
>
>
>
> The problem appears to be in the export script in
>
> layouts\vlayout\modules\Users\resources\List.js
>
>
>
> The function
>
>
>
>         triggerExportAction: function() {
>
>             var url = window.location.href;
>
>             var siteUrl = url.split('?');
>
>             var newForm = jQuery('<form>', {
>
>                 'method': 'post',
>
>                 'action': siteUrl[0] +
> '?module=Users&source_module=Users&action=ExportData',
>
>             }).append(jQuery('<input>', {
>
>                 'name': csrfMagicName,
>
>                 'value': csrfMagicToken,
>
>                 'type': 'hidden'
>
>             }));
>
>             newForm.submit();
>
>     }
>
>
>
> Needs to be changed to (or something similar)
>
>
>
>         triggerExportAction: function() {
>
>             var url = window.location.href;
>
>             var siteUrl = url.split('?');
>
>             var newForm = jQuery('<form>', {
>
>                 'method': 'post',
>
>                 'action': siteUrl[0] +
> '?module=Users&source_module=Users&action=ExportData',
>
>             }).append(jQuery('<input>', {
>
>                 'name': csrfMagicName,
>
>                 'value': csrfMagicToken,
>
>                 'type': 'hidden'
>
>             }));
>
>             jQuery(newForm).appendTo('body')[0].submit();
>
>     }
>
>
>
>
>
> A cleanup may be required to remove the new dom form element in case the
> export button is repeatedly used
>
>
>
> Chris
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150506/d8c7d5bf/attachment.html>


More information about the vtigercrm-developers mailing list