Implemented v3.10.6 Missing drag-select feature

Status
Not open for further replies.

Rodolfo

Chevereto Developer
Chevereto Staff
It has been reported that drag-select is gone in v3.10.6, to get it back open app/lib/chevereto.js

Replace this:
JavaScript:
    // $("html.device-nonmobile " + sel).selectable({ //
    //     filter: PF.obj.listing.selectors.list_item,
    //     cancel: ".content-empty, .header, #tab-share, #tab-full-info, .viewer-title, .header-link, .top-bar, .content-listing-pagination *, #fullscreen-modal, #top-user, #background-cover, .list-item-desc, .list-item-image-tools, [data-action=load-image], #tab-codes",
    //     selecting: function(event, ui) {
    //         var $this = $(ui.selecting);
    //         var unselect = $this.hasClass("selected");
    //         CHV.fn.list_editor[(unselect ? "unselect" : "select") + "Item"]($this);
    //     },
    //     unselecting: function(event, ui) {
    //         CHV.fn.list_editor.unselectItem($(ui.unselecting));
    //     }
    // });
With this:
JavaScript:
    $("html.device-nonmobile " + sel).selectable({
        delay: 150,
        filter: PF.obj.listing.selectors.list_item,
        cancel: ".content-empty, .header, #tab-share, #tab-full-info, .viewer-title, .header-link, .top-bar, .content-listing-pagination *, #fullscreen-modal, #top-user, #background-cover, .list-item-desc, .list-item-image-tools, [data-action=load-image], #tab-codes",
        selecting: function(event, ui) {
            var $this = $(ui.selecting);
            var unselect = $this.hasClass("selected");
            CHV.fn.list_editor[(unselect ? "unselect" : "select") + "Item"]($this);
        },
        unselecting: function(event, ui) {
            CHV.fn.list_editor.unselectItem($(ui.unselecting));
        }
    });
Change this:
JavaScript:
            var $item = $(this).closest(PF.obj.listing.selectors.list_item);
To this:
JavaScript:
            e.preventDefault();
            var $item = $(this).closest(PF.obj.listing.selectors.list_item);
Load your website, refresh caches.
 
Status
Not open for further replies.
Top