first commit
This commit is contained in:
commit
4d332ef662
27586 changed files with 3281783 additions and 0 deletions
107
rus/admin/_V4/_js/documentReady.js
Normal file
107
rus/admin/_V4/_js/documentReady.js
Normal file
|
|
@ -0,0 +1,107 @@
|
|||
//2.0
|
||||
//da 2.0 adattamebto a lte
|
||||
//08-04-2014 msgInterval globale
|
||||
//31-3-2014
|
||||
//18-03-2014 fetch asincrona
|
||||
//10-02-2014
|
||||
// JavaScript Document
|
||||
//********************************************************
|
||||
//********************************************************
|
||||
//SCRIPT IN ESECUZIONE ALLA FINE DEL CARICAMENTO DEL BODY
|
||||
//********************************************************
|
||||
//********************************************************
|
||||
var msgGone=false;
|
||||
var msgInterval;
|
||||
|
||||
$(document).ready(function() {
|
||||
//tabs DA VERIFICARE
|
||||
//if($(".tab_content").length>0)
|
||||
// tabsFunctions();
|
||||
//
|
||||
//carico i messaggi
|
||||
|
||||
//cancello msg dopo il timeout
|
||||
//QUASI SICURAMENTE NO
|
||||
//if($('#messaggi').length>0)
|
||||
// msgInterval=setTimeout( "$('#messaggi').fadeOut(200);msgGone=true",10000 );
|
||||
|
||||
|
||||
//titolo
|
||||
//alert('xxx1:'+window.parent.document.title+" cc:"+document.title);
|
||||
//window.parent.document.title=document.title;
|
||||
//$( window.parent.document ).prop('title',document.title);
|
||||
|
||||
|
||||
});
|
||||
|
||||
//********************************************************
|
||||
//********************************************************
|
||||
// TAB FUNCTIONS DA VERIFICARE!!!!!
|
||||
//********************************************************
|
||||
//********************************************************
|
||||
//***
|
||||
function tabsFunctions()
|
||||
{
|
||||
//Default Action
|
||||
$(".tab_content").hide(); //Hide all content
|
||||
if($('#currentTab').length===0 || $('#currentTab').val()==="")
|
||||
{
|
||||
$("ul.tabs li:first").addClass("active").show(); //Activate first tab
|
||||
$(".tab_content:first").show(); //Show first tab content
|
||||
}
|
||||
else
|
||||
{
|
||||
//alert($('#currentTab').val());
|
||||
//le etichette hanno un id=nomedivLI
|
||||
$($('#currentTab').val()).fadeIn()
|
||||
var activeLis=$("#currentTab").val()+"LI";
|
||||
$(activeLis).addClass("active");
|
||||
}
|
||||
|
||||
//On Click Event
|
||||
$("ul.tabs li").click(function() {
|
||||
$("ul.tabs li").removeClass("active"); //Remove any "active" class
|
||||
$(this).addClass("active"); //Add "active" class to selected tab
|
||||
$(".tab_content").hide(); //Hide all tab content
|
||||
var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
|
||||
$(activeTab).fadeIn(); //Fade in the active content
|
||||
//registrazione di current tab
|
||||
if($('#currentTab').length>0 )
|
||||
{
|
||||
$('#currentTab').val(activeTab);
|
||||
}
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
//metodo un po' peso
|
||||
$.event.special.inputchange = {
|
||||
setup: function() {
|
||||
var self = this, val;
|
||||
$.data(this, 'timer', window.setInterval(function() {
|
||||
val = self.value;
|
||||
if ( $.data( self, 'cache') != val ) {
|
||||
$.data( self, 'cache', val );
|
||||
$( self ).trigger( 'inputchange' );
|
||||
}
|
||||
}, 20));
|
||||
},
|
||||
teardown: function() {
|
||||
window.clearInterval( $.data(this, 'timer') );
|
||||
},
|
||||
add: function() {
|
||||
$.data(this, 'cache', this.value);
|
||||
}
|
||||
};
|
||||
$(":input:visible").on('inputchange',function() { lert(this.value);console.log(this.value) });
|
||||
//$("textarea").on('inputchange',function() { alert(this.value);console.log(this.value) });
|
||||
//$("select").on('inputchange',function() { alert(this.value);console.log(this.value) });
|
||||
$(":checkbox").on('inputchange',function() { alert(this.value);console.log(this.value) });
|
||||
$(":radio").on('inputchange',function() { alert(this.value);console.log(this.value) });
|
||||
$(":password").on('inputchange',function() { alert(this.value);console.log(this.value) });
|
||||
|
||||
*/
|
||||
//$(".inputElement").on("input", null, null, callbackFunction);
|
||||
Loading…
Add table
Add a link
Reference in a new issue