Changeset 1695986
- Timestamp:
- 07/13/2017 09:30:06 PM (9 years ago)
- File:
-
- 1 edited
-
trustedsite-reviews/trunk/js/overview.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trustedsite-reviews/trunk/js/overview.js
r1695978 r1695986 11 11 12 12 function refresh(){ 13 var apiUrl = endpointUrl + '/rpc/ajax?do=lookup-site-status&jsoncallback=?&rand='+new Date().getTime()+'&host='+ encodeURIComponent(host);13 var apiUrl = "https://cdn.trustedsite.com/rpc/ajax?do=lookup-site&host=" + encodeURIComponent(host); 14 14 var woocommerce = parseInt($("#ts-data").attr("data-woocommerce")); 15 15 jQuery.getJSON(apiUrl,function(data) { 16 16 console.log(data); 17 var s tatus = data['status'];18 if(s tatus === 'none'){17 var success = data['success']; 18 if(success === 0){ 19 19 jQuery("#manage").hide(); 20 20 jQuery("#settings").hide();
Note: See TracChangeset
for help on using the changeset viewer.