MediaWiki:Common.js: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
/*--------------------state or provinces show and hide----------------------------*/
/*--------------------state or provinces show and hide----------------------------*/
$(document).ready(function(){
$(document).ready(function(){
/*------------------------------Peru states----------------------------*/
$("#countryofPeru").click(function(){$("#PeruStates").show();});
$("#countryofPeru2").click(function(){$("#PeruStates").show();$("#allLocations").show();});
/*------------------------------Argentina states----------------------------*/
/*------------------------------Argentina states----------------------------*/
$("#countryofArgentina").click(function(){$("#argentinaStates").show();});
$("#countryofArgentina").click(function(){$("#argentinaStates").show();});
Line 112: Line 109:
$("#countryofParaguay").click(function(){$("#paraguayStates").show();});
$("#countryofParaguay").click(function(){$("#paraguayStates").show();});
$("#countryofParaguay2").click(function(){$("#paraguayStates").show();$("#allLocations").show();});
$("#countryofParaguay2").click(function(){$("#paraguayStates").show();$("#allLocations").show();});
 
/*------------------------------Peru states----------------------------*/
 
$("#countryofPeru").click(function(){$("#PeruStates").show();});
$("#countryofPeru2").click(function(){$("#PeruStates").show();$("#allLocations").show();});
/*-----------------------------philippines states----------------------------------------*/
/*-----------------------------philippines states----------------------------------------*/
$("#countryofPhilippines").click(function(){$("#philippinesStates").show();});
$("#countryofPhilippines").click(function(){$("#philippinesStates").show();});
Line 617: Line 615:
});  
});  
$(".exitIcon2").click(function(){
$(".exitIcon2").click(function(){
$("#allLocations").show ();
$("#argentinaStates").hide();
$("#argentinaStates").hide();
$("#australiaStates").hide();
$("#australiaStates").hide();