From 8926574a3541b72f5f437d5bad2677c51ea8ffaa Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 11 Feb 2015 21:08:53 +0000 Subject: [PATCH] Change media logic to also support mime=false --- etemplate/js/expose.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/expose.js b/etemplate/js/expose.js index 1fb3353311..331d21af3a 100644 --- a/etemplate/js/expose.js +++ b/etemplate/js/expose.js @@ -381,7 +381,7 @@ function expose (widget) var self=this; // If the media type is not supported do not bind the click handler - if (_value && typeof _value.mime != 'undefined' && !_value.mime.match(mime_regex,'ig')) + if (!_value || typeof _value.mime != 'string' || !_value.mime.match(mime_regex,'ig')) { return; }