Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //##################################################################################################//
- //##########IN ORDNUNG:#############################################################################//
- //##################################################################################################//
- //$('input[value="hide"]').closest('.checkbox').hide();
- // set the correct checkbox on true (based on the which "Exposé" is asked for)
- $('.fancybox').on('click', function() {
- var whgData = $(this).closest('tr').data('whg');
- // reset before open
- $('input[id^="powermail_field_ichmoechteeinexposezufolgenderwohnung_"]').prop('checked', false);
- // set active
- $('#powermail_field_ichmoechteeinexposezufolgenderwohnung_' + whgData).prop('checked', true);
- });
- //##################################################################################################//
- //##################################################################################################//
- //##########BAUSTELLE:##############################################################################//
- //##################################################################################################//
- $('input[value="hide"]').closest('.checkbox').hide();
- $('input[value="hide"]').closest('.checkbox').show();
- var disabledWhg = [];
- $('.disabled').each(function() {
- disabledWhg = $(this).data('whg');
- });
- $.map(disabledWhg, function( val, i ) {
- console.log(val);
- $('#powermail_field_ichmoechteeinexposezufolgenderwohnung_' + val).closest('.checkbox').hide();
- });
- var elements = $('.disabled').filter(function() {
- return $(this).data('whg');
- });
- for (var i = 0; i < $('tbody > tr').length; i++) {
- //test
- }
- $('.disabled').each(function(i, obj) {
- //test
- });
- $.each(disabledWhg, function(key, value) {
- $('#powermail_field_ichmoechteeinexposezufolgenderwohnung_' + value.data('whg')).closest('.checkbox').hide();
- console.log(value);
- });
- var test = $('tbody > tr').length;
- for(var i = 1; i < test; i++) {
- if($('tr').hasClass('.disabled') && $('tr').hasData('whg')) {
- var xxx = $(this).data('whg');
- console.log(xxx);
- $('#powermail_field_ichmoechteeinexposezufolgenderwohnung_' + xxx).closest('.checkbox').hide();
- }
- }
- var tr = document.querySelectorAll('tr').data('whg');
- Array.prototype.forEach.call(tr, function(elements, index) {
- if($('tr[class=disabled]').hasClass('.disabled') || $('tr').hasClass('.reserved')) {
- console.log(tr);
- }
- });
- $('input[value="hide"]').closest('.checkbox').hide();
- //###################################################################################################//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement