V8 fix remove custom event directives (#3622)
This commit is contained in:
committed by
Sebastiaan Janssen
parent
14fd9c835d
commit
573db0d142
@@ -3,54 +3,6 @@
|
||||
**/
|
||||
angular.module('umbraco.directives')
|
||||
|
||||
.directive('onKeyup', function () {
|
||||
return {
|
||||
link: function (scope, elm, attrs) {
|
||||
var f = function () {
|
||||
scope.$apply(attrs.onKeyup);
|
||||
};
|
||||
elm.on("keyup", f);
|
||||
scope.$on("$destroy", function(){ elm.off("keyup", f);} );
|
||||
}
|
||||
};
|
||||
})
|
||||
|
||||
.directive('onKeydown', function () {
|
||||
return {
|
||||
link: function (scope, elm, attrs) {
|
||||
var f = function () {
|
||||
scope.$apply(attrs.onKeydown);
|
||||
};
|
||||
elm.on("keydown", f);
|
||||
scope.$on("$destroy", function(){ elm.off("keydown", f);} );
|
||||
}
|
||||
};
|
||||
})
|
||||
|
||||
.directive('onBlur', function () {
|
||||
return {
|
||||
link: function (scope, elm, attrs) {
|
||||
var f = function () {
|
||||
scope.$apply(attrs.onBlur);
|
||||
};
|
||||
elm.on("blur", f);
|
||||
scope.$on("$destroy", function(){ elm.off("blur", f);} );
|
||||
}
|
||||
};
|
||||
})
|
||||
|
||||
.directive('onFocus', function () {
|
||||
return {
|
||||
link: function (scope, elm, attrs) {
|
||||
var f = function () {
|
||||
scope.$apply(attrs.onFocus);
|
||||
};
|
||||
elm.on("focus", f);
|
||||
scope.$on("$destroy", function(){ elm.off("focus", f);} );
|
||||
}
|
||||
};
|
||||
})
|
||||
|
||||
.directive('onDragEnter', function () {
|
||||
return {
|
||||
link: function (scope, elm, attrs) {
|
||||
|
||||
@@ -32,11 +32,11 @@
|
||||
|
||||
<div ng-show="model.embed.supportsDimensions">
|
||||
<umb-control-group label="@general_width">
|
||||
<input type="number" pattern="[0-9]*" min="0" ng-model="model.embed.width" on-blur="vm.changeSize('width')" />
|
||||
<input type="number" pattern="[0-9]*" min="0" ng-model="model.embed.width" ng-blur="vm.changeSize('width')" />
|
||||
</umb-control-group>
|
||||
|
||||
<umb-control-group label="@general_height">
|
||||
<input type="number" pattern="[0-9]*" min="0" ng-model="model.embed.height" on-blur="vm.changeSize('height')" />
|
||||
<input type="number" pattern="[0-9]*" min="0" ng-model="model.embed.height" ng-blur="vm.changeSize('height')" />
|
||||
</umb-control-group>
|
||||
|
||||
<umb-control-group label="@general_constrain">
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
</a>
|
||||
|
||||
<input type="text" class="umb-breadcrumbs__add-ancestor" ng-show="showFolderInput" ng-model="model.newFolderName" ng-keydown="enterSubmitFolder($event)"
|
||||
on-blur="submitFolder()" focus-when="{{showFolderInput}}" />
|
||||
ng-blur="submitFolder()" focus-when="{{showFolderInput}}" />
|
||||
</li>
|
||||
</ul>
|
||||
<div class="umb-loader" ng-if="creatingFolder"></div>
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
ng-disabled="tab.inherited"
|
||||
umb-auto-focus
|
||||
umb-auto-resize
|
||||
on-focus="activateGroup(tab)"
|
||||
ng-focus="activateGroup(tab)"
|
||||
required
|
||||
val-server-field="{{'Groups[' + $index + '].Name'}}" />
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
|
||||
<ng-form name="groupSortOrderForm" class="umb-group-builder__group-sort-order">
|
||||
<div ng-if="sortingMode">
|
||||
<input name="groupSortOrder" type="number" class="umb-property-editor-tiny" style="margin-bottom: 0;" ng-model="tab.sortOrder" ng-disabled="tab.inherited" on-blur="changeSortOrderValue(tab)" required />
|
||||
<input name="groupSortOrder" type="number" class="umb-property-editor-tiny" style="margin-bottom: 0;" ng-model="tab.sortOrder" ng-disabled="tab.inherited" ng-blur="changeSortOrderValue(tab)" required />
|
||||
|
||||
<!-- This is a manual validation message not bound to a validator -->
|
||||
<div class="umb-validation-label -arrow-left" ng-if="groupSortOrderForm.groupSortOrder.$error.required && tab.showSortOrderMissing"><localize key="required"></localize></div>
|
||||
@@ -121,7 +121,7 @@
|
||||
hotkey="alt+shift+p"
|
||||
hotkey-when="{{tab.tabState === 'active' && property.propertyState=='init'}}"
|
||||
ng-click="addProperty(property, tab)"
|
||||
on-focus="activateGroup(tab)"
|
||||
ng-focus="activateGroup(tab)"
|
||||
focus-when="{{property.focus}}">
|
||||
<localize key="contentTypeEditor_addProperty"></localize>
|
||||
</a>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
title="{{ngModel}}"
|
||||
focus-when="{{!locked}}"
|
||||
umb-select-when="{{!locked}}"
|
||||
on-blur="lock()" />
|
||||
ng-blur="lock()" />
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
class="typeahead tags-{{model.alias}}"
|
||||
ng-model="$parent.tagToAdd"
|
||||
ng-keydown="$parent.addTagOnEnter($event)"
|
||||
on-blur="$parent.addTag()"
|
||||
ng-blur="$parent.addTag()"
|
||||
localize="placeholder"
|
||||
placeholder="@placeholders_enterTags" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user