1 angular.module("att.gridster", ["att.gridster.tpls", "att.gridster.utilities","att.gridster.gridster"]);
2 angular.module("att.gridster.tpls", ["template/gridster/gridster.html"]);
3 angular.module('att.gridster.utilities', [])
4 .factory('$extendObj', [function () {
5 var _extendDeep = function (dst) {
6 angular.forEach(arguments, function (obj) {
8 angular.forEach(obj, function (value, key) {
9 if (dst[key] && dst[key].constructor && dst[key].constructor === Object) {
10 _extendDeep(dst[key], value);
20 extendDeep: _extendDeep
25 angular.module('att.gridster.gridster', ['attGridsterLib', 'att.gridster.utilities'])
26 .constant('attGridsterConfig',
39 .directive('attGridster',['attGridsterConfig', '$extendObj', function (attGridsterConfig, $extendObj) {
43 attGridsterOptions : '=?',
44 attGridsterItems : '='
46 templateUrl: 'template/gridster/gridster.html',
48 controller: ['$scope', '$attrs', function ($scope, $attrs) {
51 link: function (scope, element, attrs, ctrl) {
52 if (angular.isDefined(scope.attGridsterOptions)) {
53 attGridsterConfig = $extendObj.extendDeep(attGridsterConfig, scope.attGridsterOptions);
55 scope.attGridsterConfig = attGridsterConfig;
60 angular.module("template/gridster/gridster.html", []).run(["$templateCache", function($templateCache) {
61 $templateCache.put("template/gridster/gridster.html",
63 " <div gridster='attGridsterConfig'>\n" +
64 " <div gridster-item=\"item\" ng-repeat=\"item in attGridsterItems\" class=\"gridster-item-container\" >\n" +
65 " <div class=\"gridster-item-header\">\n" +
66 " <img gridster-item-drag src=\"images/grips.png\" alt='||' class=\"gridster-item-handle\" />\n" +
67 " <span class=\"gridster-item-header-content\">Maintenance</span>\n" +
68 " <span class=\"gridster-item-sub-header-content\">Sub Header</span>\n" +
69 " <div class=\"gridster-item-header-buttons-container\">\n" +
70 " <img src=\"images/att-globe-ie8.png\" alt='AT&T' />\n" +
73 " <div class=\"gridster-item-body\">\n" +
74 " <div style=\" width: 100%; height: 221px; font-size: 12px;\">\n" +
75 " <br/>{{$index}}<center></center>\n" +
77 " There are no AT&T BusinessDirect tools available. To contact us for help, click the chat icon, and then click Contact Us.\n" +
80 " <div class=\"gridster-item-footer\">\n" +
81 " <a href='#anotherPage' class=\"gridster-item-footer-content\" >Navigate to another page</a>\n" +