doc-manage.js 977 Bytes
Newer Older
chase's avatar
chase committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
infrastructureModule.directive('docManageView', ['$log',
    function ($log) {
        'use strict';
        $log.debug('landManage.ctor()...');

        return {
            restrict: 'E',
            templateUrl: '/app/admin/infrastructure/docManage/doc-manage.html' + '?_=' + Math.random(),
            scope: {},
            controller: 'docManageController',
            link: function ($scope, $element, $attr) {
                //all validation put here
                $scope.periodOptions = {
                    bindingOptions: {
                        value: "editLand.period"
                    },
                    onKeyPress: function (e) {
                        var event = e.jQueryEvent,
                            str = event.key || String.fromCharCode(event.which);
                        if (/^[\.\,e]$/.test(str))
                            event.preventDefault();
                    },
                };




            }
        };
    }
]);