{"action":"created","comment":{"url":"https://api.github.com/repos/pencilblue/pencilblue/pulls/comments/44457051","id":44457051,"diff_hunk":"@@ -35,6 +36,21 @@\n \t\t\t});\n \t\t};\n \n+\t\t$scope.generateUrl = function() {\n+\t\t\t$scope.article.url = $scope.article.headline.replace(/\\s+/g, '-').toLowerCase();\n+\t\t\tif($scope.article.url){\n+\t\t\t\t$scope.urlGenerated = true;\n+\t\t\t} else {","path":"plugins/pencilblue/templates/angular/admin/content/articles/article_form.html","position":16,"original_position":16,"commit_id":"00295efb1b7343b85455eeac539b65a5718f26d5","original_commit_id":"00295efb1b7343b85455eeac539b65a5718f26d5","user":{"login":"JahlomP","id":4746511,"avatar_url":"https://avatars.githubusercontent.com/u/4746511?v=3","gravatar_id":"","url":"https://api.github.com/users/JahlomP","html_url":"https://github.com/JahlomP","followers_url":"https://api.github.com/users/JahlomP/followers","following_url":"https://api.github.com/users/JahlomP/following{/other_user}","gists_url":"https://api.github.com/users/JahlomP/gists{/gist_id}","starred_url":"https://api.github.com/users/JahlomP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JahlomP/subscriptions","organizations_url":"https://api.github.com/users/JahlomP/orgs","repos_url":"https://api.github.com/users/JahlomP/repos","events_url":"https://api.github.com/users/JahlomP/events{/privacy}","received_events_url":"https://api.github.com/users/JahlomP/received_events","type":"User","site_admin":false},"body":"OK. Thanks.\n\nOn Tue, Nov 10, 2015 at 7:01 PM Blake Callens <notifications@github.com>\nwrote:\n\n> In\n> plugins/pencilblue/templates/angular/admin/content/articles/article_form.html\n> <https://github.com/pencilblue/pencilblue/pull/810#discussion_r44448770>:\n>\n> > @@ -35,6 +36,21 @@\n> >  \t\t\t});\n> >  \t\t};\n> >\n> > +\t\t$scope.generateUrl = function() {\n> > +\t\t\t$scope.article.url = $scope.article.headline.replace(/\\s+/g, '-').toLowerCase();\n> > +\t\t\tif($scope.article.url){\n> > +\t\t\t\t$scope.urlGenerated = true;\n> > +\t\t\t} else {\n>\n> if($scope.article.url && $scope.article.url.length)\n>\n> protects against both null and empty string\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/pencilblue/pencilblue/pull/810/files#r44448770>.\n>\n-- \nBest Rregards,\nPrecious Jahlom Agboado,\nwww.twitter.com/jahlomp\n+233 54 0915 108.\n","created_at":"2015-11-10T20:02:29Z","updated_at":"2015-11-10T20:02:29Z","html_url":"https://github.com/pencilblue/pencilblue/pull/810#discussion_r44457051","pull_request_url":"https://api.github.com/repos/pencilblue/pencilblue/pulls/810","_links":{"self":{"href":"https://api.github.com/repos/pencilblue/pencilblue/pulls/comments/44457051"},"html":{"href":"https://github.com/pencilblue/pencilblue/pull/810#discussion_r44457051"},"pull_request":{"href":"https://api.github.com/repos/pencilblue/pencilblue/pulls/810"}}},"pull_request":{"url":"https://api.github.com/repos/pencilblue/pencilblue/pulls/810","id":50040696,"html_url":"https://github.com/pencilblue/pencilblue/pull/810","diff_url":"https://github.com/pencilblue/pencilblue/pull/810.diff","patch_url":"https://github.com/pencilblue/pencilblue/pull/810.patch","issue_url":"https://api.github.com/repos/pencilblue/pencilblue/issues/810","number":810,"state":"open","locked":false,"title":"added functionality to generate article url which fixes #464","user":{"login":"JahlomP","id":4746511,"avatar_url":"https://avatars.githubusercontent.com/u/4746511?v=3","gravatar_id":"","url":"https://api.github.com/users/JahlomP","html_url":"https://github.com/JahlomP","followers_url":"https://api.github.com/users/JahlomP/followers","following_url":"https://api.github.com/users/JahlomP/following{/other_user}","gists_url":"https://api.github.com/users/JahlomP/gists{/gist_id}","starred_url":"https://api.github.com/users/JahlomP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JahlomP/subscriptions","organizations_url":"https://api.github.com/users/JahlomP/orgs","repos_url":"https://api.github.com/users/JahlomP/repos","events_url":"https://api.github.com/users/JahlomP/events{/privacy}","received_events_url":"https://api.github.com/users/JahlomP/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-07T17:31:52Z","updated_at":"2015-11-10T20:02:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d29ff63952350fc85358ac246cc2e143aaaeaa50","assignee":{"login":"blakecallens","id":39135,"avatar_url":"https://avatars.githubusercontent.com/u/39135?v=3","gravatar_id":"","url":"https://api.github.com/users/blakecallens","html_url":"https://github.com/blakecallens","followers_url":"https://api.github.com/users/blakecallens/followers","following_url":"https://api.github.com/users/blakecallens/following{/other_user}","gists_url":"https://api.github.com/users/blakecallens/gists{/gist_id}","starred_url":"https://api.github.com/users/blakecallens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakecallens/subscriptions","organizations_url":"https://api.github.com/users/blakecallens/orgs","repos_url":"https://api.github.com/users/blakecallens/repos","events_url":"https://api.github.com/users/blakecallens/events{/privacy}","received_events_url":"https://api.github.com/users/blakecallens/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/pencilblue/pencilblue/pulls/810/commits","review_comments_url":"https://api.github.com/repos/pencilblue/pencilblue/pulls/810/comments","review_comment_url":"https://api.github.com/repos/pencilblue/pencilblue/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pencilblue/pencilblue/issues/810/comments","statuses_url":"https://api.github.com/repos/pencilblue/pencilblue/statuses/00295efb1b7343b85455eeac539b65a5718f26d5","head":{"label":"JahlomP:artticle-url-gen","ref":"artticle-url-gen","sha":"00295efb1b7343b85455eeac539b65a5718f26d5","user":{"login":"JahlomP","id":4746511,"avatar_url":"https://avatars.githubusercontent.com/u/4746511?v=3","gravatar_id":"","url":"https://api.github.com/users/JahlomP","html_url":"https://github.com/JahlomP","followers_url":"https://api.github.com/users/JahlomP/followers","following_url":"https://api.github.com/users/JahlomP/following{/other_user}","gists_url":"https://api.github.com/users/JahlomP/gists{/gist_id}","starred_url":"https://api.github.com/users/JahlomP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JahlomP/subscriptions","organizations_url":"https://api.github.com/users/JahlomP/orgs","repos_url":"https://api.github.com/users/JahlomP/repos","events_url":"https://api.github.com/users/JahlomP/events{/privacy}","received_events_url":"https://api.github.com/users/JahlomP/received_events","type":"User","site_admin":false},"repo":{"id":45738383,"name":"pencilblue","full_name":"JahlomP/pencilblue","owner":{"login":"JahlomP","id":4746511,"avatar_url":"https://avatars.githubusercontent.com/u/4746511?v=3","gravatar_id":"","url":"https://api.github.com/users/JahlomP","html_url":"https://github.com/JahlomP","followers_url":"https://api.github.com/users/JahlomP/followers","following_url":"https://api.github.com/users/JahlomP/following{/other_user}","gists_url":"https://api.github.com/users/JahlomP/gists{/gist_id}","starred_url":"https://api.github.com/users/JahlomP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JahlomP/subscriptions","organizations_url":"https://api.github.com/users/JahlomP/orgs","repos_url":"https://api.github.com/users/JahlomP/repos","events_url":"https://api.github.com/users/JahlomP/events{/privacy}","received_events_url":"https://api.github.com/users/JahlomP/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JahlomP/pencilblue","description":"A full featured Node.js CMS and blogging platform (plugins, server cluster management, data-driven pages)","fork":true,"url":"https://api.github.com/repos/JahlomP/pencilblue","forks_url":"https://api.github.com/repos/JahlomP/pencilblue/forks","keys_url":"https://api.github.com/repos/JahlomP/pencilblue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JahlomP/pencilblue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JahlomP/pencilblue/teams","hooks_url":"https://api.github.com/repos/JahlomP/pencilblue/hooks","issue_events_url":"https://api.github.com/repos/JahlomP/pencilblue/issues/events{/number}","events_url":"https://api.github.com/repos/JahlomP/pencilblue/events","assignees_url":"https://api.github.com/repos/JahlomP/pencilblue/assignees{/user}","branches_url":"https://api.github.com/repos/JahlomP/pencilblue/branches{/branch}","tags_url":"https://api.github.com/repos/JahlomP/pencilblue/tags","blobs_url":"https://api.github.com/repos/JahlomP/pencilblue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JahlomP/pencilblue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JahlomP/pencilblue/git/refs{/sha}","trees_url":"https://api.github.com/repos/JahlomP/pencilblue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JahlomP/pencilblue/statuses/{sha}","languages_url":"https://api.github.com/repos/JahlomP/pencilblue/languages","stargazers_url":"https://api.github.com/repos/JahlomP/pencilblue/stargazers","contributors_url":"https://api.github.com/repos/JahlomP/pencilblue/contributors","subscribers_url":"https://api.github.com/repos/JahlomP/pencilblue/subscribers","subscription_url":"https://api.github.com/repos/JahlomP/pencilblue/subscription","commits_url":"https://api.github.com/repos/JahlomP/pencilblue/commits{/sha}","git_commits_url":"https://api.github.com/repos/JahlomP/pencilblue/git/commits{/sha}","comments_url":"https://api.github.com/repos/JahlomP/pencilblue/comments{/number}","issue_comment_url":"https://api.github.com/repos/JahlomP/pencilblue/issues/comments{/number}","contents_url":"https://api.github.com/repos/JahlomP/pencilblue/contents/{+path}","compare_url":"https://api.github.com/repos/JahlomP/pencilblue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JahlomP/pencilblue/merges","archive_url":"https://api.github.com/repos/JahlomP/pencilblue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JahlomP/pencilblue/downloads","issues_url":"https://api.github.com/repos/JahlomP/pencilblue/issues{/number}","pulls_url":"https://api.github.com/repos/JahlomP/pencilblue/pulls{/number}","milestones_url":"https://api.github.com/repos/JahlomP/pencilblue/milestones{/number}","notifications_url":"https://api.github.com/repos/JahlomP/pencilblue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JahlomP/pencilblue/labels{/name}","releases_url":"https://api.github.com/repos/JahlomP/pencilblue/releases{/id}","created_at":"2015-11-07T13:53:33Z","updated_at":"2015-11-07T13:53:36Z","pushed_at":"2015-11-07T18:14:04Z","git_url":"git://github.com/JahlomP/pencilblue.git","ssh_url":"git@github.com:JahlomP/pencilblue.git","clone_url":"https://github.com/JahlomP/pencilblue.git","svn_url":"https://github.com/JahlomP/pencilblue","homepage":"https://pencilblue.org","size":13717,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pencilblue:master","ref":"master","sha":"106b36957a597e673bded26b7783ce2438346b38","user":{"login":"pencilblue","id":6748264,"avatar_url":"https://avatars.githubusercontent.com/u/6748264?v=3","gravatar_id":"","url":"https://api.github.com/users/pencilblue","html_url":"https://github.com/pencilblue","followers_url":"https://api.github.com/users/pencilblue/followers","following_url":"https://api.github.com/users/pencilblue/following{/other_user}","gists_url":"https://api.github.com/users/pencilblue/gists{/gist_id}","starred_url":"https://api.github.com/users/pencilblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pencilblue/subscriptions","organizations_url":"https://api.github.com/users/pencilblue/orgs","repos_url":"https://api.github.com/users/pencilblue/repos","events_url":"https://api.github.com/users/pencilblue/events{/privacy}","received_events_url":"https://api.github.com/users/pencilblue/received_events","type":"Organization","site_admin":false},"repo":{"id":21303242,"name":"pencilblue","full_name":"pencilblue/pencilblue","owner":{"login":"pencilblue","id":6748264,"avatar_url":"https://avatars.githubusercontent.com/u/6748264?v=3","gravatar_id":"","url":"https://api.github.com/users/pencilblue","html_url":"https://github.com/pencilblue","followers_url":"https://api.github.com/users/pencilblue/followers","following_url":"https://api.github.com/users/pencilblue/following{/other_user}","gists_url":"https://api.github.com/users/pencilblue/gists{/gist_id}","starred_url":"https://api.github.com/users/pencilblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pencilblue/subscriptions","organizations_url":"https://api.github.com/users/pencilblue/orgs","repos_url":"https://api.github.com/users/pencilblue/repos","events_url":"https://api.github.com/users/pencilblue/events{/privacy}","received_events_url":"https://api.github.com/users/pencilblue/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pencilblue/pencilblue","description":"A full featured Node.js CMS and blogging platform (plugins, server cluster management, data-driven pages)","fork":false,"url":"https://api.github.com/repos/pencilblue/pencilblue","forks_url":"https://api.github.com/repos/pencilblue/pencilblue/forks","keys_url":"https://api.github.com/repos/pencilblue/pencilblue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pencilblue/pencilblue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pencilblue/pencilblue/teams","hooks_url":"https://api.github.com/repos/pencilblue/pencilblue/hooks","issue_events_url":"https://api.github.com/repos/pencilblue/pencilblue/issues/events{/number}","events_url":"https://api.github.com/repos/pencilblue/pencilblue/events","assignees_url":"https://api.github.com/repos/pencilblue/pencilblue/assignees{/user}","branches_url":"https://api.github.com/repos/pencilblue/pencilblue/branches{/branch}","tags_url":"https://api.github.com/repos/pencilblue/pencilblue/tags","blobs_url":"https://api.github.com/repos/pencilblue/pencilblue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pencilblue/pencilblue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pencilblue/pencilblue/git/refs{/sha}","trees_url":"https://api.github.com/repos/pencilblue/pencilblue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pencilblue/pencilblue/statuses/{sha}","languages_url":"https://api.github.com/repos/pencilblue/pencilblue/languages","stargazers_url":"https://api.github.com/repos/pencilblue/pencilblue/stargazers","contributors_url":"https://api.github.com/repos/pencilblue/pencilblue/contributors","subscribers_url":"https://api.github.com/repos/pencilblue/pencilblue/subscribers","subscription_url":"https://api.github.com/repos/pencilblue/pencilblue/subscription","commits_url":"https://api.github.com/repos/pencilblue/pencilblue/commits{/sha}","git_commits_url":"https://api.github.com/repos/pencilblue/pencilblue/git/commits{/sha}","comments_url":"https://api.github.com/repos/pencilblue/pencilblue/comments{/number}","issue_comment_url":"https://api.github.com/repos/pencilblue/pencilblue/issues/comments{/number}","contents_url":"https://api.github.com/repos/pencilblue/pencilblue/contents/{+path}","compare_url":"https://api.github.com/repos/pencilblue/pencilblue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pencilblue/pencilblue/merges","archive_url":"https://api.github.com/repos/pencilblue/pencilblue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pencilblue/pencilblue/downloads","issues_url":"https://api.github.com/repos/pencilblue/pencilblue/issues{/number}","pulls_url":"https://api.github.com/repos/pencilblue/pencilblue/pulls{/number}","milestones_url":"https://api.github.com/repos/pencilblue/pencilblue/milestones{/number}","notifications_url":"https://api.github.com/repos/pencilblue/pencilblue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pencilblue/pencilblue/labels{/name}","releases_url":"https://api.github.com/repos/pencilblue/pencilblue/releases{/id}","created_at":"2014-06-28T13:28:48Z","updated_at":"2015-11-10T18:44:14Z","pushed_at":"2015-11-10T16:38:07Z","git_url":"git://github.com/pencilblue/pencilblue.git","ssh_url":"git@github.com:pencilblue/pencilblue.git","clone_url":"https://github.com/pencilblue/pencilblue.git","svn_url":"https://github.com/pencilblue/pencilblue","homepage":"https://pencilblue.org","size":19345,"stargazers_count":1090,"watchers_count":1090,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":182,"mirror_url":null,"open_issues_count":36,"forks":182,"open_issues":36,"watchers":1090,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pencilblue/pencilblue/pulls/810"},"html":{"href":"https://github.com/pencilblue/pencilblue/pull/810"},"issue":{"href":"https://api.github.com/repos/pencilblue/pencilblue/issues/810"},"comments":{"href":"https://api.github.com/repos/pencilblue/pencilblue/issues/810/comments"},"review_comments":{"href":"https://api.github.com/repos/pencilblue/pencilblue/pulls/810/comments"},"review_comment":{"href":"https://api.github.com/repos/pencilblue/pencilblue/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pencilblue/pencilblue/pulls/810/commits"},"statuses":{"href":"https://api.github.com/repos/pencilblue/pencilblue/statuses/00295efb1b7343b85455eeac539b65a5718f26d5"}}}}