From fd847dda4da70bc0986535cc0a7ddb16ab6dca50 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 16 Feb 2012 17:38:37 +0100 Subject: [PATCH] MINOR Customized jQuery.layout.js to support fetching layout type through HTML5, for easier readability and avoiding the $.metadata dependency (which fails to parse HTML5 data attrs correctly) --- admin/thirdparty/jlayout/lib/jquery.jlayout.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/admin/thirdparty/jlayout/lib/jquery.jlayout.js b/admin/thirdparty/jlayout/lib/jquery.jlayout.js index e829f2da3..b07fd0004 100644 --- a/admin/thirdparty/jlayout/lib/jquery.jlayout.js +++ b/admin/thirdparty/jlayout/lib/jquery.jlayout.js @@ -119,8 +119,10 @@ if (jQuery && jLayout) { return $.each(this, function () { var element = $(this), o = $.metadata && element.metadata().layout ? $.extend(opts, element.metadata().layout) : opts, + // CUSTOM ischommer 2012-16-02 Allow type setting throgh built-in jQuery HTML5 data getters, to avoid including jQuery.metadata.js + o = element.data('layoutType') ? $.extend(o, {type: element.data('layoutType')}) : o, + // CUSTOM END elementWrapper = wrap(element, o.resize); - if (o.type === 'border' && typeof jLayout.border !== 'undefined') { $.each(['north', 'south', 'west', 'east', 'center'], function (i, name) { if (element.children().hasClass(name)) {