Author: glen                         Date: Thu Jun 10 12:26:15 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- hack for form elements; rel 11

---- Files affected:
packages/jquery-thickbox:
   jquery-thickbox.spec (1.18 -> 1.19) , forminput-contents.patch (NONE -> 1.1) 
 (NEW)

---- Diffs:

================================================================
Index: packages/jquery-thickbox/jquery-thickbox.spec
diff -u packages/jquery-thickbox/jquery-thickbox.spec:1.18 
packages/jquery-thickbox/jquery-thickbox.spec:1.19
--- packages/jquery-thickbox/jquery-thickbox.spec:1.18  Mon Jun  7 12:55:02 2010
+++ packages/jquery-thickbox/jquery-thickbox.spec       Thu Jun 10 14:26:09 2010
@@ -6,7 +6,7 @@
 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
@@ -23,6 +23,7 @@
 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
@@ -55,6 +56,7 @@
 %patch2 -p1
 %patch3 -p0
 %patch4 -p1
+%patch5 -p1
 
 # Apache 1.3 / Apache 2.x config
 cat > apache.conf <<'EOF'
@@ -142,6 +144,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.19  2010/06/10 12:26:09  glen
+- hack for form elements; rel 11
+
 Revision 1.18  2010/06/07 10:55:02  glen
 - move loadingAnimation.gif definition to .css, so it be relative to css file; 
rel 10
 

================================================================
Index: packages/jquery-thickbox/forminput-contents.patch
diff -u /dev/null packages/jquery-thickbox/forminput-contents.patch:1.1
--- /dev/null   Thu Jun 10 14:26:15 2010
+++ packages/jquery-thickbox/forminput-contents.patch   Thu Jun 10 14:26:09 2010
@@ -0,0 +1,25 @@
+--- 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"}); 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/jquery-thickbox/jquery-thickbox.spec?r1=1.18&r2=1.19&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to