| @@ -19,12 +19,17 @@ | ||
| 19 | 19 | alert("Import option available in pro version only.") |
| 20 | 20 | }); |
| 21 | 21 | |
| 22 | 22 | jQuery('body').on('click', '#export-image-map-hotspot-data', function(){ |
| 23 | - if (!confirm("Do you want to export service box full plugin?")){ | |
| 23 | + var url = jQuery('#export-image-map-hotspot-plugin').attr('href'); | |
| 24 | + if(url == '#'){ | |
| 25 | + alert('No data available for export. Please create and configure the shortcode first before attempting to export the data.'); | |
| 26 | + return; | |
| 27 | + } | |
| 28 | + else if (!confirm("Do you want to export the Image hotspot - Map image annotation full plugin data?")){ | |
| 24 | 29 | return false; |
| 25 | 30 | } else{ |
| 26 | - window.open(jQuery('#export-image-map-hotspot-plugin').attr('href'), '_blank'); | |
| 31 | + window.open(url, '_blank'); | |
| 27 | 32 | } |
| 28 | 33 | }); |
| 29 | 34 | |
| 30 | 35 | jQuery("body").on("click", "#upload-csv-file", function(e) { |