mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
add a function to read tail
This commit is contained in:
parent
780722aa03
commit
49e7d45af5
6 changed files with 133 additions and 74 deletions
|
@ -34,6 +34,7 @@ function clean_name(str) {
|
|||
str = str.stripAccents().toLowerCase();
|
||||
return str.replace(/\W+/g, "-");
|
||||
}
|
||||
var pleaseWaitIsINUse = false;
|
||||
$(document).ready(function () {
|
||||
modal = modal || (function () {
|
||||
var pleaseWaitDiv = $("#pleaseWaitDialog");
|
||||
|
@ -43,10 +44,15 @@ $(document).ready(function () {
|
|||
|
||||
return {
|
||||
showPleaseWait: function () {
|
||||
if(pleaseWaitIsINUse){
|
||||
return false;
|
||||
}
|
||||
pleaseWaitIsINUse = true;
|
||||
pleaseWaitDiv.modal();
|
||||
},
|
||||
hidePleaseWait: function () {
|
||||
pleaseWaitDiv.modal('hide');
|
||||
pleaseWaitIsINUse = false;
|
||||
},
|
||||
setProgress: function (valeur) {
|
||||
pleaseWaitDiv.find('.progress-bar').css('width', valeur + '%').attr('aria-valuenow', valeur);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue