Init(Core): Change repo
This commit is contained in:
49
public/assets/js/pages/task-create.init.js
Normal file
49
public/assets/js/pages/task-create.init.js
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
Template Name: Qovex - Responsive Bootstrap 4 Admin Dashboard
|
||||
Author: Themesbrand
|
||||
Website: https://themesbrand.com/
|
||||
Contact: themesbrand@gmail.com
|
||||
File: Task creat
|
||||
*/
|
||||
|
||||
$(document).ready(function () {
|
||||
'use strict';
|
||||
|
||||
$('.summernote').summernote({
|
||||
height: 200, // set editor height
|
||||
minHeight: null, // set minimum height of editor
|
||||
maxHeight: null, // set maximum height of editor
|
||||
focus: false, // set focus to editable area after initializing summernote
|
||||
lang: 'fa-IR'
|
||||
});
|
||||
|
||||
window.outerRepeater = $('.outer-repeater').repeater({
|
||||
defaultValues: { 'text-input': 'outer-default' },
|
||||
show: function () {
|
||||
console.log('outer show');
|
||||
$(this).slideDown();
|
||||
},
|
||||
hide: function (deleteElement) {
|
||||
console.log('outer delete');
|
||||
$(this).slideUp(deleteElement);
|
||||
},
|
||||
repeaters: [{
|
||||
selector: '.inner-repeater',
|
||||
defaultValues: { 'inner-text-input': 'inner-default' },
|
||||
show: function () {
|
||||
console.log('inner show');
|
||||
$(this).slideDown();
|
||||
},
|
||||
hide: function (deleteElement) {
|
||||
console.log('inner delete');
|
||||
$(this).slideUp(deleteElement);
|
||||
}
|
||||
}]
|
||||
});
|
||||
|
||||
$('.input-daterange input').datepicker({
|
||||
dateFormat: "yy/mm/dd",
|
||||
showOtherMonths: true,
|
||||
selectOtherMonths: false
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user