提交 | 用户 | 时间
|
58d006
|
1 |
$(function() { |
A |
2 |
$('#fullScreenBtn').click(function (e) { |
|
3 |
e.preventDefault(); |
|
4 |
fullScreen(); |
|
5 |
}); |
|
6 |
// $('.dialogs,.comments').ace_scroll({ |
|
7 |
// size: 300 |
|
8 |
// }); |
|
9 |
// $( "#ttt" ).on('click', function(e) { |
|
10 |
// e.preventDefault(); |
|
11 |
// $( "#dialog-confirm" ).removeClass('hide').dialog({ |
|
12 |
// resizable: false, |
|
13 |
// width: '320', |
|
14 |
// modal: true, |
|
15 |
// title: "<div class='widget-header'><h4 class='smaller'><i class='ace-icon fa fa-exclamation-triangle red'></i> Empty the recycle bin?</h4></div>", |
|
16 |
// title_html: true, |
|
17 |
// buttons: [ |
|
18 |
// { |
|
19 |
// html: "<i class='ace-icon fa fa-trash-o bigger-110'></i> Delete all items", |
|
20 |
// "class" : "btn btn-danger btn-minier", |
|
21 |
// click: function() { |
|
22 |
// $( this ).dialog( "close" ); |
|
23 |
// } |
|
24 |
// } |
|
25 |
// , |
|
26 |
// { |
|
27 |
// html: "<i class='ace-icon fa fa-times bigger-110'></i> Cancel", |
|
28 |
// "class" : "btn btn-minier", |
|
29 |
// click: function() { |
|
30 |
// $( this ).dialog( "close" ); |
|
31 |
// } |
|
32 |
// } |
|
33 |
// ] |
|
34 |
// }); |
|
35 |
// }); |
|
36 |
}) |
|
37 |
|
|
38 |
function navEvent() { |
|
39 |
var navList = $('#navList'); |
|
40 |
$('a[href != "javascript:;"]', navList).click(function(event) { |
|
41 |
var index = $('a', navList).index($(this)); |
|
42 |
var text = $(this).text(); |
|
43 |
closableTab.addTab({ |
|
44 |
'id': '_navA' + index, |
|
45 |
'name': text, |
|
46 |
'url': $(this).attr('href'), |
|
47 |
'closable': true |
|
48 |
}); |
|
49 |
return false; |
|
50 |
}); |
|
51 |
$('a:contains(分单管理)', navList).trigger('click'); |
|
52 |
} |
|
53 |
|
|
54 |
$.widget("ui.dialog", $.extend({}, $.ui.dialog.prototype, { |
|
55 |
_title: function(title) { |
|
56 |
var $title = this.options.title || ' ' |
|
57 |
if( ("title_html" in this.options) && this.options.title_html == true ) |
|
58 |
title.html($title); |
|
59 |
else title.text($title); |
|
60 |
} |
|
61 |
})); |