D7net Mini Sh3LL v1
Current File : /var/www/html/hpsc/../antarctic-drupal-7.89/modules/tracker/../toolbar/../menu/../../sites/all/modules/addressfield/../photos/js/../photos_access/photos_access.js |
(function ($) {
Drupal.behaviors.photosAccess = {
attach: function(context) {
var checkval = $('#photos_access_privacy input[type=radio]:checked').val();
switch (checkval){
case '2':
$('#photos_access_viewuser, .photos_access_remove').show(500);
break;
case '3':
$('#photos_access_password').show(500);
$('#photos_access_password label').text(Drupal.t('Reset Password'));
break;
}
$('#photos_access_privacy input[type=radio]').change(function() {
var checkval = $(this).attr("checked", true).val();
switch (checkval){
case '2':
$('#photos_access_viewuser, .photos_access_remove').show(500);
$('#photos_access_password').hide(500);
break;
case '3':
$('#photos_access_password').show(500);
$('#photos_access_viewuser, .photos_access_remove').hide(500);
break;
default:
$('#photos_access_password').hide(500);
$('#photos_access_viewuser, .photos_access_remove').hide(500);
break;
}
});
}
};
})(jQuery);
AnonSec - 2021 | Recode By D7net