/
home2
/
dakshskx
/
dakshaseo.com
/
admin
/
assets
/
scripts
/
custom
/
/home2/dakshskx/dakshaseo.com/admin/assets/scripts/custom
mkdir
upload
Name
Size
Mode
Actions
calendar.js
7412
0644
edit
dl
rm
charts.js
31498
0644
edit
dl
rm
coming-soon.js
661
0644
edit
dl
rm
components-dropdowns.js
10383
0644
edit
dl
rm
components-editors.js
516
0644
edit
dl
rm
components-form-tools.js
19133
0644
edit
dl
rm
components-ion-sliders.js
2318
0644
edit
dl
rm
components-jqueryui-sliders.js
3680
0644
edit
dl
rm
components-knob-dials.js
546
0644
edit
dl
rm
components-nouisliders.js
1788
0644
edit
dl
rm
components-pickers.js
7852
0644
edit
dl
rm
contact-us.js
632
0644
edit
dl
rm
custom.js
553
0644
edit
dl
rm
ecommerce-index.js
8069
0644
edit
dl
rm
ecommerce-orders-view.js
7339
0644
edit
dl
rm
ecommerce-orders.js
2772
0644
edit
dl
rm
ecommerce-products-edit.js
6521
0644
edit
dl
rm
ecommerce-products.js
2789
0644
edit
dl
rm
form-dropzone.js
1434
0644
edit
dl
rm
form-editable.js
18643
0644
edit
dl
rm
form-fileupload.js
2722
0644
edit
dl
rm
form-image-crop.js
17044
0644
edit
dl
rm
form-samples.js
1484
0644
edit
dl
rm
form-validation.js
12008
0644
edit
dl
rm
form-wizard.js
10442
0644
edit
dl
rm
inbox.js
9643
0644
edit
dl
rm
index11.js
32605
0644
edit
dl
rm
lock.js
395
0644
edit
dl
rm
login-soft.js
8472
0644
edit
dl
rm
login.js
8332
0644
edit
dl
rm
maps-google.js
6153
0644
edit
dl
rm
maps-vector.js
1897
0644
edit
dl
rm
portfolio.js
192
0644
edit
dl
rm
portlet-draggable.js
655
0644
edit
dl
rm
search.js
287
0644
edit
dl
rm
table-advanced.js
4583
0644
edit
dl
rm
table-ajax.js
3364
0644
edit
dl
rm
table-editable.js
6191
0644
edit
dl
rm
table-managed.js
6084
0644
edit
dl
rm
tasks.js
383
0644
edit
dl
rm
ui-alert-dialog-api.js
3347
0644
edit
dl
rm
ui-blockui.js
3894
0644
edit
dl
rm
ui-datepaginator.js
805
0644
edit
dl
rm
ui-extended-modals.js
2564
0644
edit
dl
rm
ui-general.js
6624
0644
edit
dl
rm
ui-idletimeout.js
2330
0644
edit
dl
rm
ui-nestable.js
1591
0644
edit
dl
rm
ui-notific8.js
1472
0644
edit
dl
rm
ui-toastr.js
4990
0644
edit
dl
rm
ui-tree.js
6458
0644
edit
dl
rm
Edit:
/home2/dakshskx/dakshaseo.com/admin/assets/scripts/custom/calendar.js
(7412B)
var Calendar = function () { return { //main function to initiate the module init: function () { Calendar.initCalendar(); }, initCalendar: function () { if (!jQuery().fullCalendar) { return; } var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date.getFullYear(); var h = {}; if (App.isRTL()) { if ($('#calendar').parents(".portlet").width() <= 720) { $('#calendar').addClass("mobile"); h = { right: 'title, prev, next', center: '', right: 'agendaDay, agendaWeek, month, today' }; } else { $('#calendar').removeClass("mobile"); h = { right: 'title', center: '', left: 'agendaDay, agendaWeek, month, today, prev,next' }; } } else { if ($('#calendar').parents(".portlet").width() <= 720) { $('#calendar').addClass("mobile"); h = { left: 'title, prev, next', center: '', right: 'today,month,agendaWeek,agendaDay' }; } else { $('#calendar').removeClass("mobile"); h = { left: 'title', center: '', right: 'prev,next,today,month,agendaWeek,agendaDay' }; } } var initDrag = function (el) { // create an Event Object (http://arshaw.com/fullcalendar/docs/event_data/Event_Object/) // it doesn't need to have a start or end var eventObject = { title: $.trim(el.text()) // use the element's text as the event title }; // store the Event Object in the DOM element so we can get to it later el.data('eventObject', eventObject); // make the event draggable using jQuery UI el.draggable({ zIndex: 999, revert: true, // will cause the event to go back to its revertDuration: 0 // original position after the drag }); } var addEvent = function (title) { title = title.length == 0 ? "Untitled Event" : title; var html = $('<div class="external-event label label-default">' + title + '</div>'); jQuery('#event_box').append(html); initDrag(html); } $('#external-events div.external-event').each(function () { initDrag($(this)) }); $('#event_add').unbind('click').click(function () { var title = $('#event_title').val(); addEvent(title); }); //predefined events $('#event_box').html(""); addEvent("My Event 1"); addEvent("My Event 2"); addEvent("My Event 3"); addEvent("My Event 4"); addEvent("My Event 5"); addEvent("My Event 6"); $('#calendar').fullCalendar('destroy'); // destroy the calendar $('#calendar').fullCalendar({ //re-initialize the calendar header: h, slotMinutes: 15, editable: true, droppable: true, // this allows things to be dropped onto the calendar !!! drop: function (date, allDay) { // this function is called when something is dropped // retrieve the dropped element's stored Event Object var originalEventObject = $(this).data('eventObject'); // we need to copy it, so that multiple events don't have a reference to the same object var copiedEventObject = $.extend({}, originalEventObject); // assign it the date that was reported copiedEventObject.start = date; copiedEventObject.allDay = allDay; copiedEventObject.className = $(this).attr("data-class"); // render the event on the calendar // the last `true` argument determines if the event "sticks" (http://arshaw.com/fullcalendar/docs/event_rendering/renderEvent/) $('#calendar').fullCalendar('renderEvent', copiedEventObject, true); // is the "remove after drop" checkbox checked? if ($('#drop-remove').is(':checked')) { // if so, remove the element from the "Draggable Events" list $(this).remove(); } }, events: [{ title: 'All Day Event', start: new Date(y, m, 1), backgroundColor: App.getLayoutColorCode('yellow') }, { title: 'Long Event', start: new Date(y, m, d - 5), end: new Date(y, m, d - 2), backgroundColor: App.getLayoutColorCode('green') }, { title: 'Repeating Event', start: new Date(y, m, d - 3, 16, 0), allDay: false, backgroundColor: App.getLayoutColorCode('red') }, { title: 'Repeating Event', start: new Date(y, m, d + 4, 16, 0), allDay: false, backgroundColor: App.getLayoutColorCode('green') }, { title: 'Meeting', start: new Date(y, m, d, 10, 30), allDay: false, }, { title: 'Lunch', start: new Date(y, m, d, 12, 0), end: new Date(y, m, d, 14, 0), backgroundColor: App.getLayoutColorCode('grey'), allDay: false, }, { title: 'Birthday Party', start: new Date(y, m, d + 1, 19, 0), end: new Date(y, m, d + 1, 22, 30), backgroundColor: App.getLayoutColorCode('purple'), allDay: false, }, { title: 'Click for Google', start: new Date(y, m, 28), end: new Date(y, m, 29), backgroundColor: App.getLayoutColorCode('yellow'), url: 'http://google.com/', } ] }); } }; }();
Save
cmd:
run