<commit_before>/**
 * @package     hubzero-cms
 * @file        components/com_forum/forum.js
 * @copyright   Copyright 2005-2011 Purdue University. All rights reserved.
 * @license     http://www.gnu.org/licenses/lgpl-3.0.html LGPLv3
 */

//-----------------------------------------------------------
//  Ensure we have our namespace
//-----------------------------------------------------------
if (!HUB) {
	var HUB = {};
}

//----------------------------------------------------------
//  Forum scripts
//----------------------------------------------------------
HUB.Forum = {
	initialize: function() {
		$('a.delete').each(function(i, el) {
			$(el).on('click', function(e) {
				e.preventDefault();

				return confirm('Are you sure you wish to delete this item?');
			});
		});
	} // end initialize
}

jQuery(document).ready(function($){
	HUB.Forum.initialize();
});<commit_msg>Fixed issue whith prompt not following through with delete<commit_after>/**
 * @package     hubzero-cms
 * @file        components/com_forum/forum.js
 * @copyright   Copyright 2005-2011 Purdue University. All rights reserved.
 * @license     http://www.gnu.org/licenses/lgpl-3.0.html LGPLv3
 */

//-----------------------------------------------------------
//  Ensure we have our namespace
//-----------------------------------------------------------
if (!HUB) {
	var HUB = {};
}

//----------------------------------------------------------
//  Forum scripts
//----------------------------------------------------------
HUB.Forum = {
	initialize: function() {
		$('a.delete').each(function(i, el) {
			$(el).on('click', function(e) {
				var res = confirm('Are you sure you wish to delete this item?');
				if (!res) {
					e.preventDefault();
				}
				return res;
			});
		});
	} // end initialize
}

jQuery(document).ready(function($){
	HUB.Forum.initialize();
});
{'fraction_non_alphanumeric': 0.3856526429341963, 'fraction_numerical': 0.011866235167206042, 'mean_word_length': 1.2484848484848485, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6942754', 'n_tokens_mistral': 536, 'n_tokens_neox': 488, 'n_words': 111}