Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which version you're using?
Message
 
 
Information générale
Forum:
Javascript
Catégorie:
Autre
Divers
Thread ID:
01624940
Message ID:
01625046
Vues:
47
>
>var createNew = function (createDaily) {
>                $scope.selections.selectedId = 0;
>                $scope.selections.typeDescription = '';
>
>                if ($scope.searchParameters.departmentId != 0) {
>                    window.console && console.log('Going to department state...')
>                    $state.go('department', { departmentId: $scope.searchParameters.departmentId, createDaily: createDaily },
>                        { reload: true, inherit: true, notify: true });
>                }
>                if ($scope.searchParameters.categoryId != 0) {
>                    window.console && console.log('Going to category state...')
>                    $state.go('category', { categoryId: $scope.searchParameters.categoryId, createDaily: createDaily },
>                        { reload: true, inherit: true, notify: true });
>                }
>                if ($scope.searchParameters.itemId != 0) {
>                    window.console && console.log('Going to item state...')
>                    $state.go('item', { itemId: $scope.searchParameters.itemId, createDaily: createDaily },
>                        { reload: true, inherit: true, notify: true });
>                }
>
>                if ($scope.searchParameters.subCategoryId != 0) {
>                    window.console && console.log('Going to subCategory state...')
>                    $state.go('subCategory', { subCategoryId: $scope.searchParameters.subCategoryId, createDaily: createDaily },
>                        { reload: true, inherit: true, notify: true });
>                }
>
>                if ($scope.showSearchControls) {
>                    window.console && console.log('Going to new state...')
>                    $state.go('new', {}, { reload: true });
>                }
>                //       $scope.$parent.showSearch = false; // hide the search form
>            }
>
>What am I supposed to change it to?
>
>Thanks again.

Using this exact code and the latest version 0.2.15 still doesn't work. What should I change in that code to make it work?

Thanks again.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform