<commit_before>$.app = {

    /** ======================= Full Calendar 定义 ========================== **/

    initCalendar : function() {

        var calendar = $('#calendar').fullCalendar({
            // put your options and callbacks here
            header: {
                left: 'prev,next today',
                center: 'title',
                right: 'agendaDay,agendaWeek,month'
            },

            events : ctx+'/cal/load',

            eventDrop: function(event,dayDelta,minuteDelta,allDay,revertFunc) {

                if(confirm(" 你确定要修改该事项? ")) {
                    var url = ctx + "/cal/update/" + event.id + "/"+dayDelta;
//                    alert("url>>"+url );
                    $.post(url, function() {
                        calendar.fullCalendar("refetchEvents");
                    });
                }  else {
                    revertFunc();  //复位
                }

            },

            eventClick: function(event, delta) {
                viewCalendar(event);
            },

            loading:function(bool) {

            },
            editable: true,
            selectable: true,
            selectHelper: true,<commit_msg>使用风格统一的确认窗口，，<commit_after>$.app = {

    /** ======================= Full Calendar 定义 ========================== **/

    initCalendar : function() {

        var calendar = $('#calendar').fullCalendar({
            // put your options and callbacks here
            header: {
                left: 'prev,next today',
                center: 'title',
                right: 'agendaDay,agendaWeek,month'
            },

            events : ctx+'/cal/load',

            eventDrop: function(event,dayDelta,minuteDelta,allDay,revertFunc) {

                $.app.confirm({  //使用quaent提供的确认窗口,风格统一
                    title : '你确定要修改该事项？',
                    message : '你确定要修改该事项？',
                    ok : function(modal) {
                        var url = ctx + "/cal/update/" + event.id + "/"+dayDelta;
//                    alert("url>>"+url );
                        $.post(url, function() {
                            calendar.fullCalendar("refetchEvents");
                        });
                        return true;
                    },
                    cancel: function(modal){
                        revertFunc();  //复位
                        return false;
                    }
                });

            },

            eventClick: function(event, delta) {
                viewCalendar(event);
            },

            loading:function(bool) {

            },
            editable: true,
            selectable: true,
            selectHelper: true,
{'fraction_non_alphanumeric': 0.15318352059925094, 'fraction_numerical': 0.0, 'mean_word_length': 1.1645056726094003, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1876211', 'n_tokens_mistral': 705, 'n_tokens_neox': 667, 'n_words': 116}