PageSourceSearch

https://evolutionjourney.eu/DesktopModules/DnnSharp/ActionGrid/static/angrid/edit/colorpicker.js?cdv=1048

js evolutionjourney.eu collected 2026-10-09 21:56:46 UTC 1,066 bytes, 27 lines download raw bytes

1angrid.directive('colorpickerInlineEdit', ['$compile', '$timeout', '$parse', '$sce', function ($compile, $timeout, $parse, $sce) {
2    return {
3        restrict: 'A',
4        scope: true,
5        templateUrl: function (element, attrs) {
6            return attrs.templateUrl;
7        },
8        link: function (scope, element, attrs) {
9            var $ = window[scope.settings.$] || window.$;
10            scope.item = $parse(attrs.item)(scope);
11            scope.field = $parse(attrs.field)(scope);
12			$(element).find('.picker').ColorPicker({
13			    onSubmit: function (hsb, hex, rgb, el) {
14			        scope.item[scope.field.name]='#' + hex;
15                    $(el).ColorPickerHide();
16                    scope.item.$$_dirty = true;
17                },
18                onBeforeShow: function () {
19                    $(this).ColorPickerSetColor(this.value);
20                },
21                onHide: function (hsb) {
22					$('#' + hsb.id +' > .colorpicker_submit').trigger('click');
23                }
24            });
25       }
26    };
27}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.