removed js from the view. added grabbing hand while moving aspects

This commit is contained in:
danielgrippi 2011-07-28 15:33:52 -07:00
parent 71ae8e5fcd
commit ee95def580
4 changed files with 27 additions and 13 deletions

View file

@ -36,16 +36,3 @@
= only_sharing_count
= t('contacts.index.only_sharing_with_me')
:javascript
$(document).ready(function() {
jQuery('#aspect_nav.left_nav .all_aspects .sub_nav').sortable({
items: 'li[id]',
update: function(event, ui) {
var order = jQuery(this).sortable('toArray');
var obj = { 'reorder_aspects': order, 'authenticity_token': '#{form_authenticity_token}', '_method': 'put' };
jQuery.ajax('/user', { type: 'post', dataType: 'script', data: obj });
},
helper: 'clone'
});
});

View file

@ -44,6 +44,7 @@ javascripts:
- public/javascripts/search.js
- public/javascripts/contact-edit.js
- public/javascripts/contact-list.js
- public/javascripts/aspect-sorting.js
login:
- public/javascripts/login.js
mobile:

View file

@ -0,0 +1,18 @@
/* Copyright (c) 2010, Diaspora Inc. This file is
* licensed under the Affero General Public License version 3 or later. See
* the COPYRIGHT file.
*/
$(document).ready(function() {
$('#aspect_nav.left_nav .all_aspects .sub_nav').sortable({
items: 'li[id]',
update: function(event, ui) {
var order = $(this).sortable('toArray'),
obj = { 'reorder_aspects': order, '_method': 'put' };
$.ajax('/user', { type: 'post', dataType: 'script', data: obj });
},
revert: true,
helper: 'clone'
});
});

View file

@ -2868,6 +2868,14 @@ ul.left_nav
:position relative
:width 100%
a.aspect_selector,
a.home_selector,
a.tag_selector
&:active
:cursor -webkit-grabbing
:cursor -moz-grabbing
:cursor grabbing
a.aspect_selector,
a.home_selector,
a.tag_selector,