Jelajahi Sumber

Fixed the broken n:n links management UI (Add button remained disabled)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2096 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 13 tahun lalu
induk
melakukan
ff776acb49
2 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 1 0
      js/jquery.tablesorter.pager.js
  2. 1 1
      js/linkswidget.js

+ 1 - 0
js/jquery.tablesorter.pager.js

@@ -450,6 +450,7 @@ function sprintf(format, etc) {
 					
 					//$(this).trigger("appendCache"); // Load the data
 					//console.log($.tablesorterPager);
+					applySelection(table);
 
 					$('.gotopage',pager).click(function() {
 						var idx = $(this).attr('page');

+ 1 - 1
js/linkswidget.js

@@ -54,7 +54,7 @@ function LinksWidget(id, sClass, sAttCode, iInputId, sSuffix, bDuplicates, oWizH
 		var nbChecked = $('#linkedset_'+me.id+' .selection:checked').length;
 		if (nbChecked > 0)
 		{
-			$('#'+me.id+'_btnRemove').attr('disabled','');
+			$('#'+me.id+'_btnRemove').removeAttr('disabled');
 		}
 		else
 		{