/*$(".send-problem-button"). on ("click", function () {
	
	var message = "Thank you! Problem details have been successfully submitted!";
	/*var additionalAction = '<a href="#" data-role="button" data-inline="true" data-theme="b" id="loginAction">New application</a>';
	var promoteTitle = "Next best offers";
	var promoteContent = '<div class="ui-grid-a">';
		promoteContent += '<div class="ui-block-a">';
		promoteContent += '<div class="ui-bar ui-bar-e">'
		promoteContent += '<i class="fa fa-car"></i>';
		promoteContent += '<p>Buy a car</p>';
		promoteContent += '</div>';
		promoteContent += '</div>';
		promoteContent += '<div class="ui-block-b">';
		promoteContent += '<div class="ui-bar ui-bar-e">'
		promoteContent += '<i class="fa fa-home"></i>';
		promoteContent += '<p>Buy a house</p>';
		promoteContent += '</div>';
		promoteContent += '</div>';
		promoteContent += '<div class="ui-block-a">';
		promoteContent += '<div class="ui-bar ui-bar-e">'
		promoteContent += '<i class="fa fa-plane"></i>';
		promoteContent += '<p>Take a vacation</p>';
		promoteContent += '</div>';
		promoteContent += '</div>';
		promoteContent += '<div class="ui-block-b">';
		promoteContent += '<div class="ui-bar ui-bar-e">'
		promoteContent += '<i class="fa fa-university"></i>';
		promoteContent += '<p>Go to college</p>';
		promoteContent += '</div>';
		promoteContent += '</div>';
		promoteContent += '</div>';
	
	confirmOperation (message, null, null, null);
});
*/

$(document).on("pageshow", function () {
	
	$("#confirmationPopup").popup ({ tolerance: "0px, 12px, 32px, 12px" });
	
	$(".message-submit .send-problem-button").on ("click", function (e) {
		
		e.stopImmediatePropagation ();
	    e.preventDefault ();
		
		$("#confirmationPopup").popup ("open");
		
		setTimeout (
			function () {
				$("#confirmationPopup").popup ("close");
			}, 
			4000
		);
		
		return false;
	});
	
	$(document).bind ({
		popupafterclose: function (event, ui) {
			$(".submit-problem-form").attr ("action", "home-view.html");
			
			$(".submit-problem-form").submit();
		}
	});
});

@@ -1,1466 +1,4 @@
-/*$(%22.send-problem-button%22). on (%22click%22, function () %7B%0A%09%0A%09var message = %22Thank you! Problem details have been successfully submitted!%22;%0A%09/*var additionalAction = '%3Ca href=%22#%22 data-role=%22button%22 data-inline=%22true%22 data-theme=%22b%22 id=%22loginAction%22%3ENew application%3C/a%3E';%0A%09var promoteTitle = %22Next best offers%22;%0A%09var promoteContent = '%3Cdiv class=%22ui-grid-a%22%3E';%0A%09%09promoteContent += '%3Cdiv class=%22ui-block-a%22%3E';%0A%09%09promoteContent += '%3Cdiv class=%22ui-bar ui-bar-e%22%3E'%0A%09%09promoteContent += '%3Ci class=%22fa fa-car%22%3E%3C/i%3E';%0A%09%09promoteContent += '%3Cp%3EBuy a car%3C/p%3E';%0A%09%09promoteContent += '%3C/div%3E';%0A%09%09promoteContent += '%3C/div%3E';%0A%09%09promoteContent += '%3Cdiv class=%22ui-block-b%22%3E';%0A%09%09promoteContent += '%3Cdiv class=%22ui-bar ui-bar-e%22%3E'%0A%09%09promoteContent += '%3Ci class=%22fa fa-home%22%3E%3C/i%3E';%0A%09%09promoteContent += '%3Cp%3EBuy a house%3C/p%3E';%0A%09%09promoteContent += '%3C/div%3E';%0A%09%09promoteContent += '%3C/div%3E';%0A%09%09promoteContent += '%3Cdiv class=%22ui-block-a%22%3E';%0A%09%09promoteContent += '%3Cdiv class=%22ui-bar ui-bar-e%22%3E'%0A%09%09promoteContent += '%3Ci class=%22fa fa-plane%22%3E%3C/i%3E';%0A%09%09promoteContent += '%3Cp%3ETake a vacation%3C/p%3E';%0A%09%09promoteContent += '%3C/div%3E';%0A%09%09promoteContent += '%3C/div%3E';%0A%09%09promoteContent += '%3Cdiv class=%22ui-block-b%22%3E';%0A%09%09promoteContent += '%3Cdiv class=%22ui-bar ui-bar-e%22%3E'%0A%09%09promoteContent += '%3Ci class=%22fa fa-university%22%3E%3C/i%3E';%0A%09%09promoteContent += '%3Cp%3EGo to college%3C/p%3E';%0A%09%09promoteContent += '%3C/div%3E';%0A%09%09promoteContent += '%3C/div%3E';%0A%09%09promoteContent += '%3C/div%3E';%0A%09%0A%09confirmOperation (message, null, null, null);%0A%7D);%0A*/%0A%0A
 $(do

Update submit-problem-view.js