1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
| $(function() {
var availableTags = [
"ActionScript",
"AppleScript",
"Asp",
"BASIC",
"C",
"C++",
"Clojure",
"COBOL",
"ColdFusion",
"Erlang",
"Fortran",
"Groovy",
"Haskell",
"Java",
"JavaScript",
"Lisp",
"Perl",
"PHP",
"Python",
"Ruby",
"Scala",
"Scheme"
];
$( "#search" ).autocomplete({
source: availableTags
});
// tests activation jquery / jquery ui
//$('#testdrag').draggable();
//$('#testdrag').css('background','red').css('opacity','0.2');
/*
$( "#ser_btn" ).click(function() {
$('#select_group').show();
});
*/
$('#ser_btn').click(function(){
$('#div_list_serv').toggle('slow');
});
$('#tag_btn').click(function(){
$('#div_form_tags').toggle('slow');
});
/*
$('#tag_btn').on('click', function(){
$('#div_form_tags').toggle('slow');
});*/
$( "#dialog-confirm" ).dialog({
resizable: false,
height: "auto",
width: 400,
modal: true,
buttons: {
"Delete all items": function() {
$( this ).dialog( "close" );
},
Cancel: function() {
$( this ).dialog( "close" );
}
}
});
}); |