function gdlrUpdateInputBox(){
		$('#page-builder-content-item').find('.content-section-wrapper').each(function(){
			var page_builder = [];
		
			$(this).find('.page-builder-item-area').children().each(function(){
				if( $(this).hasClass('gdlr-draggable-item') ){
					page_builder.push($(this).gdlrSaveItem());
				}else if( $(this).hasClass('gdlr-draggable-wrapper') ){
					page_builder.push($(this).gdlrSaveItemWrapper());
				}
			});

			// input area
			$(this).children('.gdlr-input-hidden').val(JSON.stringify(page_builder));
			
			// make item fit to rows
			$(this).children('.gdlr-sortable-wrapper').children('.gdlr-sortable').gdlrFitRows();
		});
	}
// update each input when there're any changes
update each input when there're any changes
update each input when there ' re any changes
function gdlrUpdateInputBox(){
		$('#page-builder-content-item').find('.content-section-wrapper').each(function(){
			var page_builder = [];
			$(this).find('.page-builder-item-area').children().each(function(){
				if( $(this).hasClass('gdlr-draggable-item') ){
					page_builder.push($(this).gdlrSaveItem());
				}else if( $(this).hasClass('gdlr-draggable-wrapper') ){
					page_builder.push($(this).gdlrSaveItemWrapper());
				}
			});
			$(this).children('.gdlr-input-hidden').val(JSON.stringify(page_builder));
			$(this).children('.gdlr-sortable-wrapper').children('.gdlr-sortable').gdlrFitRows();
		});
	}
function gdlrUpdateInputBox ( ) { $ ( '#page-builder-content-item' ) . find ( '.content-section-wrapper' ) . each ( function ( ) { var page_builder = [ ] ; $ ( this ) . find ( '.page-builder-item-area' ) . children ( ) . each ( function ( ) { if ( $ ( this ) . hasClass ( 'gdlr-draggable-item' ) ) { page_builder . push ( $ ( this ) . gdlrSaveItem ( ) ) ; } else if ( $ ( this ) . hasClass ( 'gdlr-draggable-wrapper' ) ) { page_builder . push ( $ ( this ) . gdlrSaveItemWrapper ( ) ) ; } } ) ; $ ( this ) . children ( '.gdlr-input-hidden' ) . val ( JSON . stringify ( page_builder ) ) ; $ ( this ) . children ( '.gdlr-sortable-wrapper' ) . children ( '.gdlr-sortable' ) . gdlrFitRows ( ) ; } ) ; }
update each input when there're any changes
update each input when there ' re any changes
// input area // make item fit to rows