Revision 99ec73ba

b/snf-astakos-app/astakos/im/static/im/js/common.js
397 397
    $('.hidden-submit input[readonly!="True"]').focus(function () {
398 398
         $('.hidden-submit .form-row.submit').slideDown(500);
399 399
    });
400
    
401
    
402
    
403
   
404 400
      
405
    
406 401
    setTimeout(function() {
407
      if ($('input#id_username').val()){ 
408
      	$('input#id_username').siblings('label').css('opacity','0');
409
      };
410
      if ($('input#id_password').val()){ 
411
      	$('input#id_password').siblings('label').css('opacity','0');
412
      }
413
	}, 100);
414
	
415
	
402
        var innerInputs = $('form.innerlabels input[type="text"], form.innerlabels input[type="password"]');
403
        _.each(innerInputs, function(val, key,list){
404
          if ($(val).val()){
405
            $(val).siblings('label').css('opacity','0');
406
          };
407
        });
408
    }, 200);
409

  
416 410
	
417 411
	// landing-page initialization
418 412
    if ($('.landing-page').length > 0) {

Also available in: Unified diff