PageSourceSearch

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

js lannoopublishers.com collected 2026-10-03 21:20:02 UTC 1,837 bytes, 71 lines download raw bytes

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

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.