Plugin Directory

Changeset 3100932


Ignore:
Timestamp:
06/11/2024 06:52:01 AM (21 months ago)
Author:
outgrow
Message:

adding ecom type and invalid alert

Location:
outgrow/trunk/dashboard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • outgrow/trunk/dashboard/js/main-script.js

    r3062077 r3100932  
    483483}
    484484$(document).on('click', '#toggle-checkbox', function() {
    485   console.log("ha toogle hua h");
    486485  $('#toggle-checkbox1').prop('checked', false);
    487486  var isToggleOn = $('#toggle-checkbox').prop('checked');
     
    499498$(document).on('click', '#toggle-checkbox1', function() {
    500499  $('#toggle-checkbox').prop('checked', false);
    501   console.log("ha toogle hua h");
    502500  var isToggleOn = $('#toggle-checkbox1').prop('checked');
    503501 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  
    3737
    3838       // 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{
    4343       $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{
    4448       $meta = $res->data;
    4549       // Count the number of elements in $meta
     
    8791       } else {
    8892           // 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) {
    9199           // Handle cURL timeout exception
    92100           echo "Warning: Invalid API - cURL request timed out.";
Note: See TracChangeset for help on using the changeset viewer.