Prevent user from rapidly switching sections which can potentially result in the wrong section being displayed

pull/2/head
Squidly271 2017-10-07 10:05:01 -04:00
parent 94f259aace
commit 17d20328a1
4 changed files with 14 additions and 2 deletions

Binary file not shown.

View File

@ -2,8 +2,8 @@
<!DOCTYPE PLUGIN [
<!ENTITY name "community.applications">
<!ENTITY author "Andrew Zawadzki">
<!ENTITY version "2017.10.04">
<!ENTITY md5 "3cffaf87ba44fce45ef4eec5a9ad4e4e">
<!ENTITY version "2017.10.07">
<!ENTITY md5 "e482439d9d26b2bbe87434efd3c5be4b">
<!ENTITY launch "Settings/PluginSettings">
<!ENTITY plugdir "/usr/local/emhttp/plugins/&name;">
<!ENTITY github "Squidly271/community.applications">
@ -13,6 +13,9 @@
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;">
<CHANGES>
###2017.10.07
- Prevent user changing sections before display is rendered
###2017.10.04
- Enhanced: Vastly better searching when using multiple search terms

View File

@ -545,6 +545,7 @@ function myAlert(description,textdescription,textimage,imagesize, outsideClick,
if ( !showCancel ) showCancel = false;
if ( !showConfirm ) showConfirm = false;
if ( imagesize == "" ) { imagesize = "80x80"; }
disableTooltipster();
swal({
title: description,
text: textdescription,
@ -560,6 +561,7 @@ function myAlert(description,textdescription,textimage,imagesize, outsideClick,
function myCloseAlert() {
swal.close();
enableTooltipster();
}
function readMore() {
@ -636,6 +638,13 @@ function dismissWarning() {
$.post(URL,{action:'dismiss_warning'});
}
function disableTooltipster() {
$('.tooltipstered').tooltipster('disable');
}
function enableTooltipster() {
$('.tooltipstered').tooltipster('enable');
}
function forceUpdate() {
$("#updateButton").prop("disabled",true);
$("#Category").html("");