Sha256: e3cf6716015167979edf6705f8a9da1852e4fa4c4f352ac25cdd2cf3e7c022ed
Contents?: true
Size: 723 Bytes
Versions: 62
Compression:
Stored size: 723 Bytes
Contents
/** * @namespace WORKAREA.featuredProductsSort */ WORKAREA.registerModule('featuredProductsSort', (function () { 'use strict'; var initSorting = function (i, container) { $(container).sortable({ update: function (event, ui) { var $form = $(ui.item).closest('form'); $.post($form.attr('action'), $form.serialize()); } }); }, /** * @method * @name init * @memberof WORKAREA.featuredProductsSort */ init = function ($scope) { $('[data-featured-products-sort]', $scope).each(initSorting); }; return { init: init }; }()));
Version data entries
62 entries across 62 versions & 1 rubygems