17 lines
381 B
JavaScript
17 lines
381 B
JavaScript
/**
|
|
* Copyright (c) 2013, Bernhard Posselt <dev@bernhard-posselt.com>
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
* later.
|
|
* See the COPYING file.
|
|
*/
|
|
|
|
app.directive('notesAutofocus', function () {
|
|
'use strict';
|
|
return {
|
|
restrict: 'A',
|
|
link: function (scope, element) {
|
|
element.focus();
|
|
}
|
|
};
|
|
});
|