Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
22 lines
625 B
JavaScript
Executable file
22 lines
625 B
JavaScript
Executable file
define(function(require) {
|
|
'use strict';
|
|
|
|
var SettingsPanel = require('modules/settings_panel');
|
|
var ScreenLock = require('panels/screen_lock/screen_lock');
|
|
|
|
return function ctor_screenlock() {
|
|
var screenLock = ScreenLock();
|
|
|
|
return SettingsPanel({
|
|
onInit: function(panel) {
|
|
var elements = {
|
|
panel: panel,
|
|
lockscreenEnable: panel.querySelector('.lockscreen-enable'),
|
|
passcodeEnable: panel.querySelector('.passcode-enable'),
|
|
passcodeEditButton: panel.querySelector('.passcode-edit')
|
|
};
|
|
screenLock.onInit(elements);
|
|
}
|
|
});
|
|
};
|
|
});
|