});console.log(dataSource);
                                }
                            },
                        editor: Location_DropDownEditor, template: "#=location_id.name#"
                    },
                    { command: 
                    [
                        <?php 
if (User::can_edit(false, ANY_CATEGORY)) {
    ?>
{name:"edit",text: {edit:"[[.Edit.]]", update:"[[.Update.]]", cancel:"[[.Cancel.]]"}}<?php 
}
?>
 ,
                        <?php 
if (User::can_delete(false, ANY_CATEGORY)) {
    ?>
{name:"destroy", text:"[[.Delete.]]"}<?php 
}
?>
 
                    ],
                    title: "&nbsp;", width: "200px", attributes: {"style": "text-align:center"}
                    },
                   ],
                editable:{
                        mode: "inline",
                        confirmation: function(e) {
                        return "[[.confirm_delete.]]: "+e.name+ "?";
                                            }
                },