{"comment":{"url":"https://api.github.com/repos/ashley1982/gv-dialer/comments/13651717","html_url":"https://github.com/ashley1982/gv-dialer/commit/e0f37c455487d603d23651156dc632a277368e30#commitcomment-13651717","id":13651717,"user":{"login":"ashley1982","id":15022949,"avatar_url":"https://avatars.githubusercontent.com/u/15022949?v=3","gravatar_id":"","url":"https://api.github.com/users/ashley1982","html_url":"https://github.com/ashley1982","followers_url":"https://api.github.com/users/ashley1982/followers","following_url":"https://api.github.com/users/ashley1982/following{/other_user}","gists_url":"https://api.github.com/users/ashley1982/gists{/gist_id}","starred_url":"https://api.github.com/users/ashley1982/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashley1982/subscriptions","organizations_url":"https://api.github.com/users/ashley1982/orgs","repos_url":"https://api.github.com/users/ashley1982/repos","events_url":"https://api.github.com/users/ashley1982/events{/privacy}","received_events_url":"https://api.github.com/users/ashley1982/received_events","type":"User","site_admin":false},"position":100,"line":100,"path":"gv_dialer.css","commit_id":"e0f37c455487d603d23651156dc632a277368e30","created_at":"2015-10-07T23:14:12Z","updated_at":"2015-10-07T23:14:12Z","body":"               \r\n                this.cancelCall = function(onSuccess, onError){\r\n                        var url = InboxManager.gvData.baseUrl + '/call/cancel/';\r\n                        var data = {\r\n                                '_rnr_se': InboxManager.gvData._rnr_se,\r\n                                'cancelType': 'C2C',\r\n                                'outgoingNumber': undefined,\r\n                                'forwardingNumber': undefined\r\n                        };\r\n                        \r\n                        $.ajax({\r\n                                type: 'POST',\r\n                                \r\n                                url: url,\r\n                                \r\n                                data: data,\r\n                                \r\n                                success: function(result){\r\n                                        try {\r\n                                                var gvResponse = JSON.parse(result);\r\n                                                \r\n                                                if (gvResponse && gvResponse.ok) {\r\n                                                        if (onSuccess) {\r\n                                                                onSuccess();\r\n                                                        }\r\n                                                }\r\n                                                else if (onError) {\r\n                                                        onError();\r\n                                                }\r\n                                        } \r\n                                        catch (e) {\r\n                                                if (onError) {\r\n                                                        onError();\r\n                                                }\r\n                                        }\r\n                                },\r\n                                \r\n                                error: function(){\r\n                                        if (onError) {\r\n                                                onError();\r\n                                        }\r\n                                }\r\n                        });\r\n                };\r\n                \r\n                this.sendSMS = function(smsOptions, onSuccess, onError){\r\n                        var url = InboxManager.gvData.baseUrl + '/sms/send/';\r\n                        var defaults = {\r\n                                '_rnr_se': InboxManager.gvData._rnr_se,\r\n                                'phoneNumber': '',\r\n                                'text': ''\r\n                        };\r\n                        \r\n                        smsOptions = $.extend(defaults, smsOptions);\r\n                        \r\n                        $.ajax({\r\n                                type: 'POST',\r\n                                \r\n                                url: url,\r\n                                \r\n                                data: smsOptions,\r\n                                \r\n                                success: function(result){\r\n                                        try {\r\n                                                var gvResponse = JSON.parse(result);\r\n                                                \r\n                                                if (gvResponse) {\r\n                                                        if (gvResponse.ok) {\r\n                                                                if (onSuccess) {\r\n                                                                        onSuccess(gvResponse);\r\n                                                                }\r\n                                                        }\r\n                                                        else if (onError) {\r\n                                                                onError(gvResponse);\r\n                                                        }\r\n                                                }\r\n                                                else if (onError) {\r\n                                                        onError();\r\n                                                }\r\n                                        } \r\n                                        catch (e) {\r\n                                                if (onError) {\r\n                                                        onError();\r\n                                                }\r\n                                        }\r\n                                },\r\n                                \r\n                                error: function(){\r\n                                        if (onError) {\r\n                                                onError();\r\n                                        }\r\n                                }\r\n                        });\r\n                };\r\n        })();\r\n})();\r\nHide details\r\nChange log\r\nr2 by osama.lionheart on Jan 14, 2010   Diff\r\nUncommenting some forgotten code.\r\nGo to: \t\r\nOlder revisions\r\n r1 by osama.lionheart on Jan 14, 2010   Diff \r\nAll revisions of this file\r\nFile info\r\nSize: 79374 bytes, 2914 lines\r\nView raw file\r\n"}}