fixed menu loading

This commit is contained in:
NyanLinHtut
2020-03-04 11:58:21 +06:30
parent 052be7f028
commit 82ab2c7ef0
4 changed files with 31 additions and 27 deletions

View File

@@ -65,7 +65,7 @@ $(document).ready(function() {
clearButton: true,
date: false
});
// Image Upload
$("#simple_menu_item_image_path").fileinput({
previewFileType: "image",
@@ -148,7 +148,7 @@ $(document).ready(function() {
'</div>\n',
}
});
$("#commissioner_image_path").fileinput({
previewFileType: "image",
allowedFileExtensions: ["jpg", "gif", "png"],
@@ -167,7 +167,7 @@ $(document).ready(function() {
' <img src="{data}" class="file-preview-image" title="{caption}" alt="{caption}" style="width: 200px;height: 200px;">\n' +
'</div>\n',
}
});
});
$("#employee_image_path").fileinput({
previewFileType: "image",
@@ -187,7 +187,7 @@ $(document).ready(function() {
' <img src="{data}" class="file-preview-image" title="{caption}" alt="{caption}" style="width: 200px;height: 200px;">\n' +
'</div>\n',
}
});
});
$("#shop_image").fileinput({
previewFileType: "image",
@@ -227,7 +227,7 @@ $(document).ready(function() {
' <img src="{data}" class="file-preview-image" title="{caption}" alt="{caption}" style="width: 200px;height: 200px;">\n' +
'</div>\n',
}
});
});
// first input focus for all form
$('form:first *input[data-behaviour!=datepicker]:input[type!=hidden]:first').focus();
@@ -252,4 +252,4 @@ Chart.scaleService.updateScaleDefaults('linear', {
}
}
});
/* chartkick js YAxis value override */
/* chartkick js YAxis value override */