diff options
| author | Zaran <zaran.krleza@gmail.com> | 2012-04-15 05:54:46 -0700 |
|---|---|---|
| committer | Zaran <zaran.krleza@gmail.com> | 2012-04-15 05:54:46 -0700 |
| commit | fe62183cd914a7834c6d6a94d487e2e13e212251 (patch) | |
| tree | 13311137fc992e1ea2cf841424756cb0b16d3405 /alias-angular/app/js/services.js | |
| parent | 667f6d688bdc4818feadde68c84ee690e150255a (diff) | |
| download | alias-fe62183cd914a7834c6d6a94d487e2e13e212251.tar.gz | |
CSS improvements, first steps on angular
* disable the connect form when connected
* add a disconnect button when connected
* add a research field to filter the contact list (not working)
Thinks I want to understand:
* how to share a variable between several scopes
* could StropheSrv be an attribute of the connect scope ? if yes, we can
call it directly and avoid wrapping it (this is the third level of wrapping
around libStrophe...)
Diffstat (limited to 'alias-angular/app/js/services.js')
| -rw-r--r-- | alias-angular/app/js/services.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/alias-angular/app/js/services.js b/alias-angular/app/js/services.js index 091a4fa..68e1537 100644 --- a/alias-angular/app/js/services.js +++ b/alias-angular/app/js/services.js @@ -20,6 +20,9 @@ angular.module('Alias.services', [], function($provide) { }, send: function(stanza) { $rootScope.$apply(connection.send(stanza)); + }, + disconnect: function() { + connection.disconnect("disconnect"); } }; }]); |
