mirror of
https://github.com/wassname/mad.git
synced 2026-06-27 16:10:31 +08:00
20 lines
441 B
JavaScript
20 lines
441 B
JavaScript
settings.controller('SettingsController', ['$scope',
|
|
function($scope){
|
|
$scope.currentSettings = bkg.settings;
|
|
$scope.numberList = [1,2,3,4,5,6,7,8,9,10];
|
|
$scope.yesNo = [true,false];
|
|
|
|
|
|
$scope.changeItem = function(item){
|
|
console.log("selected" + item);
|
|
};
|
|
|
|
$scope.settingChanged = function(){
|
|
chrome.storage.sync.set({'settings': $scope.currentSettings}, function(){
|
|
console.log('settings saved');
|
|
})
|
|
};
|
|
|
|
}]);
|
|
|