{"action":"created","comment":{"url":"https://api.github.com/repos/Wikia/mercury/pulls/comments/53627584","id":53627584,"diff_hunk":"@@ -223,93 +198,28 @@ export default Ember.Route.extend({\n \t\t},\n \n \t\t/**\n-\t\t * @desc Handles the add data, image or title button and call the proper\n-\t\t * function on model.\n-\t\t * @param {String} type - of item type\n-\t\t * @returns {Object} added item\n-\t\t*/\n-\t\taddItem(type) {\n-\t\t\tconst model = this.modelFor('infoboxBuilder');\n-\n-\t\t\treturn model.addItem(type);\n-\t\t},\n-\n-\t\t/**\n-\t\t * @desc Handles editing title element - calls proper function on model\n-\t\t * @param {TitleItem} item\n-\t\t * @param {bool} value\n-\t\t * @returns {void}\n-\t\t */\n-\t\teditTitleItem(item, value) {\n-\t\t\tconst model = this.modelFor('infoboxBuilder');\n-\n-\t\t\tmodel.editTitleItem(item, value);\n-\t\t},\n-\n-\t\teditRowItem(item, value) {\n-\t\t\tconst model = this.modelFor('infoboxBuilder');\n-\n-\t\t\tmodel.editRowItem(item, value);\n-\t\t},\n-\n-\t\t/**\n-\t\t * @desc Handles setting item to edit mode - calls proper function on model\n-\t\t * @param {Object} item\n-\t\t * @returns {void}\n-\t\t */\n-\t\tsetEditItem(item) {\n-\t\t\tconst model = this.modelFor('infoboxBuilder');\n-\n-\t\t\tmodel.setEditItem(item);\n-\t\t},\n-\n-\t\t/**\n-\t\t * @desc Handles removing item and calls proper function on model\n-\t\t * @param {Object} item\n-\t\t * @returns {void}\n-\t\t */\n-\t\tremoveItem(item) {\n-\t\t\tconst model = this.modelFor('infoboxBuilder');\n-\n-\t\t\tmodel.removeItem(item);\n-\t\t},\n-\n-\t\t/**\n-\t\t * @desc Handles moving item in the state and calls proper function on model\n-\t\t * @param {Number} offset\n-\t\t * @param {Object} item\n-\t\t * @returns {void}\n+\t\t * @desc connects with ponto and redirects to template page\n+\t\t * @param {String} title - title of the template\n+\t\t * @returns {Ember.RSVP.Promise}\n \t\t */\n-\t\tmoveItem(offset, item) {\n-\t\t\tconst model = this.modelFor('infoboxBuilder');\n-\n-\t\t\tmodel.moveItem(offset, item);\n-\t\t},\n-\n-\t\t/**\n-\t\t * @desc Handles the save template button, calls the proper function\n-\t\t * on model and connect with <iframe> parent to redirect to another page.\n-\t\t * @returns {void}\n-\t\t */\n-\t\tsave() {\n-\t\t\tconst model = this.modelFor('infoboxBuilder');\n-\n-\t\t\tmodel.saveStateToTemplate().then((title) => {\n-\t\t\t\treturn this.redirectToTemplatePage(title);\n+\t\tredirectToTemplatePage(title) {\n+\t\t\treturn new Ember.RSVP.Promise((resolve, reject) => {\n+\t\t\t\tconst ponto = window.Ponto;\n+\n+\t\t\t\tponto.invoke(\n+\t\t\t\t\t'wikia.infoboxBuilder.ponto',\n+\t\t\t\t\t'redirectToTemplatePage',\n+\t\t\t\t\ttitle,\n+\t\t\t\t\t(data) => {","path":"front/main/app/routes/infobox-builder.js","position":120,"original_position":120,"commit_id":"5b68a6dc074fde318b9809278f8eca824552d860","original_commit_id":"5b68a6dc074fde318b9809278f8eca824552d860","user":{"login":"hakubo","id":1018759,"avatar_url":"https://avatars.githubusercontent.com/u/1018759?v=3","gravatar_id":"","url":"https://api.github.com/users/hakubo","html_url":"https://github.com/hakubo","followers_url":"https://api.github.com/users/hakubo/followers","following_url":"https://api.github.com/users/hakubo/following{/other_user}","gists_url":"https://api.github.com/users/hakubo/gists{/gist_id}","starred_url":"https://api.github.com/users/hakubo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hakubo/subscriptions","organizations_url":"https://api.github.com/users/hakubo/orgs","repos_url":"https://api.github.com/users/hakubo/repos","events_url":"https://api.github.com/users/hakubo/events{/privacy}","received_events_url":"https://api.github.com/users/hakubo/received_events","type":"User","site_admin":false},"body":"you can just pass function as a reference","created_at":"2016-02-22T14:00:40Z","updated_at":"2016-02-22T14:00:40Z","html_url":"https://github.com/Wikia/mercury/pull/2037#discussion_r53627584","pull_request_url":"https://api.github.com/repos/Wikia/mercury/pulls/2037","_links":{"self":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/comments/53627584"},"html":{"href":"https://github.com/Wikia/mercury/pull/2037#discussion_r53627584"},"pull_request":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/2037"}}},"pull_request":{"url":"https://api.github.com/repos/Wikia/mercury/pulls/2037","id":60159797,"html_url":"https://github.com/Wikia/mercury/pull/2037","diff_url":"https://github.com/Wikia/mercury/pull/2037.diff","patch_url":"https://github.com/Wikia/mercury/pull/2037.patch","issue_url":"https://api.github.com/repos/Wikia/mercury/issues/2037","number":2037,"state":"open","locked":false,"title":"DAT-3770 infobox builder reordering of elements","user":{"login":"dianafa","id":3716441,"avatar_url":"https://avatars.githubusercontent.com/u/3716441?v=3","gravatar_id":"","url":"https://api.github.com/users/dianafa","html_url":"https://github.com/dianafa","followers_url":"https://api.github.com/users/dianafa/followers","following_url":"https://api.github.com/users/dianafa/following{/other_user}","gists_url":"https://api.github.com/users/dianafa/gists{/gist_id}","starred_url":"https://api.github.com/users/dianafa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dianafa/subscriptions","organizations_url":"https://api.github.com/users/dianafa/orgs","repos_url":"https://api.github.com/users/dianafa/repos","events_url":"https://api.github.com/users/dianafa/events{/privacy}","received_events_url":"https://api.github.com/users/dianafa/received_events","type":"User","site_admin":false},"body":"#https://wikia-inc.atlassian.net/browse/DAT-3770\r\n\r\nThis PR allows for reordering elements in infobox builder.\r\nIt's introducing a fork of the https://github.com/jgwhite/ember-sortable because the original version didn't have the functionality we needed. Once `jgwhite` accept the PR and will introduce changes needed by us,  we need to change package.json to use that version of code.\r\n\r\n@hakubo @rogatty can you please take a look?","created_at":"2016-02-22T11:33:00Z","updated_at":"2016-02-22T14:00:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0175328633da26cd8f6140a1e502c0560de89e73","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Wikia/mercury/pulls/2037/commits","review_comments_url":"https://api.github.com/repos/Wikia/mercury/pulls/2037/comments","review_comment_url":"https://api.github.com/repos/Wikia/mercury/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Wikia/mercury/issues/2037/comments","statuses_url":"https://api.github.com/repos/Wikia/mercury/statuses/5b68a6dc074fde318b9809278f8eca824552d860","head":{"label":"Wikia:DAT-3770-infobox-builder-reordering","ref":"DAT-3770-infobox-builder-reordering","sha":"5b68a6dc074fde318b9809278f8eca824552d860","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":16710430,"name":"mercury","full_name":"Wikia/mercury","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/mercury","description":"Wikia Web application","fork":false,"url":"https://api.github.com/repos/Wikia/mercury","forks_url":"https://api.github.com/repos/Wikia/mercury/forks","keys_url":"https://api.github.com/repos/Wikia/mercury/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/mercury/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/mercury/teams","hooks_url":"https://api.github.com/repos/Wikia/mercury/hooks","issue_events_url":"https://api.github.com/repos/Wikia/mercury/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/mercury/events","assignees_url":"https://api.github.com/repos/Wikia/mercury/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/mercury/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/mercury/tags","blobs_url":"https://api.github.com/repos/Wikia/mercury/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/mercury/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/mercury/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/mercury/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/mercury/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/mercury/languages","stargazers_url":"https://api.github.com/repos/Wikia/mercury/stargazers","contributors_url":"https://api.github.com/repos/Wikia/mercury/contributors","subscribers_url":"https://api.github.com/repos/Wikia/mercury/subscribers","subscription_url":"https://api.github.com/repos/Wikia/mercury/subscription","commits_url":"https://api.github.com/repos/Wikia/mercury/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/mercury/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/mercury/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/mercury/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/mercury/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/mercury/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/mercury/merges","archive_url":"https://api.github.com/repos/Wikia/mercury/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/mercury/downloads","issues_url":"https://api.github.com/repos/Wikia/mercury/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/mercury/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/mercury/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/mercury/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/mercury/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/mercury/releases{/id}","deployments_url":"https://api.github.com/repos/Wikia/mercury/deployments","created_at":"2014-02-10T21:44:25Z","updated_at":"2016-01-11T15:58:43Z","pushed_at":"2016-02-22T13:57:53Z","git_url":"git://github.com/Wikia/mercury.git","ssh_url":"git@github.com:Wikia/mercury.git","clone_url":"https://github.com/Wikia/mercury.git","svn_url":"https://github.com/Wikia/mercury","homepage":"","size":75665,"stargazers_count":12,"watchers_count":12,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":18,"forks":6,"open_issues":18,"watchers":12,"default_branch":"dev"}},"base":{"label":"Wikia:dev","ref":"dev","sha":"fa2932a480e96c96815cc82bcef1d99405d92786","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":16710430,"name":"mercury","full_name":"Wikia/mercury","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/mercury","description":"Wikia Web application","fork":false,"url":"https://api.github.com/repos/Wikia/mercury","forks_url":"https://api.github.com/repos/Wikia/mercury/forks","keys_url":"https://api.github.com/repos/Wikia/mercury/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/mercury/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/mercury/teams","hooks_url":"https://api.github.com/repos/Wikia/mercury/hooks","issue_events_url":"https://api.github.com/repos/Wikia/mercury/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/mercury/events","assignees_url":"https://api.github.com/repos/Wikia/mercury/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/mercury/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/mercury/tags","blobs_url":"https://api.github.com/repos/Wikia/mercury/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/mercury/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/mercury/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/mercury/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/mercury/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/mercury/languages","stargazers_url":"https://api.github.com/repos/Wikia/mercury/stargazers","contributors_url":"https://api.github.com/repos/Wikia/mercury/contributors","subscribers_url":"https://api.github.com/repos/Wikia/mercury/subscribers","subscription_url":"https://api.github.com/repos/Wikia/mercury/subscription","commits_url":"https://api.github.com/repos/Wikia/mercury/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/mercury/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/mercury/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/mercury/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/mercury/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/mercury/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/mercury/merges","archive_url":"https://api.github.com/repos/Wikia/mercury/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/mercury/downloads","issues_url":"https://api.github.com/repos/Wikia/mercury/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/mercury/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/mercury/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/mercury/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/mercury/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/mercury/releases{/id}","deployments_url":"https://api.github.com/repos/Wikia/mercury/deployments","created_at":"2014-02-10T21:44:25Z","updated_at":"2016-01-11T15:58:43Z","pushed_at":"2016-02-22T13:57:53Z","git_url":"git://github.com/Wikia/mercury.git","ssh_url":"git@github.com:Wikia/mercury.git","clone_url":"https://github.com/Wikia/mercury.git","svn_url":"https://github.com/Wikia/mercury","homepage":"","size":75665,"stargazers_count":12,"watchers_count":12,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":18,"forks":6,"open_issues":18,"watchers":12,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/2037"},"html":{"href":"https://github.com/Wikia/mercury/pull/2037"},"issue":{"href":"https://api.github.com/repos/Wikia/mercury/issues/2037"},"comments":{"href":"https://api.github.com/repos/Wikia/mercury/issues/2037/comments"},"review_comments":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/2037/comments"},"review_comment":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Wikia/mercury/pulls/2037/commits"},"statuses":{"href":"https://api.github.com/repos/Wikia/mercury/statuses/5b68a6dc074fde318b9809278f8eca824552d860"}}}}