Skip to content

Commit

Permalink
update dist with latest change
Browse files Browse the repository at this point in the history
  • Loading branch information
andyperlitch committed Mar 17, 2015
1 parent aebd4b9 commit 156eb72
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions dist/malhar-angular-dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@ angular.module('ui.dashboard')

.directive('dashboard', ['WidgetModel', 'WidgetDefCollection', '$modal', 'DashboardState', '$log', function (WidgetModel, WidgetDefCollection, $modal, DashboardState, $log) {

var sortableDefaults = {
stop: function () {
scope.saveDashboard();
},
handle: '.widget-header',
distance: 5
};

return {
restrict: 'A',
templateUrl: function(element, attr) {
Expand Down Expand Up @@ -70,6 +62,13 @@ angular.module('ui.dashboard')
_.defaults(scope.options, defaults);

// sortable options
var sortableDefaults = {
stop: function () {
scope.saveDashboard();
},
handle: '.widget-header',
distance: 5
};
scope.sortableOptions = angular.extend({}, sortableDefaults, scope.options.sortableOptions || {});

}],
Expand Down

0 comments on commit 156eb72

Please sign in to comment.