"
diff --git a/var/mongoose/cgi-bin/browse/join.jim b/var/mongoose/cgi-bin/browse/join.jim
index f335160..74705de 100755
--- a/var/mongoose/cgi-bin/browse/join.jim
+++ b/var/mongoose/cgi-bin/browse/join.jim
@@ -21,6 +21,7 @@ span.pl { padding-left: 2em; }
+
Drag the files below into order, enter a name for the resulting file and then
diff --git a/var/mongoose/html/img/sort_date.gif b/var/mongoose/html/img/sort_date.gif
new file mode 100644
index 0000000..7600325
Binary files /dev/null and b/var/mongoose/html/img/sort_date.gif differ
diff --git a/var/mongoose/html/img/sort_name.gif b/var/mongoose/html/img/sort_name.gif
new file mode 100644
index 0000000..128b347
Binary files /dev/null and b/var/mongoose/html/img/sort_name.gif differ
diff --git a/var/mongoose/html/js/touchbridge.js b/var/mongoose/html/js/touchbridge.js
new file mode 100644
index 0000000..027d1ad
--- /dev/null
+++ b/var/mongoose/html/js/touchbridge.js
@@ -0,0 +1,70 @@
+/*
+ * Content-Type:text/javascript
+ *
+ * A bridge between iPad and iPhone touch events and jquery draggable,
+ * sortable etc. mouse interactions.
+ * @author Oleg Slobodskoi
+ *
+ * modified by John Hardy to use with any touch device
+ * fixed breakage caused by jquery.ui so that mouseHandled internal flag is reset
+ * before each touchStart event
+ *
+ */
+(function( $ ) {
+
+ $.support.touch = typeof Touch === 'object';
+
+ if (!$.support.touch) {
+ return;
+ }
+
+ var proto = $.ui.mouse.prototype,
+ _mouseInit = proto._mouseInit;
+
+ $.extend( proto, {
+ _mouseInit: function() {
+ this.element
+ .bind( "touchstart." + this.widgetName, $.proxy( this, "_touchStart" ) );
+ _mouseInit.apply( this, arguments );
+ },
+
+ _touchStart: function( event ) {
+ if ( event.originalEvent.targetTouches.length != 1 ) {
+ return false;
+ }
+
+ this.element
+ .bind( "touchmove." + this.widgetName, $.proxy( this, "_touchMove" ) )
+ .bind( "touchend." + this.widgetName, $.proxy( this, "_touchEnd" ) );
+
+ this._modifyEvent( event );
+
+ $( document ).trigger($.Event("mouseup")); //reset mouseHandled flag in ui.mouse
+ this._mouseDown( event );
+
+ return false;
+ },
+
+ _touchMove: function( event ) {
+ this._modifyEvent( event );
+ this._mouseMove( event );
+ },
+
+ _touchEnd: function( event ) {
+ this.element
+ .unbind( "touchmove." + this.widgetName )
+ .unbind( "touchend." + this.widgetName );
+ this._mouseUp( event );
+ },
+
+ _modifyEvent: function( event ) {
+ event.which = 1;
+ var target = event.originalEvent.targetTouches[0];
+ event.pageX = target.clientX;
+ event.pageY = target.clientY;
+ }
+
+ });
+
+})( jQuery );
+
diff --git a/var/mongoose/lib/settings.class b/var/mongoose/lib/settings.class
index bf3b194..232a631 100644
--- a/var/mongoose/lib/settings.class
+++ b/var/mongoose/lib/settings.class
@@ -116,6 +116,10 @@ settings method pkgdev {{val -1}} {
return [$self _nval_setting pkgdev $val]
}
+settings method sortorder {{val -1}} {
+ return [$self _nval_setting sortorder $val]
+}
+
settings method channel_groups {} {
set ret ""
set db [sqlite3.open /var/lib/humaxtv/setup.db]