Search

And keep the existing drag-drop and selectable etc working?

I installed joaobarbosa's JavaScriptr extension and added some basic, perhaps quite crude jQuery (see below).

Would I have to add/edit the AJAX? Is it too complex to get working? Thanks anyway!

jQuery(document).ready(function(){

    jQuery("tr:has(td)").append('<td><a href="#" class="up">up</a> <a href="#" class="down">down</a></td>');

jQuery(function(event){
    jQuery(".up,.down").click(function(){
        var row = $(this).parents("tr");
        if ($(this).is(".up")) {
            row.insertBefore(row.prev());
                     event.preventDefault();
        } else {
            row.insertAfter(row.next());
                     event.preventDefault();
        }
    });
});

});

i use this extension on every single project i work on.

@Fawx, thanks but I forgot to mention that I already use Order Entries. AFAIK with jQuery there is no click-and-drag functionality on an iPhone? It would be handy when on the move.

It's not about jQuery, it's about how iOS handles touch events. There are javascript snippets out there to convert touch to click.

jqtouch

by the way, kalvind, i think jonas and i may pick up phoque's mobile backend pretty soon, so keep an eye out for that (or feel free to join up).

Cheers guys, atm I'm not too hot with javascript but I am learning it on the fly. I just thought a simple up and down would be a quick alternative for iOS devices.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details