Sha256: 62b20b2df9474c10eb75271a1adc6566d23f316cecbd510a3545d4ca69242a1c

Contents?: true

Size: 400 Bytes

Versions: 15

Compression:

Stored size: 400 Bytes

Contents

<script>
	function getData() {
		var data = [];
		$('.iterate').each(function(i){
			data.push($(this).target.id)
			return data
		})
	}

	$( document ).ready(function() {
		$('.sortable').sortable();
		$('.sortable').sortable().bind('sortupdate', function() {
			$.ajax({
				type: 'POST',
				url: '/admin/pages',
				data: getData(),
				success: console.log('success')
			})
		});
	});

</script>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
pages_cms-2.4.2 app/views/pages_cms/admin/pages/index_js.html.erb
pages_cms-2.3.2 app/views/pages_cms/admin/pages/index_js.html.erb
pages_cms-2.3.1 app/views/pages_cms/admin/pages/index_js.html.erb
pages_cms-2.3.0 app/views/pages_cms/admin/pages/index_js.html.erb
pages_cms-2.2.3 app/views/pages_cms/admin/pages/index_js.html.erb
pages_cms-2.2.2 app/views/pages_cms/admin/pages/index_js.html.erb
pages_cms-2.2.1 app/views/pages_cms/admin/pages/index_js.html.erb
pages_cms-2.1.1 app/views/pages_cms/admin/pages/index_js.html.erb
pages_cms-2.1.0 app/views/pages_cms/admin/pages/index_js.html.erb
pages_cms-2.0.1 app/views/pages_cms/admin/pages/index_js.html.erb
pages_cms-2.0.0 app/views/pages_cms/admin/pages/index_js.html.erb
pages_cms-1.2.3 app/views/pages_cms/admin/pages/index_js.html.erb
pages_cms-1.2.2 app/views/pages_cms/admin/pages/index_js.html.erb
pages_cms-1.2.1 app/views/pages_cms/admin/pages/index_js.html.erb
pages_cms-1.2.0 app/views/pages_cms/admin/pages/index_js.html.erb