mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-22 15:08:12 -05:00
No need to save or revert when nothing changes.
This commit is contained in:
parent
e877a142d2
commit
d0dbd5312a
@ -26,7 +26,8 @@ angular.module('omega').controller 'MasterCtrl', ($scope, $rootScope, $window,
|
|||||||
showFirstRun()
|
showFirstRun()
|
||||||
|
|
||||||
$rootScope.revertOptions = ->
|
$rootScope.revertOptions = ->
|
||||||
$window.location.reload()
|
if $rootScope.optionsDirty
|
||||||
|
$window.location.reload()
|
||||||
|
|
||||||
$rootScope.exportScript = (name) ->
|
$rootScope.exportScript = (name) ->
|
||||||
getProfileName =
|
getProfileName =
|
||||||
@ -85,6 +86,7 @@ angular.module('omega').controller 'MasterCtrl', ($scope, $rootScope, $window,
|
|||||||
return true
|
return true
|
||||||
|
|
||||||
$rootScope.applyOptions = ->
|
$rootScope.applyOptions = ->
|
||||||
|
return unless $rootScope.optionsDirty
|
||||||
return unless checkFormValid()
|
return unless checkFormValid()
|
||||||
return if $rootScope.$broadcast('omegaApplyOptions').defaultPrevented
|
return if $rootScope.$broadcast('omegaApplyOptions').defaultPrevented
|
||||||
plainOptions = angular.fromJson(angular.toJson($rootScope.options))
|
plainOptions = angular.fromJson(angular.toJson($rootScope.options))
|
||||||
|
Loading…
Reference in New Issue
Block a user