From 4684f25530756688ee0336f6970e47e1fc7c9731 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 30 Apr 2012 23:25:42 +0000 Subject: [PATCH] Use the widget type to prevent infinitely creating the same thing --- etemplate/js/et2_extension_nextmatch.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etemplate/js/et2_extension_nextmatch.js b/etemplate/js/et2_extension_nextmatch.js index 61422beb1b..0f092db8f5 100644 --- a/etemplate/js/et2_extension_nextmatch.js +++ b/etemplate/js/et2_extension_nextmatch.js @@ -1546,6 +1546,8 @@ var et2_nextmatch_customfilter = et2_nextmatch_filterheader.extend({ case "link-entry": _attrs.type = 'nextmatch-entryheader'; break; + default: + _attrs.type = _attrs.widget_type; } this.real_node = et2_createWidget(_attrs.type, _attrs, this._parent); },