24 lines
543 B
JavaScript
24 lines
543 B
JavaScript
define(['jquery'], function($){
|
|
var Backend = {
|
|
init: function(){
|
|
if($('.editable').length > 0){
|
|
// require(['editable'], function(){
|
|
// $('.editable').editable();
|
|
// })
|
|
}
|
|
},
|
|
setBodySize: function(){
|
|
var height = $(window).height();
|
|
if ($('#content-wrapper').height() < height) {
|
|
$('#content-wrapper').height($(window).height()-120);
|
|
}
|
|
$(window).resize(function(){
|
|
Backend.setBodySize();
|
|
})
|
|
}
|
|
}
|
|
|
|
Backend.setBodySize();
|
|
Backend.init(); //默认初始化执行的代码
|
|
return Backend;
|
|
}) |