Skip to content

Commit

Permalink
empty scheduler value luyadev#328
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar authored and slowfox089 committed Dec 10, 2020
1 parent 0ac6391 commit e8e25d4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).
In order to read more about upgrading and BC breaks have a look at the [UPGRADE Document](UPGRADE.md).

## 2.0.4

+ [#328](https://github.com/luyadev/luya-module-admin/issues/328) Empty default selection for "new value" in scheduler overlay.

## 2.0.3 (25. June 2019)

### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/resources/dist/main.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/resources/js/scheduler.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ zaa.directive("luyaSchedule", function() {
onlyIcon: "@",
title: "@"
},
controller: ['$scope', '$http', '$timeout', function($scope, $http, $timeout) {
controller: ['$scope', '$http', '$timeout', 'AdminToastService', function($scope, $http, $timeout, AdminToastService) {

// toggle window

Expand Down Expand Up @@ -124,7 +124,6 @@ zaa.directive("luyaSchedule", function() {
var now = new Date().getTime() / 1000;
$scope.latestId;
$scope.timestamp = parseInt(now);
$scope.newvalue = $scope.value;

$scope.saveNewJob = function() {
$http.post('admin/api-admin-common/scheduler-add', {
Expand All @@ -136,7 +135,8 @@ zaa.directive("luyaSchedule", function() {
}).then(function(response) {
$scope.latestId = response.data.id;
$scope.getLogTable();
// post success message with admin toast
}, function(error) {
AdminToastService.errorArray(error.data);
});
};

Expand Down

0 comments on commit e8e25d4

Please sign in to comment.