text: /**
   * @package    hubzero-cms
   * @copyright  Copyright 2005-2019 HUBzero Foundation, LLC.
   * @license    http://opensource.org/licenses/MIT MIT
   */
  
  Hubzero.submitbutton = function(task) {
  	$(document).trigger('editorSave');
  
  	var frm = document.getElementById('item-form');
  
  	if (frm) {
  		if (task == 'cancel' || document.formvalidator.isValid(frm)) {
  			Hubzero.submitform(task, frm);
  		} else {
  			alert(frm.getAttribute('data-invalid-msg'));
  		}
  	}
  }
  
  jQuery(document).ready(function($){
  	$('#clearcache').on('click', function(e) {
  		var mes = confirm($(this).attr('data-confirm'));
  		if (!mes) {
  			e.preventDefault();
  		}
  		return res;
  	});
  });
  