Commits

Stephen McDonald committed 2f404da

Fix inline tinymce popups that don't have a url, such as some error messages.

Comments (0)

Files changed (1)

grappelli_safe/static/grappelli/tinymce/jscripts/tiny_mce/plugins/inlinepopups/editor_plugin.js

             // Resize window
             DOM.setStyles(id, {top : f.top, left : f.left, width : f.width + dw, height : f.height + dh});
             u = f.url || f.file;
-            if (window.__static_proxy && u.substr(u.length - 4) == '.htm') {
+            if (window.__static_proxy && u && u.substr(u.length - 4) == '.htm') {
                 u = window.__static_proxy + '?u=' + u;
             }
             if (u) {