{"action":"created","comment":{"url":"https://api.github.com/repos/otavanopisto/muikku/pulls/comments/66776381","id":66776381,"diff_hunk":"@@ -104,245 +96,239 @@\n   });\n \n   var answersElement = function(dialog, elementDefinition, htmlList) {\n-    CKEDITOR.ui.dialog.uiElement.call(this, dialog, elementDefinition,\n-        htmlList, 'div');\n+    CKEDITOR.ui.dialog.uiElement.call(this, dialog, elementDefinition, htmlList, 'div');\n   };\n \n   answersElement.prototype = new CKEDITOR.ui.dialog.uiElement;\n-  CKEDITOR.tools\n-      .extend(\n-          answersElement.prototype,\n-          {\n-            clear : function() {\n-              var element = this.getElement();\n-              while (element.getFirst()) {\n-                element.getFirst().remove();\n-              }\n-            },\n-            setupContainers : function(label) {\n-              var uiElement = this.getElement();\n-              if (this.label) {\n-                var titleContainer = uiElement\n-                    .findOne('.textfield-title-container');\n-                if (titleContainer === null) {\n-                  titleContainer = new CKEDITOR.dom.element('div');\n-                  titleContainer.addClass('textfield-title-container');\n-                  uiElement.append(titleContainer);\n+  CKEDITOR.tools.extend(answersElement.prototype,\n+    {\n+      clear : function() {\n+        var element = this.getElement();\n+        while (element.getFirst()) {\n+          element.getFirst().remove();\n+        }\n+      },\n+      setupContainers : function() {\n+        var uiElement = this.getElement();\n+        var titleContainer = uiElement\n+            .findOne('.textfield-title-container');\n+        if (titleContainer === null) {\n+          titleContainer = new CKEDITOR.dom.element('div');\n+          titleContainer.addClass('textfield-title-container');\n+          uiElement.append(titleContainer);\n \n-                  var optionLabel = new CKEDITOR.dom.element('label');\n-                  optionLabel.setText(this.label);\n-                  titleContainer.append(optionLabel);\n-\n-                  var _this = this;\n-                  var addLink = new CKEDITOR.dom.element('a');\n-                  addLink.addClass('icon-add');\n-                  addLink.on('click', function() {\n-                    _this.addAnswer('', false);\n-                  });\n-                  titleContainer.append(addLink);\n-                  var addLinkTooltip = new CKEDITOR.dom.element('span');\n-                  addLinkTooltip.setText(this.addOptionLink);\n-                  addLink.append(addLinkTooltip);\n-\n-                  var correctLabel = new CKEDITOR.dom.element('label');\n-                  correctLabel.addClass('icon-checkmark');\n-                  titleContainer.append(correctLabel);\n-                  var correctTooltip = new CKEDITOR.dom.element('span');\n-                  correctTooltip.setText(this.correctTooltip);\n-                  correctLabel.append(correctTooltip);\n-                }\n-              }\n-              // Options container\n-              var optionsContainer = uiElement\n-                  .findOne('.textfield-elements-container');\n-              if (optionsContainer == null) {\n-                optionsContainer = new CKEDITOR.dom.element('div');\n-                optionsContainer.addClass('textfield-elements-container');\n-                uiElement.append(optionsContainer);\n-              }\n-            },\n-            addAnswer : function(text, correct) {\n-              var optionsContainer = this.getElement().findOne(\n-                  '.textfield-elements-container');\n-              var optionContainer = new CKEDITOR.dom.element('div');\n-              optionContainer.addClass('textfield-element-container');\n+          var optionLabel = new CKEDITOR.dom.element('label');\n+          optionLabel.setText(this.label);\n+          titleContainer.append(optionLabel);\n \n-              var sortHandle = new CKEDITOR.dom.element('span');\n-              sortHandle.addClass('sort-handle');\n-              sortHandle.addClass('icon-move');\n-              $(optionsContainer.$).sortable({\n-                handle: '.sort-handle',\n-                axis: 'y',\n-                stop: function(event, ui) {\n-                }\n-              });\n-              optionContainer.append(sortHandle);\n+          var _this = this;\n+          var addLink = new CKEDITOR.dom.element('a');\n+          addLink.addClass('icon-add');\n+          addLink.on('click', function() {\n+            _this.addAnswer('', false);\n+          });\n+          titleContainer.append(addLink);\n+          var addLinkTooltip = new CKEDITOR.dom.element('span');","path":"muikku-core-plugins/src/main/resources/META-INF/resources/scripts/ckplugins/muikku-textfield/plugin.js","position":177,"original_position":177,"commit_id":"e9594235bbdf47b58d1a61c8c3f05815a7c0b1e1","original_commit_id":"e9594235bbdf47b58d1a61c8c3f05815a7c0b1e1","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"'CKEDITOR' is not defined.","created_at":"2016-06-13T11:26:34Z","updated_at":"2016-06-13T11:26:34Z","html_url":"https://github.com/otavanopisto/muikku/pull/2209#discussion_r66776381","pull_request_url":"https://api.github.com/repos/otavanopisto/muikku/pulls/2209","_links":{"self":{"href":"https://api.github.com/repos/otavanopisto/muikku/pulls/comments/66776381"},"html":{"href":"https://github.com/otavanopisto/muikku/pull/2209#discussion_r66776381"},"pull_request":{"href":"https://api.github.com/repos/otavanopisto/muikku/pulls/2209"}}},"pull_request":{"url":"https://api.github.com/repos/otavanopisto/muikku/pulls/2209","id":73528198,"html_url":"https://github.com/otavanopisto/muikku/pull/2209","diff_url":"https://github.com/otavanopisto/muikku/pull/2209.diff","patch_url":"https://github.com/otavanopisto/muikku/pull/2209.patch","issue_url":"https://api.github.com/repos/otavanopisto/muikku/issues/2209","number":2209,"state":"open","locked":false,"title":"Optional autogrow for text fields","user":{"login":"pkukkon","id":3963004,"avatar_url":"https://avatars.githubusercontent.com/u/3963004?v=3","gravatar_id":"","url":"https://api.github.com/users/pkukkon","html_url":"https://github.com/pkukkon","followers_url":"https://api.github.com/users/pkukkon/followers","following_url":"https://api.github.com/users/pkukkon/following{/other_user}","gists_url":"https://api.github.com/users/pkukkon/gists{/gist_id}","starred_url":"https://api.github.com/users/pkukkon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkukkon/subscriptions","organizations_url":"https://api.github.com/users/pkukkon/orgs","repos_url":"https://api.github.com/users/pkukkon/repos","events_url":"https://api.github.com/users/pkukkon/events{/privacy}","received_events_url":"https://api.github.com/users/pkukkon/received_events","type":"User","site_admin":false},"body":"- resolves #2180","created_at":"2016-06-13T06:38:05Z","updated_at":"2016-06-13T11:26:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"00719da43388b88acb1722c857c28234efc0b0a2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/otavanopisto/muikku/pulls/2209/commits","review_comments_url":"https://api.github.com/repos/otavanopisto/muikku/pulls/2209/comments","review_comment_url":"https://api.github.com/repos/otavanopisto/muikku/pulls/comments{/number}","comments_url":"https://api.github.com/repos/otavanopisto/muikku/issues/2209/comments","statuses_url":"https://api.github.com/repos/otavanopisto/muikku/statuses/e9594235bbdf47b58d1a61c8c3f05815a7c0b1e1","head":{"label":"otavanopisto:FTR-2180-textfield-autogrow","ref":"FTR-2180-textfield-autogrow","sha":"e9594235bbdf47b58d1a61c8c3f05815a7c0b1e1","user":{"login":"otavanopisto","id":3909061,"avatar_url":"https://avatars.githubusercontent.com/u/3909061?v=3","gravatar_id":"","url":"https://api.github.com/users/otavanopisto","html_url":"https://github.com/otavanopisto","followers_url":"https://api.github.com/users/otavanopisto/followers","following_url":"https://api.github.com/users/otavanopisto/following{/other_user}","gists_url":"https://api.github.com/users/otavanopisto/gists{/gist_id}","starred_url":"https://api.github.com/users/otavanopisto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otavanopisto/subscriptions","organizations_url":"https://api.github.com/users/otavanopisto/orgs","repos_url":"https://api.github.com/users/otavanopisto/repos","events_url":"https://api.github.com/users/otavanopisto/events{/privacy}","received_events_url":"https://api.github.com/users/otavanopisto/received_events","type":"Organization","site_admin":false},"repo":{"id":8877030,"name":"muikku","full_name":"otavanopisto/muikku","owner":{"login":"otavanopisto","id":3909061,"avatar_url":"https://avatars.githubusercontent.com/u/3909061?v=3","gravatar_id":"","url":"https://api.github.com/users/otavanopisto","html_url":"https://github.com/otavanopisto","followers_url":"https://api.github.com/users/otavanopisto/followers","following_url":"https://api.github.com/users/otavanopisto/following{/other_user}","gists_url":"https://api.github.com/users/otavanopisto/gists{/gist_id}","starred_url":"https://api.github.com/users/otavanopisto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otavanopisto/subscriptions","organizations_url":"https://api.github.com/users/otavanopisto/orgs","repos_url":"https://api.github.com/users/otavanopisto/repos","events_url":"https://api.github.com/users/otavanopisto/events{/privacy}","received_events_url":"https://api.github.com/users/otavanopisto/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/otavanopisto/muikku","description":"Muikku Learning Environment","fork":false,"url":"https://api.github.com/repos/otavanopisto/muikku","forks_url":"https://api.github.com/repos/otavanopisto/muikku/forks","keys_url":"https://api.github.com/repos/otavanopisto/muikku/keys{/key_id}","collaborators_url":"https://api.github.com/repos/otavanopisto/muikku/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/otavanopisto/muikku/teams","hooks_url":"https://api.github.com/repos/otavanopisto/muikku/hooks","issue_events_url":"https://api.github.com/repos/otavanopisto/muikku/issues/events{/number}","events_url":"https://api.github.com/repos/otavanopisto/muikku/events","assignees_url":"https://api.github.com/repos/otavanopisto/muikku/assignees{/user}","branches_url":"https://api.github.com/repos/otavanopisto/muikku/branches{/branch}","tags_url":"https://api.github.com/repos/otavanopisto/muikku/tags","blobs_url":"https://api.github.com/repos/otavanopisto/muikku/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/otavanopisto/muikku/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/otavanopisto/muikku/git/refs{/sha}","trees_url":"https://api.github.com/repos/otavanopisto/muikku/git/trees{/sha}","statuses_url":"https://api.github.com/repos/otavanopisto/muikku/statuses/{sha}","languages_url":"https://api.github.com/repos/otavanopisto/muikku/languages","stargazers_url":"https://api.github.com/repos/otavanopisto/muikku/stargazers","contributors_url":"https://api.github.com/repos/otavanopisto/muikku/contributors","subscribers_url":"https://api.github.com/repos/otavanopisto/muikku/subscribers","subscription_url":"https://api.github.com/repos/otavanopisto/muikku/subscription","commits_url":"https://api.github.com/repos/otavanopisto/muikku/commits{/sha}","git_commits_url":"https://api.github.com/repos/otavanopisto/muikku/git/commits{/sha}","comments_url":"https://api.github.com/repos/otavanopisto/muikku/comments{/number}","issue_comment_url":"https://api.github.com/repos/otavanopisto/muikku/issues/comments{/number}","contents_url":"https://api.github.com/repos/otavanopisto/muikku/contents/{+path}","compare_url":"https://api.github.com/repos/otavanopisto/muikku/compare/{base}...{head}","merges_url":"https://api.github.com/repos/otavanopisto/muikku/merges","archive_url":"https://api.github.com/repos/otavanopisto/muikku/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/otavanopisto/muikku/downloads","issues_url":"https://api.github.com/repos/otavanopisto/muikku/issues{/number}","pulls_url":"https://api.github.com/repos/otavanopisto/muikku/pulls{/number}","milestones_url":"https://api.github.com/repos/otavanopisto/muikku/milestones{/number}","notifications_url":"https://api.github.com/repos/otavanopisto/muikku/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/otavanopisto/muikku/labels{/name}","releases_url":"https://api.github.com/repos/otavanopisto/muikku/releases{/id}","deployments_url":"https://api.github.com/repos/otavanopisto/muikku/deployments","created_at":"2013-03-19T11:30:32Z","updated_at":"2016-04-03T01:38:11Z","pushed_at":"2016-06-13T11:26:27Z","git_url":"git://github.com/otavanopisto/muikku.git","ssh_url":"git@github.com:otavanopisto/muikku.git","clone_url":"https://github.com/otavanopisto/muikku.git","svn_url":"https://github.com/otavanopisto/muikku","homepage":null,"size":273379,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":450,"forks":0,"open_issues":450,"watchers":5,"default_branch":"devel"}},"base":{"label":"otavanopisto:devel","ref":"devel","sha":"f4a420a14e8a62c353b58ab2b0dfd1fc8749454e","user":{"login":"otavanopisto","id":3909061,"avatar_url":"https://avatars.githubusercontent.com/u/3909061?v=3","gravatar_id":"","url":"https://api.github.com/users/otavanopisto","html_url":"https://github.com/otavanopisto","followers_url":"https://api.github.com/users/otavanopisto/followers","following_url":"https://api.github.com/users/otavanopisto/following{/other_user}","gists_url":"https://api.github.com/users/otavanopisto/gists{/gist_id}","starred_url":"https://api.github.com/users/otavanopisto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otavanopisto/subscriptions","organizations_url":"https://api.github.com/users/otavanopisto/orgs","repos_url":"https://api.github.com/users/otavanopisto/repos","events_url":"https://api.github.com/users/otavanopisto/events{/privacy}","received_events_url":"https://api.github.com/users/otavanopisto/received_events","type":"Organization","site_admin":false},"repo":{"id":8877030,"name":"muikku","full_name":"otavanopisto/muikku","owner":{"login":"otavanopisto","id":3909061,"avatar_url":"https://avatars.githubusercontent.com/u/3909061?v=3","gravatar_id":"","url":"https://api.github.com/users/otavanopisto","html_url":"https://github.com/otavanopisto","followers_url":"https://api.github.com/users/otavanopisto/followers","following_url":"https://api.github.com/users/otavanopisto/following{/other_user}","gists_url":"https://api.github.com/users/otavanopisto/gists{/gist_id}","starred_url":"https://api.github.com/users/otavanopisto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otavanopisto/subscriptions","organizations_url":"https://api.github.com/users/otavanopisto/orgs","repos_url":"https://api.github.com/users/otavanopisto/repos","events_url":"https://api.github.com/users/otavanopisto/events{/privacy}","received_events_url":"https://api.github.com/users/otavanopisto/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/otavanopisto/muikku","description":"Muikku Learning Environment","fork":false,"url":"https://api.github.com/repos/otavanopisto/muikku","forks_url":"https://api.github.com/repos/otavanopisto/muikku/forks","keys_url":"https://api.github.com/repos/otavanopisto/muikku/keys{/key_id}","collaborators_url":"https://api.github.com/repos/otavanopisto/muikku/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/otavanopisto/muikku/teams","hooks_url":"https://api.github.com/repos/otavanopisto/muikku/hooks","issue_events_url":"https://api.github.com/repos/otavanopisto/muikku/issues/events{/number}","events_url":"https://api.github.com/repos/otavanopisto/muikku/events","assignees_url":"https://api.github.com/repos/otavanopisto/muikku/assignees{/user}","branches_url":"https://api.github.com/repos/otavanopisto/muikku/branches{/branch}","tags_url":"https://api.github.com/repos/otavanopisto/muikku/tags","blobs_url":"https://api.github.com/repos/otavanopisto/muikku/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/otavanopisto/muikku/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/otavanopisto/muikku/git/refs{/sha}","trees_url":"https://api.github.com/repos/otavanopisto/muikku/git/trees{/sha}","statuses_url":"https://api.github.com/repos/otavanopisto/muikku/statuses/{sha}","languages_url":"https://api.github.com/repos/otavanopisto/muikku/languages","stargazers_url":"https://api.github.com/repos/otavanopisto/muikku/stargazers","contributors_url":"https://api.github.com/repos/otavanopisto/muikku/contributors","subscribers_url":"https://api.github.com/repos/otavanopisto/muikku/subscribers","subscription_url":"https://api.github.com/repos/otavanopisto/muikku/subscription","commits_url":"https://api.github.com/repos/otavanopisto/muikku/commits{/sha}","git_commits_url":"https://api.github.com/repos/otavanopisto/muikku/git/commits{/sha}","comments_url":"https://api.github.com/repos/otavanopisto/muikku/comments{/number}","issue_comment_url":"https://api.github.com/repos/otavanopisto/muikku/issues/comments{/number}","contents_url":"https://api.github.com/repos/otavanopisto/muikku/contents/{+path}","compare_url":"https://api.github.com/repos/otavanopisto/muikku/compare/{base}...{head}","merges_url":"https://api.github.com/repos/otavanopisto/muikku/merges","archive_url":"https://api.github.com/repos/otavanopisto/muikku/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/otavanopisto/muikku/downloads","issues_url":"https://api.github.com/repos/otavanopisto/muikku/issues{/number}","pulls_url":"https://api.github.com/repos/otavanopisto/muikku/pulls{/number}","milestones_url":"https://api.github.com/repos/otavanopisto/muikku/milestones{/number}","notifications_url":"https://api.github.com/repos/otavanopisto/muikku/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/otavanopisto/muikku/labels{/name}","releases_url":"https://api.github.com/repos/otavanopisto/muikku/releases{/id}","deployments_url":"https://api.github.com/repos/otavanopisto/muikku/deployments","created_at":"2013-03-19T11:30:32Z","updated_at":"2016-04-03T01:38:11Z","pushed_at":"2016-06-13T11:26:27Z","git_url":"git://github.com/otavanopisto/muikku.git","ssh_url":"git@github.com:otavanopisto/muikku.git","clone_url":"https://github.com/otavanopisto/muikku.git","svn_url":"https://github.com/otavanopisto/muikku","homepage":null,"size":273379,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":450,"forks":0,"open_issues":450,"watchers":5,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/otavanopisto/muikku/pulls/2209"},"html":{"href":"https://github.com/otavanopisto/muikku/pull/2209"},"issue":{"href":"https://api.github.com/repos/otavanopisto/muikku/issues/2209"},"comments":{"href":"https://api.github.com/repos/otavanopisto/muikku/issues/2209/comments"},"review_comments":{"href":"https://api.github.com/repos/otavanopisto/muikku/pulls/2209/comments"},"review_comment":{"href":"https://api.github.com/repos/otavanopisto/muikku/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/otavanopisto/muikku/pulls/2209/commits"},"statuses":{"href":"https://api.github.com/repos/otavanopisto/muikku/statuses/e9594235bbdf47b58d1a61c8c3f05815a7c0b1e1"}}}}
{"actor":{"display_login":"houndci-bot"}}