Skip to content

Commit 6e8a900

Browse files
committed
Fixed an Umbraco version check (as it fails with 7.10)
1 parent 093c709 commit 6e8a900

File tree

1 file changed

+2
-2
lines changed
  • src/Skybrud.ImagePicker/App_Plugins/Skybrud.ImagePicker/Directives

1 file changed

+2
-2
lines changed

src/Skybrud.ImagePicker/App_Plugins/Skybrud.ImagePicker/Directives/ImagePicker.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -175,14 +175,14 @@
175175

176176
// Get the Umbraco version
177177
var v = Umbraco.Sys.ServerVariables.application.version.split('.');
178-
v = parseFloat(v[0] + '.' + v[1]);
178+
v = parseFloat(v[0] + '.' + (v[1].length === 1 ? '0' + v[1] : v[1]));
179179

180180
// Collapse all open rows
181181
scope.toggleOpen({});
182182

183183
// The new overlay only works from 7.4 and up, so for older
184184
// versions we should use the dialogService instead
185-
if (v < 7.4) {
185+
if (v < 7.04) {
186186

187187
var item = {
188188
$uniqueId: getUniqueId(),

0 commit comments

Comments
 (0)