{"action":"created","issue":{"url":"https://api.github.com/repos/Studio-42/elFinder/issues/257","repository_url":"https://api.github.com/repos/Studio-42/elFinder","labels_url":"https://api.github.com/repos/Studio-42/elFinder/issues/257/labels{/name}","comments_url":"https://api.github.com/repos/Studio-42/elFinder/issues/257/comments","events_url":"https://api.github.com/repos/Studio-42/elFinder/issues/257/events","html_url":"https://github.com/Studio-42/elFinder/issues/257","id":3986863,"number":257,"title":"Adding a new command to the contextual menu and tool bar","user":{"login":"dmekala","id":1615251,"avatar_url":"https://avatars1.githubusercontent.com/u/1615251?v=4","gravatar_id":"","url":"https://api.github.com/users/dmekala","html_url":"https://github.com/dmekala","followers_url":"https://api.github.com/users/dmekala/followers","following_url":"https://api.github.com/users/dmekala/following{/other_user}","gists_url":"https://api.github.com/users/dmekala/gists{/gist_id}","starred_url":"https://api.github.com/users/dmekala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmekala/subscriptions","organizations_url":"https://api.github.com/users/dmekala/orgs","repos_url":"https://api.github.com/users/dmekala/repos","events_url":"https://api.github.com/users/dmekala/events{/privacy}","received_events_url":"https://api.github.com/users/dmekala/received_events","type":"User","site_admin":false},"labels":[{"id":121298,"url":"https://api.github.com/repos/Studio-42/elFinder/labels/client","name":"client","color":"bfdadc","default":false},{"id":126155,"url":"https://api.github.com/repos/Studio-42/elFinder/labels/documentation","name":"documentation","color":"1d76db","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Studio-42/elFinder/milestones/2","html_url":"https://github.com/Studio-42/elFinder/milestone/2","labels_url":"https://api.github.com/repos/Studio-42/elFinder/milestones/2/labels","id":21117,"number":2,"title":"2.1","description":"","creator":{"login":"troex","id":436912,"avatar_url":"https://avatars1.githubusercontent.com/u/436912?v=4","gravatar_id":"","url":"https://api.github.com/users/troex","html_url":"https://github.com/troex","followers_url":"https://api.github.com/users/troex/followers","following_url":"https://api.github.com/users/troex/following{/other_user}","gists_url":"https://api.github.com/users/troex/gists{/gist_id}","starred_url":"https://api.github.com/users/troex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troex/subscriptions","organizations_url":"https://api.github.com/users/troex/orgs","repos_url":"https://api.github.com/users/troex/repos","events_url":"https://api.github.com/users/troex/events{/privacy}","received_events_url":"https://api.github.com/users/troex/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":74,"state":"closed","created_at":"2011-07-10T19:04:35Z","updated_at":"2016-07-23T07:58:12Z","due_on":null,"closed_at":"2016-05-04T12:41:38Z"},"comments":7,"created_at":"2012-04-05T11:55:45Z","updated_at":"2018-02-09T07:14:00Z","closed_at":"2016-04-08T13:57:45Z","author_association":"NONE","body":"In order to use elfinder in my application I would need to create a new command and tie it to a specific action. Is there any documentation available on how to add a new command?\n"},"comment":{"url":"https://api.github.com/repos/Studio-42/elFinder/issues/comments/364354404","html_url":"https://github.com/Studio-42/elFinder/issues/257#issuecomment-364354404","issue_url":"https://api.github.com/repos/Studio-42/elFinder/issues/257","id":364354404,"user":{"login":"biswajit-paul","id":14993725,"avatar_url":"https://avatars2.githubusercontent.com/u/14993725?v=4","gravatar_id":"","url":"https://api.github.com/users/biswajit-paul","html_url":"https://github.com/biswajit-paul","followers_url":"https://api.github.com/users/biswajit-paul/followers","following_url":"https://api.github.com/users/biswajit-paul/following{/other_user}","gists_url":"https://api.github.com/users/biswajit-paul/gists{/gist_id}","starred_url":"https://api.github.com/users/biswajit-paul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biswajit-paul/subscriptions","organizations_url":"https://api.github.com/users/biswajit-paul/orgs","repos_url":"https://api.github.com/users/biswajit-paul/repos","events_url":"https://api.github.com/users/biswajit-paul/events{/privacy}","received_events_url":"https://api.github.com/users/biswajit-paul/received_events","type":"User","site_admin":false},"created_at":"2018-02-09T07:14:00Z","updated_at":"2018-02-09T07:14:00Z","author_association":"NONE","body":"Thank you very much. You have done a great job.\n\nOn Thu, Feb 8, 2018 at 9:17 PM, Razvan Dinicut <notifications@github.com>\nwrote:\n\n> Yes you can. Just check the selection length in the getState function of\n> you command and return -1 if you selected multiple files.\n> this.getstate = function(select) { let numberOfSelectedFilesAndFolders =\n> this.files(select).length, return numberOfSelectedFilesAndFolders == 1 ?\n> 0 : -1; };\n> If you want fo filter out folders you can look at the getfile command for\n> inspiration:\n>\n> https://github.com/Studio-42/elFinder/blob/de16dc6b61ea22f783e614ee37525b\n> a58523e2c6/js/commands/getfile.js#L12\n>\n> —\n> You are receiving this because you commented.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/Studio-42/elFinder/issues/257#issuecomment-364153258>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AOTJPRCbZfJwRSxHbuWyY7AW0tzyhWxsks5tSxccgaJpZM4AAgP6>\n> .\n>\n\n\n\n-- \n\n*Biswajit Paul, Asst. Manager - **Software Development*\nB3NET Technologies PVT. LTD.\n"}}
{"actor":{"display_login":"biswajit-paul"}}