diff --git a/src/app/pages/ui/animatedPanel/AnimatedPanelPageCtrl.js b/src/app/pages/ui/animatedPanel/AnimatedPanelPageCtrl.js deleted file mode 100644 index 4b6c035..0000000 --- a/src/app/pages/ui/animatedPanel/AnimatedPanelPageCtrl.js +++ /dev/null @@ -1,93 +0,0 @@ -/** - * @author harisali - * created on 14.03.2017 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.ui.animatedPanel') - .controller('AnimatedPanelPageCtrl', AnimatedPanelPageCtrl); - - /** @ngInject */ - function AnimatedPanelPageCtrl($scope) { - $scope.showDetails=function(user){ - $scope.data=user; - $scope.$broadcast("showDetails",user); - }; - $scope.users = [ - { - id: 1, - firstName: 'Mark', - lastName: 'Otto', - username: '@mdo', - email: 'mdo@gmail.com', - age: '28' - }, - { - id: 2, - firstName: 'Jacob', - lastName: 'Thornton', - username: '@fat', - email: 'fat@yandex.ru', - age: '45' - }, - { - id: 3, - firstName: 'Larry', - lastName: 'Bird', - username: '@twitter', - email: 'twitter@outlook.com', - age: '18' - }, - { - id: 4, - firstName: 'John', - lastName: 'Snow', - username: '@snow', - email: 'snow@gmail.com', - age: '20' - }, - { - id: 5, - firstName: 'Jack', - lastName: 'Sparrow', - username: '@jack', - email: 'jack@yandex.ru', - age: '30' - }, - { - id: 6, - firstName: 'Ann', - lastName: 'Smith', - username: '@ann', - email: 'ann@gmail.com', - age: '21' - }, - { - id: 7, - firstName: 'Barbara', - lastName: 'Black', - username: '@barbara', - email: 'barbara@yandex.ru', - age: '43' - }, - { - id: 8, - firstName: 'Sevan', - lastName: 'Bagrat', - username: '@sevan', - email: 'sevan@outlook.com', - age: '13' - }, - { - id: 9, - firstName: 'Ruben', - lastName: 'Vardan', - username: '@ruben', - email: 'ruben@gmail.com', - age: '22' - } - ]; - } - -})(); diff --git a/src/app/pages/ui/animatedPanel/animatedPanel.directive.js b/src/app/pages/ui/animatedPanel/animatedPanel.directive.js deleted file mode 100644 index cf51195..0000000 --- a/src/app/pages/ui/animatedPanel/animatedPanel.directive.js +++ /dev/null @@ -1,36 +0,0 @@ -/** - * @author harisali - * created on 14.03.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.ui.animatedPanel') - .directive('animatedPanelDir', animatedPanel); - - /** @ngInject */ - function animatedPanel() { - return { - controller: animatedPanelCtrl, - }; - } - - function animatedPanelCtrl($scope,$element,$animate){ - $element.hide(); - var child=$element.children(":eq(0)").children(":eq(0)"); - $scope.$on("showDetails",function(event){ - //animation to show element - $("html, body").animate({ - scrollTop: 0 - }); - $element.slideDown(); - $animate.setClass(child,"zoomIn","zoomOut"); - }); - $scope.hide=function(){ - //animation to hide element - child.removeClass("zoomIn"); - child.addClass("zoomOut"); - $element.slideUp(); - } - } -})(); \ No newline at end of file diff --git a/src/app/pages/ui/animatedPanel/animatedPanel.html b/src/app/pages/ui/animatedPanel/animatedPanel.html deleted file mode 100644 index 865e581..0000000 --- a/src/app/pages/ui/animatedPanel/animatedPanel.html +++ /dev/null @@ -1,67 +0,0 @@ -
-
-
-
-
-
-
- First Name -
- -
-
-
- Last Name -
- -
-
-
-
-
- Email -
- -
-
-
- Age -
- -
-
-
- -
-
-
-
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - -
First NameLast NameUsername
{{user.firstName}}{{user.lastName}}{{user.username}}
-
-
-
\ No newline at end of file diff --git a/src/app/pages/ui/animatedPanel/animatedPanel.module.js b/src/app/pages/ui/animatedPanel/animatedPanel.module.js deleted file mode 100644 index d9267f8..0000000 --- a/src/app/pages/ui/animatedPanel/animatedPanel.module.js +++ /dev/null @@ -1,25 +0,0 @@ -/** - * @author harisali - * created on 14.03.2017 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.ui.animatedPanel', []) - .config(routeConfig); - - /** @ngInject */ - function routeConfig($stateProvider) { - $stateProvider - .state('ui.animatedPanel', { - url: '/animatedPanel', - templateUrl: 'app/pages/ui/animatedPanel/animatedPanel.html', - title: 'Animated Panel', - controller: 'AnimatedPanelPageCtrl', - sidebarMeta: { - order: 0, - }, - }); - } - -})(); diff --git a/src/app/pages/ui/ui.module.js b/src/app/pages/ui/ui.module.js index 98075e7..7696ad2 100644 --- a/src/app/pages/ui/ui.module.js +++ b/src/app/pages/ui/ui.module.js @@ -17,7 +17,6 @@ 'BlurAdmin.pages.ui.tabs', 'BlurAdmin.pages.ui.slider', 'BlurAdmin.pages.ui.panels', - 'BlurAdmin.pages.ui.animatedPanel', ]) .config(routeConfig); diff --git a/src/app/theme/components/baPanel/baPanel.service.js b/src/app/theme/components/baPanel/baPanel.service.js index 298afbf..cfd1cf7 100644 --- a/src/app/theme/components/baPanel/baPanel.service.js +++ b/src/app/theme/components/baPanel/baPanel.service.js @@ -18,11 +18,7 @@ template: function(elem, attrs) { var res = '
'; if (attrs.baPanelTitle) { - var titleTpl = '

' + attrs.baPanelTitle + '

' - if(attrs.close) { - titleTpl+= ''; - } - titleTpl+='
'; + var titleTpl = '

' + attrs.baPanelTitle + '

'; res = titleTpl + res; // title should be before } diff --git a/src/sass/theme/bootstrap-overrides/_panel.scss b/src/sass/theme/bootstrap-overrides/_panel.scss index ebd2097..0ed448f 100644 --- a/src/sass/theme/bootstrap-overrides/_panel.scss +++ b/src/sass/theme/bootstrap-overrides/_panel.scss @@ -171,12 +171,6 @@ $panel-heading-font-size: 16px; font-weight: $font-light; } -.panel-close{ - position: absolute; - right: 10px; - top: 5px; -} - /* .panel-group .panel { border-radius: 0;