X7ROOT File Manager
Current Path:
/home/katmhsmi/public_html/wp-content/plugins/xagio/assets/js
home
/
katmhsmi
/
public_html
/
wp-content
/
plugins
/
xagio
/
assets
/
js
/
📁
..
📄
.htaccess
(420 B)
📄
ajaxq.js
(4.62 KB)
📄
footer_links.js
(360 B)
📄
main.js
(10.79 KB)
📄
page_affiliate.js
(32.37 KB)
📄
page_clone_backup.js
(23.92 KB)
📄
page_log.js
(27.66 KB)
📄
page_projects.js
(176.23 KB)
📄
page_rescue.js
(32.4 KB)
📄
page_reviews.js
(60.04 KB)
📄
page_schema.js
(9.31 KB)
📄
page_seo.js
(17.88 KB)
📄
page_settings.js
(17.02 KB)
📄
page_silo.js
(71.33 KB)
📄
review-widget.js
(15.52 KB)
📄
schemas.json
(1.01 MB)
📁
tinymce_buttons
📄
troubleshooter.js
(59 B)
📁
uikit
📁
vendor
📄
xag_admin.js
(99.2 KB)
📄
xag_exif.js
(4.2 KB)
📄
xag_exif_popup.js
(4.31 KB)
📄
xag_notification.js
(640 B)
📄
xag_user.js
(548 B)
Editing: xag_exif.js
(function( $ ) { 'use strict'; /** * Global doc.ready function */ $(document).ready(function(){ actions.searchGoogleMap(); actions.convertToJpeg(); actions.saveEXIF(); }); var actions = { saveEXIF: function () { $(document).on('click', '.ps_exif_save_button', function () { var btn = $(this); btn.parents('.compat-attachment-fields').find('textarea').change(); btn.text('Saving...'); btn.attr('disabled', true); setInterval(function () { btn.text('Save'); btn.attr('disabled', false); },2000); }); }, convertToJpeg: function(){ $(document).on('click', '.ps_convert_jpg', function(){ $(this).attr('disabled', 'disabled'); var remove = 'false'; var id = $(this).data('id'); if (confirm('Do you want to remove the old image after the conversion to JPEG is completed?')) { remove = 'true'; } $.post(xag_data.wp_post, 'action=xag_convert_image&id=' + id + '&remove=' + remove).done(function(d){ $(this).removeAttr('disabled'); alert(d.message); if (d.status == 'success') { document.location.reload(); } }); }); }, searchGoogleMap: function(){ $(document).on('click', '.ps_search_maps', function(){ var searchQuery = $('.ps_search_input').val(); var attachmentID = document.location.search.replace("?item=", ""); var latitude = $('#attachments-'+attachmentID+'-xag_exif_latitude'); var longitude = $('#attachments-'+attachmentID+'-xag_exif_longitude'); var searchSetting = {"address": searchQuery}; if (searchQuery == '') { alert('Please type in a query in "Search by Address" before searching.'); return false; } var geocoder = new google.maps.Geocoder(); var mapsOptions = { zoom: 8, mapTypeControl: true, mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU}, navigationControl: true, mapTypeId: google.maps.MapTypeId.ROADMAP }; var renderedMap = new google.maps.Map(document.getElementById("ps_map_canvas"), mapsOptions); geocoder.geocode( searchSetting , function(results, status) { if (status != google.maps.GeocoderStatus.ZERO_RESULTS) { renderedMap.setCenter(results[0].geometry.location); var marker = new google.maps.Marker({ position: results[0].geometry.location, map: renderedMap, title:'Your Location' }); latitude.val(results[0].geometry.location.lat()); longitude.val(results[0].geometry.location.lng()); google.maps.event.addListener(renderedMap, "click", function(event) { if (marker) { marker.setMap(null); marker = null; } var myLatLng = event.latLng ; marker = new google.maps.Marker({ position: myLatLng, map: renderedMap, title:"Property Location" }); // populate the form fields with lat & lng latitude.val(event.latLng.lat()); longitude.val(event.latLng.lng()); latitude.change(); }); } }); }); } }; })( jQuery );
Upload File
Create Folder