Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

Commit

Permalink
#326 - support tags (and other built-in datatypes)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjac committed Mar 29, 2016
1 parent 41fa8fa commit e33eb86
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/directives/archetypeproperty.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,11 @@ angular.module("umbraco.directives").directive('archetypeProperty', function ($c
}
}

//upload, colorpicker datatype hack
if(view.indexOf('fileupload.html') != -1 || view.indexOf('colorpicker.html') != -1) {
//hacks for various built-in datatyps including upload, colorpicker and tags
if (!scope.propertyForm) {
scope.propertyForm = scope.form;
}
if (!scope.model.validation) {
scope.model.validation = {};
scope.model.validation.mandatory = 0;
}
Expand Down

0 comments on commit e33eb86

Please sign in to comment.