{"action":"created","comment":{"url":"https://api.github.com/repos/maxibarros/Odontologia/pulls/comments/46098678","id":46098678,"diff_hunk":"@@ -11,31 +11,39 @@ module.controller('MateriaCtrl_Edit', ['$scope', '$rootScope', 'MateriaSrv', '$s\n         saved: false\n     }\n \n-    $scope.save = function()\n-    {\n+    $scope.save = function () {\n //        notification.showWidget();\n         service.save($scope.materia)\n-            .success(function(data) {\n+            .success(function (data) {\n                 $scope.data.persistedOperation = true;\n                 $scope.data.disableFields = true;\n                 $scope.data.saved = true;\n-//                notification.hideWidget();\n-//                notification.good(\"Cambios guardados con éxito. \", function(){});\n+                showToast(\"Materia \" + $scope.materia.nombre + \" modificada con éxito!\");\n+                $scope.goIndex();\n             })\n             .error(function (data) {\n-//                notification.hideWidget();\n-                notification.badArray(data, function() {});\n+                showToast(\"Error al modificar \" + $scope.materia.nombre);\n             })\n     }\n \n-    $scope.goIndex = function() {\n+    $scope.goIndex = function () {\n         $state.go('^.index', {execQuery: false, execQuerySamePage: $scope.data.persistedOperation});\n     }\n \n-    $scope.reload = function() {\n+    $scope.reload = function () {\n         $state.go($state.current, {}, {reload: true});\n     }\n \n+\n+    function showToast(mensaje) {","path":"web/src/main/webapp/resources/scripts/app/materia/materiaEditCtrl.js","position":46,"original_position":46,"commit_id":"eeb41475f23ff7cd94a9df677ab780848e3a05a2","original_commit_id":"eeb41475f23ff7cd94a9df677ab780848e3a05a2","user":{"login":"enzopuntobiancato","id":11449316,"avatar_url":"https://avatars.githubusercontent.com/u/11449316?v=3","gravatar_id":"","url":"https://api.github.com/users/enzopuntobiancato","html_url":"https://github.com/enzopuntobiancato","followers_url":"https://api.github.com/users/enzopuntobiancato/followers","following_url":"https://api.github.com/users/enzopuntobiancato/following{/other_user}","gists_url":"https://api.github.com/users/enzopuntobiancato/gists{/gist_id}","starred_url":"https://api.github.com/users/enzopuntobiancato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enzopuntobiancato/subscriptions","organizations_url":"https://api.github.com/users/enzopuntobiancato/orgs","repos_url":"https://api.github.com/users/enzopuntobiancato/repos","events_url":"https://api.github.com/users/enzopuntobiancato/events{/privacy}","received_events_url":"https://api.github.com/users/enzopuntobiancato/received_events","type":"User","site_admin":false},"body":"podemos meter esto en algun lugar general para no tener que declararlo siempre? fijate en services.js ahi habia hecho algo asi yo pero con bootstrap. habia hecho un msj de exito, un msj de error, uno de advertencia. ","created_at":"2015-11-29T21:58:29Z","updated_at":"2015-11-29T21:58:29Z","html_url":"https://github.com/maxibarros/Odontologia/pull/2#discussion_r46098678","pull_request_url":"https://api.github.com/repos/maxibarros/Odontologia/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/maxibarros/Odontologia/pulls/comments/46098678"},"html":{"href":"https://github.com/maxibarros/Odontologia/pull/2#discussion_r46098678"},"pull_request":{"href":"https://api.github.com/repos/maxibarros/Odontologia/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/maxibarros/Odontologia/pulls/2","id":51737852,"html_url":"https://github.com/maxibarros/Odontologia/pull/2","diff_url":"https://github.com/maxibarros/Odontologia/pull/2.diff","patch_url":"https://github.com/maxibarros/Odontologia/pull/2.patch","issue_url":"https://api.github.com/repos/maxibarros/Odontologia/issues/2","number":2,"state":"open","locked":false,"title":"integracion de angular material. cambios en abm para usar angular mat…","user":{"login":"ilopeza","id":10068013,"avatar_url":"https://avatars.githubusercontent.com/u/10068013?v=3","gravatar_id":"","url":"https://api.github.com/users/ilopeza","html_url":"https://github.com/ilopeza","followers_url":"https://api.github.com/users/ilopeza/followers","following_url":"https://api.github.com/users/ilopeza/following{/other_user}","gists_url":"https://api.github.com/users/ilopeza/gists{/gist_id}","starred_url":"https://api.github.com/users/ilopeza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilopeza/subscriptions","organizations_url":"https://api.github.com/users/ilopeza/orgs","repos_url":"https://api.github.com/users/ilopeza/repos","events_url":"https://api.github.com/users/ilopeza/events{/privacy}","received_events_url":"https://api.github.com/users/ilopeza/received_events","type":"User","site_admin":false},"body":"…erial\r\n\r\ncambios para integrar angular material. ","created_at":"2015-11-25T00:32:08Z","updated_at":"2015-11-29T21:58:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a71c5b63c8a1f85975bfc5ff0edcbfe1d425b835","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/maxibarros/Odontologia/pulls/2/commits","review_comments_url":"https://api.github.com/repos/maxibarros/Odontologia/pulls/2/comments","review_comment_url":"https://api.github.com/repos/maxibarros/Odontologia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/maxibarros/Odontologia/issues/2/comments","statuses_url":"https://api.github.com/repos/maxibarros/Odontologia/statuses/eeb41475f23ff7cd94a9df677ab780848e3a05a2","head":{"label":"maxibarros:angular_material","ref":"angular_material","sha":"eeb41475f23ff7cd94a9df677ab780848e3a05a2","user":{"login":"maxibarros","id":11449345,"avatar_url":"https://avatars.githubusercontent.com/u/11449345?v=3","gravatar_id":"","url":"https://api.github.com/users/maxibarros","html_url":"https://github.com/maxibarros","followers_url":"https://api.github.com/users/maxibarros/followers","following_url":"https://api.github.com/users/maxibarros/following{/other_user}","gists_url":"https://api.github.com/users/maxibarros/gists{/gist_id}","starred_url":"https://api.github.com/users/maxibarros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxibarros/subscriptions","organizations_url":"https://api.github.com/users/maxibarros/orgs","repos_url":"https://api.github.com/users/maxibarros/repos","events_url":"https://api.github.com/users/maxibarros/events{/privacy}","received_events_url":"https://api.github.com/users/maxibarros/received_events","type":"User","site_admin":false},"repo":{"id":32224555,"name":"Odontologia","full_name":"maxibarros/Odontologia","owner":{"login":"maxibarros","id":11449345,"avatar_url":"https://avatars.githubusercontent.com/u/11449345?v=3","gravatar_id":"","url":"https://api.github.com/users/maxibarros","html_url":"https://github.com/maxibarros","followers_url":"https://api.github.com/users/maxibarros/followers","following_url":"https://api.github.com/users/maxibarros/following{/other_user}","gists_url":"https://api.github.com/users/maxibarros/gists{/gist_id}","starred_url":"https://api.github.com/users/maxibarros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxibarros/subscriptions","organizations_url":"https://api.github.com/users/maxibarros/orgs","repos_url":"https://api.github.com/users/maxibarros/repos","events_url":"https://api.github.com/users/maxibarros/events{/privacy}","received_events_url":"https://api.github.com/users/maxibarros/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maxibarros/Odontologia","description":"","fork":false,"url":"https://api.github.com/repos/maxibarros/Odontologia","forks_url":"https://api.github.com/repos/maxibarros/Odontologia/forks","keys_url":"https://api.github.com/repos/maxibarros/Odontologia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maxibarros/Odontologia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maxibarros/Odontologia/teams","hooks_url":"https://api.github.com/repos/maxibarros/Odontologia/hooks","issue_events_url":"https://api.github.com/repos/maxibarros/Odontologia/issues/events{/number}","events_url":"https://api.github.com/repos/maxibarros/Odontologia/events","assignees_url":"https://api.github.com/repos/maxibarros/Odontologia/assignees{/user}","branches_url":"https://api.github.com/repos/maxibarros/Odontologia/branches{/branch}","tags_url":"https://api.github.com/repos/maxibarros/Odontologia/tags","blobs_url":"https://api.github.com/repos/maxibarros/Odontologia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maxibarros/Odontologia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maxibarros/Odontologia/git/refs{/sha}","trees_url":"https://api.github.com/repos/maxibarros/Odontologia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maxibarros/Odontologia/statuses/{sha}","languages_url":"https://api.github.com/repos/maxibarros/Odontologia/languages","stargazers_url":"https://api.github.com/repos/maxibarros/Odontologia/stargazers","contributors_url":"https://api.github.com/repos/maxibarros/Odontologia/contributors","subscribers_url":"https://api.github.com/repos/maxibarros/Odontologia/subscribers","subscription_url":"https://api.github.com/repos/maxibarros/Odontologia/subscription","commits_url":"https://api.github.com/repos/maxibarros/Odontologia/commits{/sha}","git_commits_url":"https://api.github.com/repos/maxibarros/Odontologia/git/commits{/sha}","comments_url":"https://api.github.com/repos/maxibarros/Odontologia/comments{/number}","issue_comment_url":"https://api.github.com/repos/maxibarros/Odontologia/issues/comments{/number}","contents_url":"https://api.github.com/repos/maxibarros/Odontologia/contents/{+path}","compare_url":"https://api.github.com/repos/maxibarros/Odontologia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maxibarros/Odontologia/merges","archive_url":"https://api.github.com/repos/maxibarros/Odontologia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maxibarros/Odontologia/downloads","issues_url":"https://api.github.com/repos/maxibarros/Odontologia/issues{/number}","pulls_url":"https://api.github.com/repos/maxibarros/Odontologia/pulls{/number}","milestones_url":"https://api.github.com/repos/maxibarros/Odontologia/milestones{/number}","notifications_url":"https://api.github.com/repos/maxibarros/Odontologia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maxibarros/Odontologia/labels{/name}","releases_url":"https://api.github.com/repos/maxibarros/Odontologia/releases{/id}","created_at":"2015-03-14T17:52:14Z","updated_at":"2015-06-20T23:48:08Z","pushed_at":"2015-11-25T00:32:08Z","git_url":"git://github.com/maxibarros/Odontologia.git","ssh_url":"git@github.com:maxibarros/Odontologia.git","clone_url":"https://github.com/maxibarros/Odontologia.git","svn_url":"https://github.com/maxibarros/Odontologia","homepage":null,"size":8307,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"maxibarros:master","ref":"master","sha":"47d252ded6eecaf9587ac42ea230af5591165776","user":{"login":"maxibarros","id":11449345,"avatar_url":"https://avatars.githubusercontent.com/u/11449345?v=3","gravatar_id":"","url":"https://api.github.com/users/maxibarros","html_url":"https://github.com/maxibarros","followers_url":"https://api.github.com/users/maxibarros/followers","following_url":"https://api.github.com/users/maxibarros/following{/other_user}","gists_url":"https://api.github.com/users/maxibarros/gists{/gist_id}","starred_url":"https://api.github.com/users/maxibarros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxibarros/subscriptions","organizations_url":"https://api.github.com/users/maxibarros/orgs","repos_url":"https://api.github.com/users/maxibarros/repos","events_url":"https://api.github.com/users/maxibarros/events{/privacy}","received_events_url":"https://api.github.com/users/maxibarros/received_events","type":"User","site_admin":false},"repo":{"id":32224555,"name":"Odontologia","full_name":"maxibarros/Odontologia","owner":{"login":"maxibarros","id":11449345,"avatar_url":"https://avatars.githubusercontent.com/u/11449345?v=3","gravatar_id":"","url":"https://api.github.com/users/maxibarros","html_url":"https://github.com/maxibarros","followers_url":"https://api.github.com/users/maxibarros/followers","following_url":"https://api.github.com/users/maxibarros/following{/other_user}","gists_url":"https://api.github.com/users/maxibarros/gists{/gist_id}","starred_url":"https://api.github.com/users/maxibarros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxibarros/subscriptions","organizations_url":"https://api.github.com/users/maxibarros/orgs","repos_url":"https://api.github.com/users/maxibarros/repos","events_url":"https://api.github.com/users/maxibarros/events{/privacy}","received_events_url":"https://api.github.com/users/maxibarros/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maxibarros/Odontologia","description":"","fork":false,"url":"https://api.github.com/repos/maxibarros/Odontologia","forks_url":"https://api.github.com/repos/maxibarros/Odontologia/forks","keys_url":"https://api.github.com/repos/maxibarros/Odontologia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maxibarros/Odontologia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maxibarros/Odontologia/teams","hooks_url":"https://api.github.com/repos/maxibarros/Odontologia/hooks","issue_events_url":"https://api.github.com/repos/maxibarros/Odontologia/issues/events{/number}","events_url":"https://api.github.com/repos/maxibarros/Odontologia/events","assignees_url":"https://api.github.com/repos/maxibarros/Odontologia/assignees{/user}","branches_url":"https://api.github.com/repos/maxibarros/Odontologia/branches{/branch}","tags_url":"https://api.github.com/repos/maxibarros/Odontologia/tags","blobs_url":"https://api.github.com/repos/maxibarros/Odontologia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maxibarros/Odontologia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maxibarros/Odontologia/git/refs{/sha}","trees_url":"https://api.github.com/repos/maxibarros/Odontologia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maxibarros/Odontologia/statuses/{sha}","languages_url":"https://api.github.com/repos/maxibarros/Odontologia/languages","stargazers_url":"https://api.github.com/repos/maxibarros/Odontologia/stargazers","contributors_url":"https://api.github.com/repos/maxibarros/Odontologia/contributors","subscribers_url":"https://api.github.com/repos/maxibarros/Odontologia/subscribers","subscription_url":"https://api.github.com/repos/maxibarros/Odontologia/subscription","commits_url":"https://api.github.com/repos/maxibarros/Odontologia/commits{/sha}","git_commits_url":"https://api.github.com/repos/maxibarros/Odontologia/git/commits{/sha}","comments_url":"https://api.github.com/repos/maxibarros/Odontologia/comments{/number}","issue_comment_url":"https://api.github.com/repos/maxibarros/Odontologia/issues/comments{/number}","contents_url":"https://api.github.com/repos/maxibarros/Odontologia/contents/{+path}","compare_url":"https://api.github.com/repos/maxibarros/Odontologia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maxibarros/Odontologia/merges","archive_url":"https://api.github.com/repos/maxibarros/Odontologia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maxibarros/Odontologia/downloads","issues_url":"https://api.github.com/repos/maxibarros/Odontologia/issues{/number}","pulls_url":"https://api.github.com/repos/maxibarros/Odontologia/pulls{/number}","milestones_url":"https://api.github.com/repos/maxibarros/Odontologia/milestones{/number}","notifications_url":"https://api.github.com/repos/maxibarros/Odontologia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maxibarros/Odontologia/labels{/name}","releases_url":"https://api.github.com/repos/maxibarros/Odontologia/releases{/id}","created_at":"2015-03-14T17:52:14Z","updated_at":"2015-06-20T23:48:08Z","pushed_at":"2015-11-25T00:32:08Z","git_url":"git://github.com/maxibarros/Odontologia.git","ssh_url":"git@github.com:maxibarros/Odontologia.git","clone_url":"https://github.com/maxibarros/Odontologia.git","svn_url":"https://github.com/maxibarros/Odontologia","homepage":null,"size":8307,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/maxibarros/Odontologia/pulls/2"},"html":{"href":"https://github.com/maxibarros/Odontologia/pull/2"},"issue":{"href":"https://api.github.com/repos/maxibarros/Odontologia/issues/2"},"comments":{"href":"https://api.github.com/repos/maxibarros/Odontologia/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/maxibarros/Odontologia/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/maxibarros/Odontologia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/maxibarros/Odontologia/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/maxibarros/Odontologia/statuses/eeb41475f23ff7cd94a9df677ab780848e3a05a2"}}}}