$(function() { $('#fullScreenBtn').click(function (e) { e.preventDefault(); fullScreen(); }); // $('.dialogs,.comments').ace_scroll({ // size: 300 // }); // $( "#ttt" ).on('click', function(e) { // e.preventDefault(); // $( "#dialog-confirm" ).removeClass('hide').dialog({ // resizable: false, // width: '320', // modal: true, // title: "

Empty the recycle bin?

", // title_html: true, // buttons: [ // { // html: "  Delete all items", // "class" : "btn btn-danger btn-minier", // click: function() { // $( this ).dialog( "close" ); // } // } // , // { // html: "  Cancel", // "class" : "btn btn-minier", // click: function() { // $( this ).dialog( "close" ); // } // } // ] // }); // }); }) function navEvent() { var navList = $('#navList'); $('a[href != "javascript:;"]', navList).click(function(event) { var index = $('a', navList).index($(this)); var text = $(this).text(); closableTab.addTab({ 'id': '_navA' + index, 'name': text, 'url': $(this).attr('href'), 'closable': true }); return false; }); $('a:contains(分单管理)', navList).trigger('click'); } $.widget("ui.dialog", $.extend({}, $.ui.dialog.prototype, { _title: function(title) { var $title = this.options.title || ' ' if( ("title_html" in this.options) && this.options.title_html == true ) title.html($title); else title.text($title); } }));