Matthew Bednarski matthewbednarski
- Barbarano Vicentino (VI), Italy
- Sign in to view email
View spinner-directive.js
(function() { | |
var app = angular.module('mcbSpin', []) | |
.directive('spinner', [Spinner]); | |
function Spinner() { | |
return { | |
restrict: 'EA', //E = element, A = attribute, C = class, M = comment | |
scope: { | |
//@ reads the attribute value, = provides two-way binding, & works with functions | |
show: '@', |
View focus-directive.js
(function() { | |
var app = angular.module('mcbFocus', []) | |
.directive('focusOn', function() { | |
return function(scope, elem, attr) { | |
if(attr.tabIndex === undefined){ | |
elem.attr('tabindex', -1); | |
} | |
scope.$on('focusOn', function(e, name) { | |
if (name === attr.focusOn) { | |
elem[0].focus(); |
View smart-table.js
/** | |
* @version 2.1.3 | |
* @license MIT | |
*/ | |
(function(ng, undefined) { | |
'use strict'; | |
ng.module('smart-table', []).run(['$templateCache', | |
function($templateCache) { | |
$templateCache.put('template/smart-table/pagination.html', |
View tree-directive.js
(function($) { | |
/** | |
* A [bootstrap-treeview](https://github.com/jonmiles/bootstrap-treeview) directive. | |
* | |
* requires: | |
* bootstrap-treeview: v 1.2.0 | |
* | |
*/ | |
View spinner-directive.js
(function() { | |
var app = angular.module('mcbSpin', []) | |
.directive('spinner', [Spinner]); | |
function Spinner() { | |
return { | |
restrict: 'EA', //E = element, A = attribute, C = class, M = comment | |
scope: { | |
//@ reads the attribute value, = provides two-way binding, & works with functions | |
show: '@', |
View AppContext.java
package it.solinfo.xdsindexer.utils; | |
import org.apache.log4j.Logger; | |
import org.springframework.beans.BeansException; | |
import org.springframework.context.ApplicationContext; | |
import org.springframework.context.ApplicationContextAware; | |
import javax.inject.Named; | |
/** |
View globals-service.js
(function(){ | |
var app = angular.module('mcbGlobals', []) | |
.service('lodash', [Lodash]) | |
.service('moment', [Moment]); | |
function Lodash() { | |
return window._; | |
} |
View queue-service.js
(function(){ | |
var app = angular.module('mcbQueue', []) | |
.service('queue', [Queue]); | |
/** | |
* Queue.js | |
* | |
* A function to represent a queue | |
* |
View app.js
(function() { | |
var app = angular.module('app', [ 'siDate']) | |
.service('datePickerConfig', ['$document', datePickerConfig]); | |
function datePickerConfig($document) { | |
var defaults = { | |
autoclose: true, | |
beforeShowDay: $.noop, | |
calendarWeeks: true, | |
clearBtn: false, |
View pouchdb-service.js
'use strict'; | |
(function() { | |
angular | |
.module('mcbPersist', []) | |
.service('persist', ['$q', persistService]); | |
function persistService($q) { | |
var persist = this; | |
this.getDb = function() { | |
if (this.db === undefined) { |