stephane ревизій цього gist 3 months ago. До ревизії
1 file changed, 2 insertions
zeendoc.js
| @@ -1,6 +1,8 @@ | |||
| 1 | 1 | ||
| 2 | 2 | $(document).ready(function () { | |
| 3 | 3 | ||
| 4 | + | // Ta condition ici | |
| 5 | + | ||
| 4 | 6 | $("#div_actions").append("<a id='Lu' style='color:grey;cursor: not-allowed;opacity: 0.5;text-decoration: none;' href=\"/\" onclick=\"return false;\" target=\"POP_Saisie_Lu\"><div class=\"Bouton_Action_Viewer\" id=\"Bouton_Valider\" style=\"width: 200px;\"><div class=\"Logo_Bouton_Action_Viewer\"><div class=\"icon-checkmark icone-bouton\" style=\"font-size:45px;display:inline-block;\"></div></div><div class=\"Label_Bouton_Action_Viewer\">J'ai pris connaissance</div></div></a>"); | |
| 5 | 7 | ||
| 6 | 8 | ||
stephane ревизій цього gist 3 months ago. До ревизії
1 file changed, 7 insertions, 9 deletions
zeendoc.js
| @@ -5,15 +5,13 @@ $(document).ready(function () { | |||
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | 7 | jQuery( | |
| 8 | - | function($){$('#ZDV_Pages').bind('scroll', function(){ | |
| 9 | - | if(($(this).scrollTop() + $(this).innerHeight())+1>=$(this)[0].scrollHeight){ | |
| 10 | - | $('#ZDV_Pages').unbind('scroll'); | |
| 11 | - | $('#Lu').css('color','green'); | |
| 12 | - | $('#Lu').css('cursor','pointer'); | |
| 13 | - | $('#Lu').attr('href', "javascript:console.log('');"); | |
| 14 | - | $("#Lu").attr("onclick","popup('"+ Url_Site +"/../_ClientSpecific/coll_80_Form_Lu_Doc.php?Coll_Id="+ Coll_Id +"&Res_Id="+Res_Id+"', 'POP_Saisie_Lu')"); | |
| 15 | - | } | |
| 16 | - | })} | |
| 8 | + | function($){ | |
| 9 | + | $('#ZDV_Pages').unbind('scroll'); | |
| 10 | + | $('#Lu').css('color','green'); | |
| 11 | + | $('#Lu').css('cursor','pointer'); | |
| 12 | + | $('#Lu').attr('href', "javascript:console.log('');"); | |
| 13 | + | $("#Lu").attr("onclick","popup('"+ Url_Site +"/../_ClientSpecific/coll_80_Form_Lu_Doc.php?Coll_Id="+ Coll_Id +"&Res_Id="+Res_Id+"', 'POP_Saisie_Lu')"); | |
| 14 | + | } | |
| 17 | 15 | ); | |
| 18 | 16 | }); | |
| 19 | 17 | ||
stephane ревизій цього gist 3 months ago. До ревизії
1 file changed, 19 insertions
zeendoc.js(файл створено)
| @@ -0,0 +1,19 @@ | |||
| 1 | + | ||
| 2 | + | $(document).ready(function () { | |
| 3 | + | ||
| 4 | + | $("#div_actions").append("<a id='Lu' style='color:grey;cursor: not-allowed;opacity: 0.5;text-decoration: none;' href=\"/\" onclick=\"return false;\" target=\"POP_Saisie_Lu\"><div class=\"Bouton_Action_Viewer\" id=\"Bouton_Valider\" style=\"width: 200px;\"><div class=\"Logo_Bouton_Action_Viewer\"><div class=\"icon-checkmark icone-bouton\" style=\"font-size:45px;display:inline-block;\"></div></div><div class=\"Label_Bouton_Action_Viewer\">J'ai pris connaissance</div></div></a>"); | |
| 5 | + | ||
| 6 | + | ||
| 7 | + | jQuery( | |
| 8 | + | function($){$('#ZDV_Pages').bind('scroll', function(){ | |
| 9 | + | if(($(this).scrollTop() + $(this).innerHeight())+1>=$(this)[0].scrollHeight){ | |
| 10 | + | $('#ZDV_Pages').unbind('scroll'); | |
| 11 | + | $('#Lu').css('color','green'); | |
| 12 | + | $('#Lu').css('cursor','pointer'); | |
| 13 | + | $('#Lu').attr('href', "javascript:console.log('');"); | |
| 14 | + | $("#Lu").attr("onclick","popup('"+ Url_Site +"/../_ClientSpecific/coll_80_Form_Lu_Doc.php?Coll_Id="+ Coll_Id +"&Res_Id="+Res_Id+"', 'POP_Saisie_Lu')"); | |
| 15 | + | } | |
| 16 | + | })} | |
| 17 | + | ); | |
| 18 | + | }); | |
| 19 | + | ||