Project

General

Profile

« Previous | Next » 

Revision 5678

include busy spinner when loading search results

View differences:

index.jsp
51 51
<!-- jquery ui -->
52 52
<script language="javascript" type="text/javascript" src="<%=STYLE_SKINS_URL%>/semtools/jqueryui/js/jquery-ui-1.8.6.custom.min.js"></script>
53 53

  
54
<script language="javascript" type="text/javascript" src="<%=STYLE_SKINS_URL%>/semtools/jquery/jquery.busy.js"></script>
55

  
54 56
<script language="javascript" type="text/javascript" src="<%=STYLE_SKINS_URL%>/semtools/semtools.js"></script>
55 57
<script language="javascript" type="text/javascript" src="<%=STYLE_COMMON_URL%>/branding.js"></script>
56 58

  
......
123 125
			$("#" + divId + "Search").keyup(
124 126
				function () {
125 127
					if ($("#" + divId + "Search").val().length >= 3) {
128
						// search
126 129
						$("#" + divId).jstree("search", $("#" + divId + "Search").val());
127 130
						// now prune
128 131
						prune(divId, "jstree-search");
......
252 255
	// set the hidden parameters based on the current state of the form
253 256
	checkSearch(formObj);
254 257
	
258
	// start the busy indicator
259
	$("#searchResults").busy({ position : 'left', offset: -30, hide : true, img : "images/busy.gif" });
260
	
255 261
	//load the results
256 262
	$("#searchResults").load(
257 263
		"<%=SERVLET_URL%>" + " #content_wrapper",
......
270 276
				}).next().hide();
271 277
			});
272 278
			
279
			// stop the busy indicator
280
			$("#searchResults").busy("hide");
273 281
		});
274 282
		
275 283
	return false;

Also available in: Unified diff