Plugin Directory

Changeset 1706453


Ignore:
Timestamp:
08/01/2017 04:24:28 PM (9 years ago)
Author:
trustedsite
Message:

Fix missing activation page on error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trustedsite-reviews/trunk/js/overview.js

    r1703942 r1706453  
    1818            var success = data['success'];
    1919            if(success === 0){
    20                 jQuery("#manage").hide();
    21                 jQuery("#settings").hide();
    22 
    23                 jQuery("#pitch").show();
    24                 jQuery("#activation").show();
     20                showActivation();
    2521            }else{
    2622                siteId = data['site_id'];
     
    4137                }, 500);
    4238            }
     39        }).fail(function() {
     40            showActivation();
    4341        });
     42    }
     43
     44    function showActivation() {
     45        jQuery("#manage").hide();
     46        jQuery("#settings").hide();
     47        jQuery("#pitch").show();
     48        jQuery("#activation").show();
    4449    }
    4550
Note: See TracChangeset for help on using the changeset viewer.