Ver código fonte

- Fix the style of the loaded table

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@130 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 15 anos atrás
pai
commit
06f1a4c92b
1 arquivos alterados com 7 adições e 1 exclusões
  1. 7 1
      js/linkswidget.js

+ 7 - 1
js/linkswidget.js

@@ -30,7 +30,13 @@ function LinksWidget(id, sLinkedClass, sExtKeyToMe, sExtKeyToRemote, aAttributes
 			sLinks = JSON.stringify(this.aLinks);
 			$('#'+this.id).val(sLinks);
 			$('#'+this.id+'_values').load('ajax.render.php?operation=ui.linkswidget.linkedset&sclass='+this.sLinkedClass+'&sextkeytome='+this.sExtKeyToMe+'&sextkeytoremote='+this.sExtKeyToRemote+'&myid='+this.id,
-			{'sset' : sLinks});		
+			{'sset' : sLinks}, function()
+				{
+					// Refresh the style of the loaded table
+					$('#'+this.id+' table.listResults').tableHover();	
+		 			$('#'+this.id+' .listResults').tablesorter( { headers: { 0:{sorter: false }}, widgets: ['zebra']} ); // sortable and zebra tables
+				}
+			);
 		}
 	}