Skip to content

Commit

Permalink
remove jQueryUI in favor of html5sortable
Browse files Browse the repository at this point in the history
  • Loading branch information
jberger committed Oct 31, 2015
1 parent 651a833 commit 2f80b38
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
3 changes: 3 additions & 0 deletions Changes
@@ -1,5 +1,8 @@
Revision history for Perl module Galileo

0.040
- Remove jQueryUI in favor of html5sortable

0.039 2015-09-28
- Simplify home path logic
- Remove ConsoleLogger again
Expand Down
6 changes: 5 additions & 1 deletion lib/Galileo.pm
@@ -1,7 +1,7 @@
package Galileo;
use Mojo::Base 'Mojolicious';

our $VERSION = '0.039';
our $VERSION = '0.040';
$VERSION = eval $VERSION;

use File::Basename 'dirname';
Expand Down Expand Up @@ -364,6 +364,10 @@ L<jQuery|http://jquery.com/> - because everything uses jQuery
=item *
L<html5sortable|https://github.com/voidberg/html5sortable> - Lightweight jQuery plugin to create sortable lists and grids using native HTML5 drag and drop API
=item *
L<HumaneJS|http://wavded.github.com/humane-js/> - A simple, modern, browser notification system
=back
Expand Down
2 changes: 2 additions & 0 deletions lib/Galileo/files/public/assets/html.sortable.0.3.0.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

6 changes: 3 additions & 3 deletions lib/Galileo/files/templates/menu/edit.html.ep
@@ -1,6 +1,6 @@
% layout 'standard';
% content_for header => begin
%= javascript '/assets/jquery-ui-1.10.0.custom.min.js'
%= javascript '/assets/html.sortable.0.3.0.min.js'
%= javascript '/galileo-edit.js'
% end

Expand All @@ -14,7 +14,7 @@ function onSuccess(reply) {
function saveButton() {
var data = {
name : "main",
list : $("#list-active-pages").sortable('toArray')
list : $('#list-active-pages li:not(.nav-header)').map(function(){return $(this).attr('id') }).get(),
};
sendViaWS("<%= url_for('storemenu')->to_abs %>", data, onSuccess);
}
Expand All @@ -23,7 +23,7 @@ $(function() {
$( "#list-active-pages, #list-inactive-pages" ).sortable({
connectWith: ".connectedSortable",
items: "li:not(.nav-header)"
}).disableSelection();
});
});
% end

Expand Down

0 comments on commit 2f80b38

Please sign in to comment.