diff --git a/.editorconfig b/.editorconfig index b590938f..90557414 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,4 +10,4 @@ end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true -ident_size = 2 +indent_size = 2 diff --git a/dependencies.yml b/dependencies.yml new file mode 100644 index 00000000..6baad7c8 --- /dev/null +++ b/dependencies.yml @@ -0,0 +1,11 @@ +collectors: + +- type: js-npm + path: / + actors: + # pull requests for updates to our major version + - type: js-npm + versions: "L.Y.Y" + # create issues for new major versions + - type: repo-issue + versions: "Y.0.0" diff --git a/sample/index.html b/sample/index.html index 7db9157e..08f5e00f 100644 --- a/sample/index.html +++ b/sample/index.html @@ -125,6 +125,7 @@ + diff --git a/sample/scripts/sample.js b/sample/scripts/sample.js index 888bd1f7..83b92b25 100644 --- a/sample/scripts/sample.js +++ b/sample/scripts/sample.js @@ -30,7 +30,7 @@ angular.module('sample', [ 'adf.widget.github', 'adf.widget.version', 'adf.widget.clock', 'LocalStorageModule', 'sample-01', 'sample-02', 'sample-03', - 'sample-04', 'sample-05', 'ngRoute' + 'sample-04', 'sample-05', 'ngRoute', 'ng-sortable' ]) .config(function(dashboardProvider, $routeProvider, localStorageServiceProvider){ dashboardProvider.widgetsPath('widgets/'); diff --git a/src/scripts/column.js b/src/scripts/column.js index cace0f5a..56d85993 100644 --- a/src/scripts/column.js +++ b/src/scripts/column.js @@ -28,136 +28,18 @@ angular.module('adf') .directive('adfDashboardColumn', function ($log, $compile, $rootScope, adfTemplatePath, rowTemplate, dashboard) { 'use strict'; - /** - * moves a widget in between a column - */ - function moveWidgetInColumn($scope, column, evt){ - var widgets = column.widgets; - // move widget and apply to scope - $scope.$apply(function(){ - widgets.splice(evt.newIndex, 0, widgets.splice(evt.oldIndex, 1)[0]); - $rootScope.$broadcast('adfWidgetMovedInColumn'); - }); - } - - /** - * finds a widget by its id in the column - */ - function findWidget(column, index){ - var widget = null; - for (var i=0; i - + + + + + + + + pFad - Phonifier reborn Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved. Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages. Alternative Proxies:Alternative ProxypFad ProxypFad v3 ProxypFad v4 Proxy
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy