{"action":"created","comment":{"url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/pulls/comments/50676787","id":50676787,"diff_hunk":"@@ -0,0 +1,98 @@\n+// #DROPZONE#\n+// This script implements the dropzone settings\n+'use strict';\n+\n+/* globals Dropzone */\n+(function ($) {\n+    $(function () {\n+        var dropzoneSelector = '.js-filer-dropzone';\n+        var dropzones;\n+        var infoMessage = '.js-filer-dropzone-info-message';\n+        var errorMessage = '.js-filer-dropzone-error-message';\n+        var uploadInfo = '.js-filer-dropzone-upload-info';\n+        var uploadWelcome = '.js-filer-dropzone-upload-welcome';\n+        var uploadFileName = '.js-filer-dropzone-file-name';\n+        var uploadProgress = '.js-filer-dropzone-progress';\n+        var uploadSuccess = '.js-filer-dropzone-upload-success';\n+        var dragHoverClass = 'dz-drag-hover';\n+        var originalImage = '.js-original-image';\n+        var hiddenClass = 'hidden';\n+        var hideMessageTimeout;\n+\n+        dropzones = $(dropzoneSelector);\n+        if (dropzones.length && Dropzone) {\n+            Dropzone.autoDiscover = false;\n+            dropzones.each(function () {\n+                var dropzone = $(this);\n+                var dropzoneUrl = $(this).data('filer-url');\n+                new Dropzone(this, {\n+                    url: dropzoneUrl,\n+                    paramName: 'file',\n+                    uploadMultiple: false,\n+                    previewTemplate: '<div></div>',","path":"aldryn_bootstrap3/static/aldryn_bootstrap3/js/dropzone.init.js","position":33,"original_position":32,"commit_id":"a1349ec3150a21a6c9015c09e36758456de150ca","original_commit_id":"648af3f9c0ced20cb3f6d29a6ce2664903fa8ab2","user":{"login":"dhorelik","id":1699203,"avatar_url":"https://avatars.githubusercontent.com/u/1699203?v=3","gravatar_id":"","url":"https://api.github.com/users/dhorelik","html_url":"https://github.com/dhorelik","followers_url":"https://api.github.com/users/dhorelik/followers","following_url":"https://api.github.com/users/dhorelik/following{/other_user}","gists_url":"https://api.github.com/users/dhorelik/gists{/gist_id}","starred_url":"https://api.github.com/users/dhorelik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhorelik/subscriptions","organizations_url":"https://api.github.com/users/dhorelik/orgs","repos_url":"https://api.github.com/users/dhorelik/repos","events_url":"https://api.github.com/users/dhorelik/events{/privacy}","received_events_url":"https://api.github.com/users/dhorelik/received_events","type":"User","site_admin":false},"body":"sorry, nevermind","created_at":"2016-01-25T10:31:33Z","updated_at":"2016-01-25T10:31:33Z","html_url":"https://github.com/aldryn/aldryn-bootstrap3/pull/67#discussion_r50676787","pull_request_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/pulls/67","_links":{"self":{"href":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/pulls/comments/50676787"},"html":{"href":"https://github.com/aldryn/aldryn-bootstrap3/pull/67#discussion_r50676787"},"pull_request":{"href":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/pulls/67"}}},"pull_request":{"url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/pulls/67","id":56032918,"html_url":"https://github.com/aldryn/aldryn-bootstrap3/pull/67","diff_url":"https://github.com/aldryn/aldryn-bootstrap3/pull/67.diff","patch_url":"https://github.com/aldryn/aldryn-bootstrap3/pull/67.patch","issue_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/issues/67","number":67,"state":"open","locked":false,"title":"Drag and drop support for image plugin","user":{"login":"mikek","id":88083,"avatar_url":"https://avatars.githubusercontent.com/u/88083?v=3","gravatar_id":"","url":"https://api.github.com/users/mikek","html_url":"https://github.com/mikek","followers_url":"https://api.github.com/users/mikek/followers","following_url":"https://api.github.com/users/mikek/following{/other_user}","gists_url":"https://api.github.com/users/mikek/gists{/gist_id}","starred_url":"https://api.github.com/users/mikek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikek/subscriptions","organizations_url":"https://api.github.com/users/mikek/orgs","repos_url":"https://api.github.com/users/mikek/repos","events_url":"https://api.github.com/users/mikek/events{/privacy}","received_events_url":"https://api.github.com/users/mikek/received_events","type":"User","site_admin":false},"body":"Drag and drop support for image plugin.\r\n\r\n_Note: this is a work in progress_","created_at":"2016-01-14T13:10:14Z","updated_at":"2016-01-25T10:31:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ee60c211fea0e8f357923c5c0f065691adbd2b0d","assignee":{"login":"lory87","id":2270884,"avatar_url":"https://avatars.githubusercontent.com/u/2270884?v=3","gravatar_id":"","url":"https://api.github.com/users/lory87","html_url":"https://github.com/lory87","followers_url":"https://api.github.com/users/lory87/followers","following_url":"https://api.github.com/users/lory87/following{/other_user}","gists_url":"https://api.github.com/users/lory87/gists{/gist_id}","starred_url":"https://api.github.com/users/lory87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lory87/subscriptions","organizations_url":"https://api.github.com/users/lory87/orgs","repos_url":"https://api.github.com/users/lory87/repos","events_url":"https://api.github.com/users/lory87/events{/privacy}","received_events_url":"https://api.github.com/users/lory87/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/pulls/67/commits","review_comments_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/pulls/67/comments","review_comment_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/issues/67/comments","statuses_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/statuses/a1349ec3150a21a6c9015c09e36758456de150ca","head":{"label":"aldryn:feature/drag-and-drop-image-plugin","ref":"feature/drag-and-drop-image-plugin","sha":"a1349ec3150a21a6c9015c09e36758456de150ca","user":{"login":"aldryn","id":4201738,"avatar_url":"https://avatars.githubusercontent.com/u/4201738?v=3","gravatar_id":"","url":"https://api.github.com/users/aldryn","html_url":"https://github.com/aldryn","followers_url":"https://api.github.com/users/aldryn/followers","following_url":"https://api.github.com/users/aldryn/following{/other_user}","gists_url":"https://api.github.com/users/aldryn/gists{/gist_id}","starred_url":"https://api.github.com/users/aldryn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aldryn/subscriptions","organizations_url":"https://api.github.com/users/aldryn/orgs","repos_url":"https://api.github.com/users/aldryn/repos","events_url":"https://api.github.com/users/aldryn/events{/privacy}","received_events_url":"https://api.github.com/users/aldryn/received_events","type":"Organization","site_admin":false},"repo":{"id":31286602,"name":"aldryn-bootstrap3","full_name":"aldryn/aldryn-bootstrap3","owner":{"login":"aldryn","id":4201738,"avatar_url":"https://avatars.githubusercontent.com/u/4201738?v=3","gravatar_id":"","url":"https://api.github.com/users/aldryn","html_url":"https://github.com/aldryn","followers_url":"https://api.github.com/users/aldryn/followers","following_url":"https://api.github.com/users/aldryn/following{/other_user}","gists_url":"https://api.github.com/users/aldryn/gists{/gist_id}","starred_url":"https://api.github.com/users/aldryn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aldryn/subscriptions","organizations_url":"https://api.github.com/users/aldryn/orgs","repos_url":"https://api.github.com/users/aldryn/repos","events_url":"https://api.github.com/users/aldryn/events{/privacy}","received_events_url":"https://api.github.com/users/aldryn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aldryn/aldryn-bootstrap3","description":"django CMS plugins for bootstrap3 markup","fork":false,"url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3","forks_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/forks","keys_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/teams","hooks_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/hooks","issue_events_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/issues/events{/number}","events_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/events","assignees_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/assignees{/user}","branches_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/branches{/branch}","tags_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/tags","blobs_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/git/refs{/sha}","trees_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/statuses/{sha}","languages_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/languages","stargazers_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/stargazers","contributors_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/contributors","subscribers_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/subscribers","subscription_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/subscription","commits_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/commits{/sha}","git_commits_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/git/commits{/sha}","comments_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/comments{/number}","issue_comment_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/issues/comments{/number}","contents_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/contents/{+path}","compare_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/merges","archive_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/downloads","issues_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/issues{/number}","pulls_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/pulls{/number}","milestones_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/milestones{/number}","notifications_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/labels{/name}","releases_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/releases{/id}","deployments_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/deployments","created_at":"2015-02-24T23:04:30Z","updated_at":"2016-01-13T14:09:27Z","pushed_at":"2016-01-25T10:30:46Z","git_url":"git://github.com/aldryn/aldryn-bootstrap3.git","ssh_url":"git@github.com:aldryn/aldryn-bootstrap3.git","clone_url":"https://github.com/aldryn/aldryn-bootstrap3.git","svn_url":"https://github.com/aldryn/aldryn-bootstrap3","homepage":"http://www.aldryn.com/en/marketplace/aldryn-bootstrap3/","size":1003,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":15,"forks":8,"open_issues":15,"watchers":6,"default_branch":"master"}},"base":{"label":"aldryn:develop","ref":"develop","sha":"2974352679b079a7ed4054d94241108be4f10558","user":{"login":"aldryn","id":4201738,"avatar_url":"https://avatars.githubusercontent.com/u/4201738?v=3","gravatar_id":"","url":"https://api.github.com/users/aldryn","html_url":"https://github.com/aldryn","followers_url":"https://api.github.com/users/aldryn/followers","following_url":"https://api.github.com/users/aldryn/following{/other_user}","gists_url":"https://api.github.com/users/aldryn/gists{/gist_id}","starred_url":"https://api.github.com/users/aldryn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aldryn/subscriptions","organizations_url":"https://api.github.com/users/aldryn/orgs","repos_url":"https://api.github.com/users/aldryn/repos","events_url":"https://api.github.com/users/aldryn/events{/privacy}","received_events_url":"https://api.github.com/users/aldryn/received_events","type":"Organization","site_admin":false},"repo":{"id":31286602,"name":"aldryn-bootstrap3","full_name":"aldryn/aldryn-bootstrap3","owner":{"login":"aldryn","id":4201738,"avatar_url":"https://avatars.githubusercontent.com/u/4201738?v=3","gravatar_id":"","url":"https://api.github.com/users/aldryn","html_url":"https://github.com/aldryn","followers_url":"https://api.github.com/users/aldryn/followers","following_url":"https://api.github.com/users/aldryn/following{/other_user}","gists_url":"https://api.github.com/users/aldryn/gists{/gist_id}","starred_url":"https://api.github.com/users/aldryn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aldryn/subscriptions","organizations_url":"https://api.github.com/users/aldryn/orgs","repos_url":"https://api.github.com/users/aldryn/repos","events_url":"https://api.github.com/users/aldryn/events{/privacy}","received_events_url":"https://api.github.com/users/aldryn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aldryn/aldryn-bootstrap3","description":"django CMS plugins for bootstrap3 markup","fork":false,"url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3","forks_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/forks","keys_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/teams","hooks_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/hooks","issue_events_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/issues/events{/number}","events_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/events","assignees_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/assignees{/user}","branches_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/branches{/branch}","tags_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/tags","blobs_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/git/refs{/sha}","trees_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/statuses/{sha}","languages_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/languages","stargazers_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/stargazers","contributors_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/contributors","subscribers_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/subscribers","subscription_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/subscription","commits_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/commits{/sha}","git_commits_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/git/commits{/sha}","comments_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/comments{/number}","issue_comment_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/issues/comments{/number}","contents_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/contents/{+path}","compare_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/merges","archive_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/downloads","issues_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/issues{/number}","pulls_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/pulls{/number}","milestones_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/milestones{/number}","notifications_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/labels{/name}","releases_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/releases{/id}","deployments_url":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/deployments","created_at":"2015-02-24T23:04:30Z","updated_at":"2016-01-13T14:09:27Z","pushed_at":"2016-01-25T10:30:46Z","git_url":"git://github.com/aldryn/aldryn-bootstrap3.git","ssh_url":"git@github.com:aldryn/aldryn-bootstrap3.git","clone_url":"https://github.com/aldryn/aldryn-bootstrap3.git","svn_url":"https://github.com/aldryn/aldryn-bootstrap3","homepage":"http://www.aldryn.com/en/marketplace/aldryn-bootstrap3/","size":1003,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":15,"forks":8,"open_issues":15,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/pulls/67"},"html":{"href":"https://github.com/aldryn/aldryn-bootstrap3/pull/67"},"issue":{"href":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/issues/67"},"comments":{"href":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/issues/67/comments"},"review_comments":{"href":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/pulls/67/comments"},"review_comment":{"href":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/pulls/67/commits"},"statuses":{"href":"https://api.github.com/repos/aldryn/aldryn-bootstrap3/statuses/a1349ec3150a21a6c9015c09e36758456de150ca"}}}}