                      $(this).dialog("close");
                                }
                            }
                        ]
                    });
                    if (prev != current) {
                        $.get("{% url 'dashboard:menu_order' company.id %}" + "?prev=" + prev + "&current=" + current + "&menu_id=" + ui.item.id, function (data) {
                            if (data.error) {
                                open_dialog(data.errors, 'Error!!')
                            }
