PageSourceSearch

https://www.lannoopublishers.com/sites/all/modules/custom/lea_pane…/lea_panel_multiple_middle_layout.js?tm4xxp

js lannoopublishers.com collected 2026-10-03 21:20:29 UTC 1,362 bytes, 61 lines download raw bytes

1jQuery(function()
2{
3	var  $ = jQuery;
4	var $panelsIpeCustomizePage = $('#panels-ipe-customize-page');
5	if($panelsIpeCustomizePage.length == 0)
6		return;
7
8	
9	function splitRequest(event)
10	{
11		if(event.target.checked)
12			$(event.target).parent().parent().next().addClass('splitted');
13		else
14			$(event.target).parent().parent().next().removeClass('splitted');
15	}
16	
17	function startEditingView()
18	{
19		$('body').addClass('panelEdition');
20		
21		var $middleWrapper = $('.lea_panel_multiple_wrapper-middle');
22
23		var actionHtmlContent = '<label><input class="spit_middle_wrapper_checkbox" type="checkbox" />Split</label>';
24
25		$('.split-action',$middleWrapper).html(actionHtmlContent).removeClass('empty');
26
27		var $spitMiddleWrapperCheckbox = $('.spit_middle_wrapper_checkbox');
28		$spitMiddleWrapperCheckbox.bind('change', splitRequest)
29	}
30	
31	function endEditingView()
32	{
33		$('body').removeClass('panelEdition');
34		$('.l-wrapper-middle .actions').html('').addClass('empty');
35	}
36	
37	function customiseRequestMade(event)
38	{
39		var $target = $(event.target);
40		if(!$target.hasClass('panels-ipe-form-container'))
41			return;
42		
43		var $cancelButton = $('.panels-ipe-cancel', event.target);
44		if($cancelButton.length == 0)
45			endEditingView();
46		else
47			startEditingView();
48	}
49	$('#panels-ipe-control-container').bind('DOMSubtreeModified', customiseRequestMade);
50	
51	
52	
53	
54});
55
56
57
58
59
60
61

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.