(js) Minor cleanup
parent
6b2ae87010
commit
6d8dc29f28
|
@ -64,7 +64,7 @@
|
||||||
' <label>' + label + '</label>',
|
' <label>' + label + '</label>',
|
||||||
' <input type="' + (o.inputType || 'text') + '"',
|
' <input type="' + (o.inputType || 'text') + '"',
|
||||||
' aria-label="' + title + '"',
|
' aria-label="' + title + '"',
|
||||||
' ng-model="name" md-autofocus="true" required="required"/>',
|
' ng-model="name" md-autofocus="true" required />',
|
||||||
' </md-input-container>',
|
' </md-input-container>',
|
||||||
' </md-dialog-content>',
|
' </md-dialog-content>',
|
||||||
' <md-dialog-actions>',
|
' <md-dialog-actions>',
|
||||||
|
|
|
@ -51,7 +51,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function render() {
|
function render() {
|
||||||
console.debug(ngModelCtrl.$viewValue);
|
|
||||||
var flattenedDays = ngModelCtrl.$viewValue;
|
var flattenedDays = ngModelCtrl.$viewValue;
|
||||||
modelDays = ngModelCtrl.$viewValue;
|
modelDays = ngModelCtrl.$viewValue;
|
||||||
if (tAttrs.sgToggleGridAttr) {
|
if (tAttrs.sgToggleGridAttr) {
|
||||||
|
|
|
@ -176,19 +176,6 @@
|
||||||
return _.union(this.$addressbooks, this.$subscriptions, this.$remotes);
|
return _.union(this.$addressbooks, this.$subscriptions, this.$remotes);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* @memberOf AddressBook
|
|
||||||
* @desc Fetch list of cards and return an AddressBook instance.
|
|
||||||
* @param {string} addressbookId - the addressbook identifier
|
|
||||||
* @returns an AddressBook object instance
|
|
||||||
*/
|
|
||||||
AddressBook.$find = function(addressbookId) {
|
|
||||||
var futureAddressBookData = AddressBook.$Preferences.ready().then(function() {
|
|
||||||
return AddressBook.$$resource.fetch(addressbookId, 'view', AddressBook.$query);
|
|
||||||
});
|
|
||||||
return new AddressBook(futureAddressBookData);
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @memberOf AddressBook
|
* @memberOf AddressBook
|
||||||
* @desc Subscribe to another user's addressbook and add it to the list of addressbooks.
|
* @desc Subscribe to another user's addressbook and add it to the list of addressbooks.
|
||||||
|
|
|
@ -224,7 +224,6 @@
|
||||||
controller: 'MessageEditorController',
|
controller: 'MessageEditorController',
|
||||||
controllerAs: 'editor',
|
controllerAs: 'editor',
|
||||||
locals: {
|
locals: {
|
||||||
stateAccounts: vm.accounts,
|
|
||||||
stateAccount: vm.account,
|
stateAccount: vm.account,
|
||||||
stateMessage: message
|
stateMessage: message
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue