$(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: "<div class='widget-header'><h4 class='smaller'><i class='ace-icon fa fa-exclamation-triangle red'></i> Empty the recycle bin?</h4></div>",
|
// title_html: true,
|
// buttons: [
|
// {
|
// html: "<i class='ace-icon fa fa-trash-o bigger-110'></i> Delete all items",
|
// "class" : "btn btn-danger btn-minier",
|
// click: function() {
|
// $( this ).dialog( "close" );
|
// }
|
// }
|
// ,
|
// {
|
// html: "<i class='ace-icon fa fa-times bigger-110'></i> 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);
|
}
|
}));
|