Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search in Firefox causing unresponsive script window popup #117

Open
HarryF514 opened this issue May 23, 2017 · 0 comments
Open

search in Firefox causing unresponsive script window popup #117

HarryF514 opened this issue May 23, 2017 · 0 comments

Comments

@HarryF514
Copy link

HarryF514 commented May 23, 2017

Here is the full message from the pop up window:

A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue.

Script: http://localhost:9000/bower_components/jquery/dist/jquery.js:406

there are around 427 nodes in the tree structure. It mostly happened when we do a second search.

here is code I wrote:

scope.$watch('searchTerm', function(newValue, oldValue) {
	    		if (newValue !== oldValue) {
	    			$scope.$broadcast('toggle-loader', true);
	    			var searchTerm = newValue.trim();
		    		if (searchTerm.length) { 
	            		$scope.subgroupTree.treeInstance.jstree(true).search(searchTerm);
	          		} else {
	            		$scope.subgroupTree.treeInstance.jstree(true).clear_search();
	          		}
	    		}
 	    		
	    	});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant