Changeset 3100932
- Timestamp:
- 06/11/2024 06:52:01 AM (21 months ago)
- Location:
- outgrow/trunk/dashboard
- Files:
-
- 2 edited
-
js/main-script.js (modified) (2 diffs)
-
main-page.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
outgrow/trunk/dashboard/js/main-script.js
r3062077 r3100932 483 483 } 484 484 $(document).on('click', '#toggle-checkbox', function() { 485 console.log("ha toogle hua h");486 485 $('#toggle-checkbox1').prop('checked', false); 487 486 var isToggleOn = $('#toggle-checkbox').prop('checked'); … … 499 498 $(document).on('click', '#toggle-checkbox1', function() { 500 499 $('#toggle-checkbox').prop('checked', false); 501 console.log("ha toogle hua h");502 500 var isToggleOn = $('#toggle-checkbox1').prop('checked'); 503 501 isToggleOn ? document.getElementById('shortcode_text').innerText = '[outgrow type="mobile_full_screen_override" id="' + id_used + '" data_title="' + title.replace(/'/g, ' ') + '" data_url="' + url + '" short_url="' + short_url_used + '"][/outgrow]' -
outgrow/trunk/dashboard/main-page.php
r3100924 r3100932 37 37 38 38 // Process the API response as needed 39 if (isset($request)) {40 echo "<script>alert('You do not have required permissions. Please contact Outgrow Support.'); window.location.reload();</script>";41 }42 else{39 // if (isset($request)) { 40 // echo "<script>alert('You do not have required permissions. Please contact Outgrow Support.'); window.location.reload();</script>"; 41 // } 42 // else{ 43 43 $res = json_decode($request->body); 44 // if (isset($request)) { 45 // echo "<script>alert('You do not have required permissions. Please contact Outgrow Support.'); window.location.reload();</script>"; 46 // } 47 // else{ 44 48 $meta = $res->data; 45 49 // Count the number of elements in $meta … … 87 91 } else { 88 92 // api_Warning("No API Found - Please add your API to view Calculators."); 89 api_Warning("You do not have required permissions. Please contact Outgrow Support."); 90 }}} catch (Requests_Exception $e) { 93 echo "<script>alert('You do not have required permissions. Please contact Outgrow Support.'); window.location.reload();</script>"; 94 // api_Warning("You do not have required permissions. Please contact Outgrow Support."); 95 } 96 } 97 // } 98 catch (Requests_Exception $e) { 91 99 // Handle cURL timeout exception 92 100 echo "Warning: Invalid API - cURL request timed out.";
Note: See TracChangeset
for help on using the changeset viewer.