--- /dev/null
+--- jquery-thickbox-3.1/thickbox.js~ 2010-06-10 15:17:03.061497743 +0300
++++ jquery-thickbox-3.1/thickbox.js 2010-06-10 15:16:25.310662166 +0300
+@@ -236,11 +236,17 @@
+
+ $("#TB_closeWindowButton").click(tb_remove);
+
+- if(url.indexOf('TB_inline') != -1){
+- $("#TB_ajaxContent").append($('#' + params['inlineId']).children());
+- $("#TB_window").unload(function () {
+- $('#' + params['inlineId']).append( $("#TB_ajaxContent").children() ); // move elements back when you're finished
+- });
++ if(url.indexOf('TB_inline') != -1){
++ var el = $('#' + params['inlineId']);
++ // if inline element is actually form element, take it's value
++ if (/textarea|input|select/.test(el[0].nodeName.toLowerCase())) {
++ $("#TB_ajaxContent").html('<center>'+el.val()+'</center>');
++ } else {
++ $("#TB_ajaxContent").append(el.children());
++ $("#TB_window").unload(function () {
++ $('#' + params['inlineId']).append( $("#TB_ajaxContent").children() ); // move elements back when you're finished
++ });
++ }
+ tb_position();
+ $("#TB_load").remove();
+ $("#TB_window").css({display:"block"});
Summary: ThickBox
Name: jquery-thickbox
Version: 3.1
-Release: 10
+Release: 11
License: MIT / GPL
Group: Applications/WWW
Source0: http://jquery.com/demo/thickbox/thickbox-code/thickbox.js
Patch2: animation-url.patch
Patch3: hide-peek-trough-obj.patch
Patch4: translation.patch
+Patch5: forminput-contents.patch
BuildRequires: js
BuildRequires: rpmbuild(macros) >= 1.268
BuildRequires: yuicompressor
%patch2 -p1
%patch3 -p0
%patch4 -p1
+%patch5 -p1
# Apache 1.3 / Apache 2.x config
cat > apache.conf <<'EOF'