, keydown :
var queues = <% Html.RenderAction("AvailableQueues"); %>;
$($.jqId("requestQueuesText"), $theForm).autocomplete(queues, {
minChars: 1,
formatItem: function(row) {
return row.Description;
},
multiple: true,
multipleSeparator: ";",
selectFirst: false
}).keydown(function(event) {
if (this.value != "" && this.value.charAt(this.value.length-1) != ";")
return true;
var keycode = $.browser.msie ? event.keyCode : event.which;
return !/\s/.test(String.fromCharCode(keycode));
});
(multipleSeparator).
- # 2. , hover click $('a.close-trigger'), focus() , , , ... , :
$(".requestLink").click(function(event) {
event.preventDefault();
var $this = $(this);
$this.addClass("loading");
$.get(this.href, function(data) {
$this.removeClass("loading");
var $req = $("<div></div>").dialog({
autoOpen: true,
height: 650,
width: 750,
modal: true,
title: "Request",
overlay: { "background-color": "#d2d2d2", "opacity": "0.40"}
}).html(data);
});
});