Sha256: 7b4ae62fddd44e356d4f985ed1fd07c66c21bd15e1f4f22b9b7da577e23fd3bc
Contents?: true
Size: 787 Bytes
Versions: 4
Compression:
Stored size: 787 Bytes
Contents
$(function(){ // set sortable options var sortable = new Sortable($('.images-container').get(0), { animation: 150, handle: ".control-btn.move", draggable: ".image-container", onMove: function (evt) { var $relatedElem = $(evt.related); if ($relatedElem.hasClass('add-image')) { return false; } } }); $controlsButtons = $('.controls'); $controlsButtonsStar = $controlsButtons.find('.star'); $controlsButtonsRemove = $controlsButtons.find('.remove'); $controlsButtonsStar.on('click',function(e){ e.preventDefault(); $controlsButtonsStar.removeClass('active'); $controlsButtonsStar.parents('.image-container').removeClass('main'); $(this).addClass('active'); $(this).parents('.image-container').addClass('main'); }) })
Version data entries
4 entries across 4 versions & 1 rubygems