Blame view

framework/admin/javascript/LeftAndMain.TreeDropdownField.js 386 Bytes
70f4f18b   Administrator   first_commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  (function($) {
  	$.entwine('ss', function($){
  
  		// Any TreeDowndownField needs to refresh it's contents after a form submission,
  		// because the tree on the backend might have changed
  		$('.TreeDropdownField').entwine({
  			'from .cms-container form': {
  				onaftersubmitform: function(e){
  					this.find('.tree-holder').empty();
  					this._super();
  				}
  			}
  		});
  
  	});
  
  })(jQuery);