{"action":"created","comment":{"url":"https://api.github.com/repos/blinkmobile/bic-jqm/pulls/comments/34744816","id":34744816,"diff_hunk":"@@ -0,0 +1,173 @@\n+define(function (require) {\n+  'use strict';\n+\n+  // foreign modules\n+\n+  var PendingQueue;\n+  var $ = require('jquery');\n+  var _ = require('underscore');\n+  var Mustache = require('mustache');\n+  var Backbone = require('backbone');\n+\n+  // local modules\n+\n+  // ...\n+\n+  // templates\n+  var Template = require('text!bic/template/form/pending.mustache');\n+  var clearConfirmationTemplate = require('text!bic/template/form/pending-clear-confirmation-popup.mustache');\n+\n+  // utils\n+  var uiTools = require('bic/lib/ui-tools');\n+  var MODEL_STATUS = require('bic/enum-model-status');\n+\n+  // this module\n+\n+  PendingQueue = Backbone.View.extend({\n+\n+    events: {\n+      'click .clearPendingItem': 'clearPendingItem',\n+      'click #submitPendingItems': 'submitPendingItems',\n+      'click #clearPendingItems': 'clearPendingItems',\n+      'click #clearPendingItemsConfirmation': 'clearPendingItemsConfirmation'\n+    },","path":"src/bic/view/form/pending.js","position":33,"original_position":33,"commit_id":"f12075ce42d311587e602d7d61e3165c41036e74","original_commit_id":"f12075ce42d311587e602d7d61e3165c41036e74","user":{"login":"simonmarklar","id":2966718,"avatar_url":"https://avatars.githubusercontent.com/u/2966718?v=3","gravatar_id":"","url":"https://api.github.com/users/simonmarklar","html_url":"https://github.com/simonmarklar","followers_url":"https://api.github.com/users/simonmarklar/followers","following_url":"https://api.github.com/users/simonmarklar/following{/other_user}","gists_url":"https://api.github.com/users/simonmarklar/gists{/gist_id}","starred_url":"https://api.github.com/users/simonmarklar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonmarklar/subscriptions","organizations_url":"https://api.github.com/users/simonmarklar/orgs","repos_url":"https://api.github.com/users/simonmarklar/repos","events_url":"https://api.github.com/users/simonmarklar/events{/privacy}","received_events_url":"https://api.github.com/users/simonmarklar/received_events","type":"User","site_admin":false},"body":"we changed the structure of event selector name to `[data-onevent=\"functionbToCall\"]` eg `[data-onclick=\"clearPendingItem\"]`, might as well update this while refactoring :)","created_at":"2015-07-16T00:17:10Z","updated_at":"2015-07-16T00:17:10Z","html_url":"https://github.com/blinkmobile/bic-jqm/pull/25#discussion_r34744816","pull_request_url":"https://api.github.com/repos/blinkmobile/bic-jqm/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/blinkmobile/bic-jqm/pulls/comments/34744816"},"html":{"href":"https://github.com/blinkmobile/bic-jqm/pull/25#discussion_r34744816"},"pull_request":{"href":"https://api.github.com/repos/blinkmobile/bic-jqm/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/blinkmobile/bic-jqm/pulls/25","id":39885045,"html_url":"https://github.com/blinkmobile/bic-jqm/pull/25","diff_url":"https://github.com/blinkmobile/bic-jqm/pull/25.diff","patch_url":"https://github.com/blinkmobile/bic-jqm/pull/25.patch","issue_url":"https://api.github.com/repos/blinkmobile/bic-jqm/issues/25","number":25,"state":"open","locked":false,"title":"FORMS-188 # refactor Pending queue","user":{"login":"ashishtilara","id":1509613,"avatar_url":"https://avatars.githubusercontent.com/u/1509613?v=3","gravatar_id":"","url":"https://api.github.com/users/ashishtilara","html_url":"https://github.com/ashishtilara","followers_url":"https://api.github.com/users/ashishtilara/followers","following_url":"https://api.github.com/users/ashishtilara/following{/other_user}","gists_url":"https://api.github.com/users/ashishtilara/gists{/gist_id}","starred_url":"https://api.github.com/users/ashishtilara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashishtilara/subscriptions","organizations_url":"https://api.github.com/users/ashishtilara/orgs","repos_url":"https://api.github.com/users/ashishtilara/repos","events_url":"https://api.github.com/users/ashishtilara/events{/privacy}","received_events_url":"https://api.github.com/users/ashishtilara/received_events","type":"User","site_admin":false},"body":"- model-application: Extendable pending-queue view placeholder\r\n- moved pending queue related moustache templates in template folder\r\n- view/form/pending: split pending queue view specific functions from view-interaction to separate view class\r\n- added tests in view-interaction that confirms preparePendingQueueSubView() functions correctly\r\n-- and picks correct view\r\n- md file that shows what variables are available for pending queue default view","created_at":"2015-07-14T06:21:42Z","updated_at":"2015-07-16T00:17:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"93e3eb4be01542864a4f90ba8fea5e62c69baaa5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/blinkmobile/bic-jqm/pulls/25/commits","review_comments_url":"https://api.github.com/repos/blinkmobile/bic-jqm/pulls/25/comments","review_comment_url":"https://api.github.com/repos/blinkmobile/bic-jqm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/blinkmobile/bic-jqm/issues/25/comments","statuses_url":"https://api.github.com/repos/blinkmobile/bic-jqm/statuses/f12075ce42d311587e602d7d61e3165c41036e74","head":{"label":"blinkmobile:feature/BIC-188","ref":"feature/BIC-188","sha":"f12075ce42d311587e602d7d61e3165c41036e74","user":{"login":"blinkmobile","id":2390706,"avatar_url":"https://avatars.githubusercontent.com/u/2390706?v=3","gravatar_id":"","url":"https://api.github.com/users/blinkmobile","html_url":"https://github.com/blinkmobile","followers_url":"https://api.github.com/users/blinkmobile/followers","following_url":"https://api.github.com/users/blinkmobile/following{/other_user}","gists_url":"https://api.github.com/users/blinkmobile/gists{/gist_id}","starred_url":"https://api.github.com/users/blinkmobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blinkmobile/subscriptions","organizations_url":"https://api.github.com/users/blinkmobile/orgs","repos_url":"https://api.github.com/users/blinkmobile/repos","events_url":"https://api.github.com/users/blinkmobile/events{/privacy}","received_events_url":"https://api.github.com/users/blinkmobile/received_events","type":"Organization","site_admin":false},"repo":{"id":17118934,"name":"bic-jqm","full_name":"blinkmobile/bic-jqm","owner":{"login":"blinkmobile","id":2390706,"avatar_url":"https://avatars.githubusercontent.com/u/2390706?v=3","gravatar_id":"","url":"https://api.github.com/users/blinkmobile","html_url":"https://github.com/blinkmobile","followers_url":"https://api.github.com/users/blinkmobile/followers","following_url":"https://api.github.com/users/blinkmobile/following{/other_user}","gists_url":"https://api.github.com/users/blinkmobile/gists{/gist_id}","starred_url":"https://api.github.com/users/blinkmobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blinkmobile/subscriptions","organizations_url":"https://api.github.com/users/blinkmobile/orgs","repos_url":"https://api.github.com/users/blinkmobile/repos","events_url":"https://api.github.com/users/blinkmobile/events{/privacy}","received_events_url":"https://api.github.com/users/blinkmobile/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/blinkmobile/bic-jqm","description":"A Backbone + jQuery Mobile implementation of an Intelligent Client","fork":false,"url":"https://api.github.com/repos/blinkmobile/bic-jqm","forks_url":"https://api.github.com/repos/blinkmobile/bic-jqm/forks","keys_url":"https://api.github.com/repos/blinkmobile/bic-jqm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blinkmobile/bic-jqm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blinkmobile/bic-jqm/teams","hooks_url":"https://api.github.com/repos/blinkmobile/bic-jqm/hooks","issue_events_url":"https://api.github.com/repos/blinkmobile/bic-jqm/issues/events{/number}","events_url":"https://api.github.com/repos/blinkmobile/bic-jqm/events","assignees_url":"https://api.github.com/repos/blinkmobile/bic-jqm/assignees{/user}","branches_url":"https://api.github.com/repos/blinkmobile/bic-jqm/branches{/branch}","tags_url":"https://api.github.com/repos/blinkmobile/bic-jqm/tags","blobs_url":"https://api.github.com/repos/blinkmobile/bic-jqm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blinkmobile/bic-jqm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blinkmobile/bic-jqm/git/refs{/sha}","trees_url":"https://api.github.com/repos/blinkmobile/bic-jqm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blinkmobile/bic-jqm/statuses/{sha}","languages_url":"https://api.github.com/repos/blinkmobile/bic-jqm/languages","stargazers_url":"https://api.github.com/repos/blinkmobile/bic-jqm/stargazers","contributors_url":"https://api.github.com/repos/blinkmobile/bic-jqm/contributors","subscribers_url":"https://api.github.com/repos/blinkmobile/bic-jqm/subscribers","subscription_url":"https://api.github.com/repos/blinkmobile/bic-jqm/subscription","commits_url":"https://api.github.com/repos/blinkmobile/bic-jqm/commits{/sha}","git_commits_url":"https://api.github.com/repos/blinkmobile/bic-jqm/git/commits{/sha}","comments_url":"https://api.github.com/repos/blinkmobile/bic-jqm/comments{/number}","issue_comment_url":"https://api.github.com/repos/blinkmobile/bic-jqm/issues/comments{/number}","contents_url":"https://api.github.com/repos/blinkmobile/bic-jqm/contents/{+path}","compare_url":"https://api.github.com/repos/blinkmobile/bic-jqm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blinkmobile/bic-jqm/merges","archive_url":"https://api.github.com/repos/blinkmobile/bic-jqm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blinkmobile/bic-jqm/downloads","issues_url":"https://api.github.com/repos/blinkmobile/bic-jqm/issues{/number}","pulls_url":"https://api.github.com/repos/blinkmobile/bic-jqm/pulls{/number}","milestones_url":"https://api.github.com/repos/blinkmobile/bic-jqm/milestones{/number}","notifications_url":"https://api.github.com/repos/blinkmobile/bic-jqm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blinkmobile/bic-jqm/labels{/name}","releases_url":"https://api.github.com/repos/blinkmobile/bic-jqm/releases{/id}","created_at":"2014-02-23T22:40:04Z","updated_at":"2015-06-22T02:53:52Z","pushed_at":"2015-07-14T06:21:43Z","git_url":"git://github.com/blinkmobile/bic-jqm.git","ssh_url":"git@github.com:blinkmobile/bic-jqm.git","clone_url":"https://github.com/blinkmobile/bic-jqm.git","svn_url":"https://github.com/blinkmobile/bic-jqm","homepage":null,"size":3003,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"develop"}},"base":{"label":"blinkmobile:develop","ref":"develop","sha":"c07c61c6e6b1e742ade9c825cb89c8d822001ced","user":{"login":"blinkmobile","id":2390706,"avatar_url":"https://avatars.githubusercontent.com/u/2390706?v=3","gravatar_id":"","url":"https://api.github.com/users/blinkmobile","html_url":"https://github.com/blinkmobile","followers_url":"https://api.github.com/users/blinkmobile/followers","following_url":"https://api.github.com/users/blinkmobile/following{/other_user}","gists_url":"https://api.github.com/users/blinkmobile/gists{/gist_id}","starred_url":"https://api.github.com/users/blinkmobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blinkmobile/subscriptions","organizations_url":"https://api.github.com/users/blinkmobile/orgs","repos_url":"https://api.github.com/users/blinkmobile/repos","events_url":"https://api.github.com/users/blinkmobile/events{/privacy}","received_events_url":"https://api.github.com/users/blinkmobile/received_events","type":"Organization","site_admin":false},"repo":{"id":17118934,"name":"bic-jqm","full_name":"blinkmobile/bic-jqm","owner":{"login":"blinkmobile","id":2390706,"avatar_url":"https://avatars.githubusercontent.com/u/2390706?v=3","gravatar_id":"","url":"https://api.github.com/users/blinkmobile","html_url":"https://github.com/blinkmobile","followers_url":"https://api.github.com/users/blinkmobile/followers","following_url":"https://api.github.com/users/blinkmobile/following{/other_user}","gists_url":"https://api.github.com/users/blinkmobile/gists{/gist_id}","starred_url":"https://api.github.com/users/blinkmobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blinkmobile/subscriptions","organizations_url":"https://api.github.com/users/blinkmobile/orgs","repos_url":"https://api.github.com/users/blinkmobile/repos","events_url":"https://api.github.com/users/blinkmobile/events{/privacy}","received_events_url":"https://api.github.com/users/blinkmobile/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/blinkmobile/bic-jqm","description":"A Backbone + jQuery Mobile implementation of an Intelligent Client","fork":false,"url":"https://api.github.com/repos/blinkmobile/bic-jqm","forks_url":"https://api.github.com/repos/blinkmobile/bic-jqm/forks","keys_url":"https://api.github.com/repos/blinkmobile/bic-jqm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blinkmobile/bic-jqm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blinkmobile/bic-jqm/teams","hooks_url":"https://api.github.com/repos/blinkmobile/bic-jqm/hooks","issue_events_url":"https://api.github.com/repos/blinkmobile/bic-jqm/issues/events{/number}","events_url":"https://api.github.com/repos/blinkmobile/bic-jqm/events","assignees_url":"https://api.github.com/repos/blinkmobile/bic-jqm/assignees{/user}","branches_url":"https://api.github.com/repos/blinkmobile/bic-jqm/branches{/branch}","tags_url":"https://api.github.com/repos/blinkmobile/bic-jqm/tags","blobs_url":"https://api.github.com/repos/blinkmobile/bic-jqm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blinkmobile/bic-jqm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blinkmobile/bic-jqm/git/refs{/sha}","trees_url":"https://api.github.com/repos/blinkmobile/bic-jqm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blinkmobile/bic-jqm/statuses/{sha}","languages_url":"https://api.github.com/repos/blinkmobile/bic-jqm/languages","stargazers_url":"https://api.github.com/repos/blinkmobile/bic-jqm/stargazers","contributors_url":"https://api.github.com/repos/blinkmobile/bic-jqm/contributors","subscribers_url":"https://api.github.com/repos/blinkmobile/bic-jqm/subscribers","subscription_url":"https://api.github.com/repos/blinkmobile/bic-jqm/subscription","commits_url":"https://api.github.com/repos/blinkmobile/bic-jqm/commits{/sha}","git_commits_url":"https://api.github.com/repos/blinkmobile/bic-jqm/git/commits{/sha}","comments_url":"https://api.github.com/repos/blinkmobile/bic-jqm/comments{/number}","issue_comment_url":"https://api.github.com/repos/blinkmobile/bic-jqm/issues/comments{/number}","contents_url":"https://api.github.com/repos/blinkmobile/bic-jqm/contents/{+path}","compare_url":"https://api.github.com/repos/blinkmobile/bic-jqm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blinkmobile/bic-jqm/merges","archive_url":"https://api.github.com/repos/blinkmobile/bic-jqm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blinkmobile/bic-jqm/downloads","issues_url":"https://api.github.com/repos/blinkmobile/bic-jqm/issues{/number}","pulls_url":"https://api.github.com/repos/blinkmobile/bic-jqm/pulls{/number}","milestones_url":"https://api.github.com/repos/blinkmobile/bic-jqm/milestones{/number}","notifications_url":"https://api.github.com/repos/blinkmobile/bic-jqm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blinkmobile/bic-jqm/labels{/name}","releases_url":"https://api.github.com/repos/blinkmobile/bic-jqm/releases{/id}","created_at":"2014-02-23T22:40:04Z","updated_at":"2015-06-22T02:53:52Z","pushed_at":"2015-07-14T06:21:43Z","git_url":"git://github.com/blinkmobile/bic-jqm.git","ssh_url":"git@github.com:blinkmobile/bic-jqm.git","clone_url":"https://github.com/blinkmobile/bic-jqm.git","svn_url":"https://github.com/blinkmobile/bic-jqm","homepage":null,"size":3003,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/blinkmobile/bic-jqm/pulls/25"},"html":{"href":"https://github.com/blinkmobile/bic-jqm/pull/25"},"issue":{"href":"https://api.github.com/repos/blinkmobile/bic-jqm/issues/25"},"comments":{"href":"https://api.github.com/repos/blinkmobile/bic-jqm/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/blinkmobile/bic-jqm/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/blinkmobile/bic-jqm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/blinkmobile/bic-jqm/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/blinkmobile/bic-jqm/statuses/f12075ce42d311587e602d7d61e3165c41036e74"}}}}