From 6bb91b52c50740c29c81fb70f7556b7be5652729 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 22 Feb 2016 16:33:55 +0400 Subject: [PATCH] Cropper js update --- assets/js/um-crop.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/assets/js/um-crop.js b/assets/js/um-crop.js index 3ab83a2c..52cc37d0 100644 --- a/assets/js/um-crop.js +++ b/assets/js/um-crop.js @@ -379,11 +379,12 @@ initContainer: function () { var $container = this.$container; - - this.container = { - width: max($container.width(), 300), - height: max($container.height(), 150) - }; + if($container !== NULL){ + this.container = { + width: max($container.width(), 300), + height: max($container.height(), 150) + }; + } }, initCropper: function () {