|
|
|
@ -365,6 +365,7 @@ define(['angular', 'uiRouter', 'static/commons/angular-ueditor'], function (angu
|
|
|
|
|
|
|
|
|
|
app.controller('cmsArticleEditCtrl', ['$scope', '$http', '$state', '$stateParams', 'commonDialog', 'article', 'industryMap','stateMap',function ($scope, $http, $state, $stateParams, commonDialog, article,industryMap,stateMap) {
|
|
|
|
|
$scope.article = article.data;
|
|
|
|
|
$scope.article.publishall = $scope.article.publishall +"";
|
|
|
|
|
|
|
|
|
|
$scope.industries = industryMap.configs();
|
|
|
|
|
$scope.states = stateMap.configs();
|
|
|
|
@ -447,7 +448,7 @@ define(['angular', 'uiRouter', 'static/commons/angular-ueditor'], function (angu
|
|
|
|
|
$scope.toggleSelectIndustries($scope.industries[i].value)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(!$scope.article.publishall){
|
|
|
|
|
if($scope.publishall == 1){
|
|
|
|
|
$scope.selectAllIndustries();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -469,7 +470,7 @@ define(['angular', 'uiRouter', 'static/commons/angular-ueditor'], function (angu
|
|
|
|
|
$scope.toggleStates($scope.states[i].value)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(!$scope.article.publishall){
|
|
|
|
|
if($scope.publishall == 1){
|
|
|
|
|
$scope.selectAllIndustries();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|