﻿

/// <reference path="../../../../jQuery/1.3.2/jquery-1.3.2-vsdoc.js" />

/**
 *
 * QuickLinks
 *
 * This class used to manage the quick links functionality
 *
 */

// Check that namespace into which the Class definition will be creates has been defined & if not then create

if (!mrm.global.isNamespaceDefined("mrm.lib.cms")) mrm.global.createNamespace("mrm.lib.cms", "1.0");

mrm.lib.cms.QuickLinks = Object.subClass
(
	{
		/*
		=============================
		CONSTANTS
		=============================
		*/

		
		/*
		=============================
		CONSTRUCTOR
		=============================
		*/
		"init": function() {
			//store the scope pointer
			var _this = this;

			var form = $(document).find('form#frmQuickLinksCollection');
			
			form.find(".quicklink").change(function () {
				var location = $(this).find("option:selected").val();
				window.location = location;
			});
		}
	}
);
