Last active
April 20, 2024 01:39
-
-
Save carlosleonam/5b0a447b8334aeab76b5aeade8f03de5 to your computer and use it in GitHub Desktop.
Snippet to refresh some Dashborad with Adianti Framework ( by Claonilton Junior )
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$script = new TElement('script'); | |
$script->type = 'text/javascript'; | |
$script->add(" | |
$(document).ready(function(){ | |
window.setTimeout(function(){ | |
var results = new RegExp('[\\?&]class=([^&#]*)').exec(window.location.href); | |
if('".__CLASS__."' == results[1] ) | |
__adianti_load_page('index.php?class=DashboardEmpresa&method=onReload'); | |
}, 5000); | |
}); | |
"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment