{"action":"created","comment":{"url":"https://api.github.com/repos/aprokopenko/justcustomfields/pulls/comments/34982383","id":34982383,"diff_hunk":"@@ -255,6 +258,63 @@ function initFieldsetFields(){\n }\r\n \r\n /**\r\n+ *\tinit import\r\n+ */\r\n+function initImport(){\r\n+\tjQuery('#jcf_import_fields').submit(function(e){\r\n+\t\te.preventDefault();\r\n+\r\n+\t\tvar query = new FormData(jQuery( this ).get(0));\r\n+\t\tjQuery.ajax({\r\n+\t\t\turl: 'admin-ajax.php',\r\n+\t\t\ttype: 'post',\r\n+\t\t\tcontentType: false,\r\n+\t\t\tprocessData: false,\r\n+\t\t\tdata: query,\r\n+\t\t\tsuccess: function(responce){\r\n+\t\t\t\tmodalWindow(responce);\r\n+\t\t\t}\r\n+\t\t  });\r\n+\t});\r\n+\tcheckedFields();\r\n+}\r\n+\r\n+/**\r\n+ *\tinit export\r\n+ */\r\n+function initExport(){\r\n+\tjQuery('a#export-button').click(function(){\r\n+\t\tvar data = {\r\n+\t\t\t'action': 'jcf_export_fields_form'\r\n+\t\t}\r\n+\t\tjcf_ajax(data, 'html', null, function(response){\r\n+\t\t\tmodalWindow(response);\r\n+\t\t});\r\n+\t});\r\n+\tcheckedFields();\r\n+}\r\n+\r\n+function checkedFields(){\r","path":"assets/just_custom_fields.js","position":63,"original_position":63,"commit_id":"1f098cf6e41d7b01281c886b83e6ddb7b399b965","original_commit_id":"1f098cf6e41d7b01281c886b83e6ddb7b399b965","user":{"login":"aprokopenko","id":1842666,"avatar_url":"https://avatars.githubusercontent.com/u/1842666?v=3","gravatar_id":"","url":"https://api.github.com/users/aprokopenko","html_url":"https://github.com/aprokopenko","followers_url":"https://api.github.com/users/aprokopenko/followers","following_url":"https://api.github.com/users/aprokopenko/following{/other_user}","gists_url":"https://api.github.com/users/aprokopenko/gists{/gist_id}","starred_url":"https://api.github.com/users/aprokopenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aprokopenko/subscriptions","organizations_url":"https://api.github.com/users/aprokopenko/orgs","repos_url":"https://api.github.com/users/aprokopenko/repos","events_url":"https://api.github.com/users/aprokopenko/events{/privacy}","received_events_url":"https://api.github.com/users/aprokopenko/received_events","type":"User","site_admin":false},"body":"думаю лучше назвать функцию initImportExportCheckboxes()","created_at":"2015-07-20T10:23:14Z","updated_at":"2015-07-20T10:23:14Z","html_url":"https://github.com/aprokopenko/justcustomfields/pull/35#discussion_r34982383","pull_request_url":"https://api.github.com/repos/aprokopenko/justcustomfields/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/aprokopenko/justcustomfields/pulls/comments/34982383"},"html":{"href":"https://github.com/aprokopenko/justcustomfields/pull/35#discussion_r34982383"},"pull_request":{"href":"https://api.github.com/repos/aprokopenko/justcustomfields/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/aprokopenko/justcustomfields/pulls/35","id":39371925,"html_url":"https://github.com/aprokopenko/justcustomfields/pull/35","diff_url":"https://github.com/aprokopenko/justcustomfields/pull/35.diff","patch_url":"https://github.com/aprokopenko/justcustomfields/pull/35.patch","issue_url":"https://api.github.com/repos/aprokopenko/justcustomfields/issues/35","number":35,"state":"open","locked":false,"title":"2767198 export import plugin settings","user":{"login":"jcssamoylov","id":13030559,"avatar_url":"https://avatars.githubusercontent.com/u/13030559?v=3","gravatar_id":"","url":"https://api.github.com/users/jcssamoylov","html_url":"https://github.com/jcssamoylov","followers_url":"https://api.github.com/users/jcssamoylov/followers","following_url":"https://api.github.com/users/jcssamoylov/following{/other_user}","gists_url":"https://api.github.com/users/jcssamoylov/gists{/gist_id}","starred_url":"https://api.github.com/users/jcssamoylov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcssamoylov/subscriptions","organizations_url":"https://api.github.com/users/jcssamoylov/orgs","repos_url":"https://api.github.com/users/jcssamoylov/repos","events_url":"https://api.github.com/users/jcssamoylov/events{/privacy}","received_events_url":"https://api.github.com/users/jcssamoylov/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-07T13:51:29Z","updated_at":"2015-07-20T10:23:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"df2bc7189a84133e0bfb08435cd9ba27b567887b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aprokopenko/justcustomfields/pulls/35/commits","review_comments_url":"https://api.github.com/repos/aprokopenko/justcustomfields/pulls/35/comments","review_comment_url":"https://api.github.com/repos/aprokopenko/justcustomfields/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aprokopenko/justcustomfields/issues/35/comments","statuses_url":"https://api.github.com/repos/aprokopenko/justcustomfields/statuses/1f098cf6e41d7b01281c886b83e6ddb7b399b965","head":{"label":"jcssamoylov:2767198_export_import_plugin_settings","ref":"2767198_export_import_plugin_settings","sha":"1f098cf6e41d7b01281c886b83e6ddb7b399b965","user":{"login":"jcssamoylov","id":13030559,"avatar_url":"https://avatars.githubusercontent.com/u/13030559?v=3","gravatar_id":"","url":"https://api.github.com/users/jcssamoylov","html_url":"https://github.com/jcssamoylov","followers_url":"https://api.github.com/users/jcssamoylov/followers","following_url":"https://api.github.com/users/jcssamoylov/following{/other_user}","gists_url":"https://api.github.com/users/jcssamoylov/gists{/gist_id}","starred_url":"https://api.github.com/users/jcssamoylov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcssamoylov/subscriptions","organizations_url":"https://api.github.com/users/jcssamoylov/orgs","repos_url":"https://api.github.com/users/jcssamoylov/repos","events_url":"https://api.github.com/users/jcssamoylov/events{/privacy}","received_events_url":"https://api.github.com/users/jcssamoylov/received_events","type":"User","site_admin":false},"repo":{"id":37974571,"name":"justcustomfields","full_name":"jcssamoylov/justcustomfields","owner":{"login":"jcssamoylov","id":13030559,"avatar_url":"https://avatars.githubusercontent.com/u/13030559?v=3","gravatar_id":"","url":"https://api.github.com/users/jcssamoylov","html_url":"https://github.com/jcssamoylov","followers_url":"https://api.github.com/users/jcssamoylov/followers","following_url":"https://api.github.com/users/jcssamoylov/following{/other_user}","gists_url":"https://api.github.com/users/jcssamoylov/gists{/gist_id}","starred_url":"https://api.github.com/users/jcssamoylov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcssamoylov/subscriptions","organizations_url":"https://api.github.com/users/jcssamoylov/orgs","repos_url":"https://api.github.com/users/jcssamoylov/repos","events_url":"https://api.github.com/users/jcssamoylov/events{/privacy}","received_events_url":"https://api.github.com/users/jcssamoylov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jcssamoylov/justcustomfields","description":"wordpress just custom fields dev version","fork":true,"url":"https://api.github.com/repos/jcssamoylov/justcustomfields","forks_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/forks","keys_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/teams","hooks_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/hooks","issue_events_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/issues/events{/number}","events_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/events","assignees_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/assignees{/user}","branches_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/branches{/branch}","tags_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/tags","blobs_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/git/refs{/sha}","trees_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/statuses/{sha}","languages_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/languages","stargazers_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/stargazers","contributors_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/contributors","subscribers_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/subscribers","subscription_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/subscription","commits_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/commits{/sha}","git_commits_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/git/commits{/sha}","comments_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/comments{/number}","issue_comment_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/issues/comments{/number}","contents_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/contents/{+path}","compare_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/merges","archive_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/downloads","issues_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/issues{/number}","pulls_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/pulls{/number}","milestones_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/milestones{/number}","notifications_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/labels{/name}","releases_url":"https://api.github.com/repos/jcssamoylov/justcustomfields/releases{/id}","created_at":"2015-06-24T09:14:56Z","updated_at":"2015-06-24T09:14:56Z","pushed_at":"2015-07-20T09:45:33Z","git_url":"git://github.com/jcssamoylov/justcustomfields.git","ssh_url":"git@github.com:jcssamoylov/justcustomfields.git","clone_url":"https://github.com/jcssamoylov/justcustomfields.git","svn_url":"https://github.com/jcssamoylov/justcustomfields","homepage":null,"size":627,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"aprokopenko:master","ref":"master","sha":"bcfa049e090536a7b18e9dededc65cb48ae32412","user":{"login":"aprokopenko","id":1842666,"avatar_url":"https://avatars.githubusercontent.com/u/1842666?v=3","gravatar_id":"","url":"https://api.github.com/users/aprokopenko","html_url":"https://github.com/aprokopenko","followers_url":"https://api.github.com/users/aprokopenko/followers","following_url":"https://api.github.com/users/aprokopenko/following{/other_user}","gists_url":"https://api.github.com/users/aprokopenko/gists{/gist_id}","starred_url":"https://api.github.com/users/aprokopenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aprokopenko/subscriptions","organizations_url":"https://api.github.com/users/aprokopenko/orgs","repos_url":"https://api.github.com/users/aprokopenko/repos","events_url":"https://api.github.com/users/aprokopenko/events{/privacy}","received_events_url":"https://api.github.com/users/aprokopenko/received_events","type":"User","site_admin":false},"repo":{"id":4638077,"name":"justcustomfields","full_name":"aprokopenko/justcustomfields","owner":{"login":"aprokopenko","id":1842666,"avatar_url":"https://avatars.githubusercontent.com/u/1842666?v=3","gravatar_id":"","url":"https://api.github.com/users/aprokopenko","html_url":"https://github.com/aprokopenko","followers_url":"https://api.github.com/users/aprokopenko/followers","following_url":"https://api.github.com/users/aprokopenko/following{/other_user}","gists_url":"https://api.github.com/users/aprokopenko/gists{/gist_id}","starred_url":"https://api.github.com/users/aprokopenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aprokopenko/subscriptions","organizations_url":"https://api.github.com/users/aprokopenko/orgs","repos_url":"https://api.github.com/users/aprokopenko/repos","events_url":"https://api.github.com/users/aprokopenko/events{/privacy}","received_events_url":"https://api.github.com/users/aprokopenko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aprokopenko/justcustomfields","description":"wordpress just custom fields dev version","fork":false,"url":"https://api.github.com/repos/aprokopenko/justcustomfields","forks_url":"https://api.github.com/repos/aprokopenko/justcustomfields/forks","keys_url":"https://api.github.com/repos/aprokopenko/justcustomfields/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aprokopenko/justcustomfields/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aprokopenko/justcustomfields/teams","hooks_url":"https://api.github.com/repos/aprokopenko/justcustomfields/hooks","issue_events_url":"https://api.github.com/repos/aprokopenko/justcustomfields/issues/events{/number}","events_url":"https://api.github.com/repos/aprokopenko/justcustomfields/events","assignees_url":"https://api.github.com/repos/aprokopenko/justcustomfields/assignees{/user}","branches_url":"https://api.github.com/repos/aprokopenko/justcustomfields/branches{/branch}","tags_url":"https://api.github.com/repos/aprokopenko/justcustomfields/tags","blobs_url":"https://api.github.com/repos/aprokopenko/justcustomfields/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aprokopenko/justcustomfields/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aprokopenko/justcustomfields/git/refs{/sha}","trees_url":"https://api.github.com/repos/aprokopenko/justcustomfields/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aprokopenko/justcustomfields/statuses/{sha}","languages_url":"https://api.github.com/repos/aprokopenko/justcustomfields/languages","stargazers_url":"https://api.github.com/repos/aprokopenko/justcustomfields/stargazers","contributors_url":"https://api.github.com/repos/aprokopenko/justcustomfields/contributors","subscribers_url":"https://api.github.com/repos/aprokopenko/justcustomfields/subscribers","subscription_url":"https://api.github.com/repos/aprokopenko/justcustomfields/subscription","commits_url":"https://api.github.com/repos/aprokopenko/justcustomfields/commits{/sha}","git_commits_url":"https://api.github.com/repos/aprokopenko/justcustomfields/git/commits{/sha}","comments_url":"https://api.github.com/repos/aprokopenko/justcustomfields/comments{/number}","issue_comment_url":"https://api.github.com/repos/aprokopenko/justcustomfields/issues/comments{/number}","contents_url":"https://api.github.com/repos/aprokopenko/justcustomfields/contents/{+path}","compare_url":"https://api.github.com/repos/aprokopenko/justcustomfields/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aprokopenko/justcustomfields/merges","archive_url":"https://api.github.com/repos/aprokopenko/justcustomfields/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aprokopenko/justcustomfields/downloads","issues_url":"https://api.github.com/repos/aprokopenko/justcustomfields/issues{/number}","pulls_url":"https://api.github.com/repos/aprokopenko/justcustomfields/pulls{/number}","milestones_url":"https://api.github.com/repos/aprokopenko/justcustomfields/milestones{/number}","notifications_url":"https://api.github.com/repos/aprokopenko/justcustomfields/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aprokopenko/justcustomfields/labels{/name}","releases_url":"https://api.github.com/repos/aprokopenko/justcustomfields/releases{/id}","created_at":"2012-06-12T14:04:27Z","updated_at":"2015-01-24T21:53:52Z","pushed_at":"2015-07-20T09:45:33Z","git_url":"git://github.com/aprokopenko/justcustomfields.git","ssh_url":"git@github.com:aprokopenko/justcustomfields.git","clone_url":"https://github.com/aprokopenko/justcustomfields.git","svn_url":"https://github.com/aprokopenko/justcustomfields","homepage":null,"size":973,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":18,"forks":5,"open_issues":18,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aprokopenko/justcustomfields/pulls/35"},"html":{"href":"https://github.com/aprokopenko/justcustomfields/pull/35"},"issue":{"href":"https://api.github.com/repos/aprokopenko/justcustomfields/issues/35"},"comments":{"href":"https://api.github.com/repos/aprokopenko/justcustomfields/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/aprokopenko/justcustomfields/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/aprokopenko/justcustomfields/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aprokopenko/justcustomfields/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/aprokopenko/justcustomfields/statuses/1f098cf6e41d7b01281c886b83e6ddb7b399b965"}}}}