/
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/ecommerce-products-edit.js
(6521B)
var EcommerceProductsEdit = function () { var handleImages = function() { // see http://www.plupload.com/ var uploader = new plupload.Uploader({ runtimes : 'html5,flash,silverlight,html4', browse_button : document.getElementById('tab_images_uploader_pickfiles'), // you can pass in id... container: document.getElementById('tab_images_uploader_container'), // ... or DOM Element itself url : "assets/plugins/plupload/examples/upload.php", filters : { max_file_size : '10mb', mime_types: [ {title : "Image files", extensions : "jpg,gif,png"}, {title : "Zip files", extensions : "zip"} ] }, // Flash settings flash_swf_url : 'assets/plugins/plupload/js/Moxie.swf', // Silverlight settings silverlight_xap_url : 'assets/plugins/plupload/js/Moxie.xap', init: { PostInit: function() { $('#tab_images_uploader_filelist').html(""); $('#tab_images_uploader_uploadfiles').click(function() { uploader.start(); return false; }); $('#tab_images_uploader_filelist').on('click', '.added-files .remove', function(){ uploader.removeFile($(this).parent('.added-files').attr("id")); $(this).parent('.added-files').remove(); }); }, FilesAdded: function(up, files) { plupload.each(files, function(file) { $('#tab_images_uploader_filelist').append('<div class="alert alert-warning added-files" id="uploaded_file_' + file.id + '">' + file.name + '(' + plupload.formatSize(file.size) + ') <span class="status label label-info"></span> <a href="javascript:;" style="margin-top:-5px" class="remove pull-right btn btn-sm red"><i class="fa fa-times"></i> remove</a></div>'); }); }, UploadProgress: function(up, file) { $('#uploaded_file_' + file.id + ' > .status').html(file.percent + '%'); }, FileUploaded: function(up, file, response) { var response = $.parseJSON(response.response); if (response.result && response.result == 'OK') { var id = response.id; // uploaded file's unique name. Here you can collect uploaded file names and submit an jax request to your server side script to process the uploaded files and update the images tabke $('#uploaded_file_' + file.id + ' > .status').removeClass("label-info").addClass("label-success").html('<i class="fa fa-check"></i> Done'); // set successfull upload } else { $('#uploaded_file_' + file.id + ' > .status').removeClass("label-info").addClass("label-danger").html('<i class="fa fa-warning"></i> Failed'); // set failed upload App.alert({type: 'danger', message: 'One of uploads failed. Please retry.', closeInSeconds: 10, icon: 'warning'}); } }, Error: function(up, err) { App.alert({type: 'danger', message: err.message, closeInSeconds: 10, icon: 'warning'}); } } }); uploader.init(); } var handleReviews = function () { var grid = new Datatable(); grid.init({ src: $("#datatable_reviews"), dataTable: { // here you can define a typical datatable settings from http://datatables.net/usage/options "aLengthMenu": [ [20, 50, 100, 150, -1], [20, 50, 100, 150, "All"] // change per page values here ], "iDisplayLength": 20, "bServerSide": true, "sAjaxSource": "demo/ecommerce_product_reviews.php", "aoColumnDefs" : [{ // define columns sorting options(by default all columns are sortable extept the first checkbox column) 'bSortable' : true }], "aaSorting": [[ 0, "asc" ]] // set first column as a default sort by asc } }); } var handleHistory = function () { var grid = new Datatable(); grid.init({ src: $("#datatable_history"), dataTable: { // here you can define a typical datatable settings from http://datatables.net/usage/options "aLengthMenu": [ [20, 50, 100, 150, -1], [20, 50, 100, 150, "All"] // change per page values here ], "iDisplayLength": 20, "bServerSide": true, "sAjaxSource": "demo/ecommerce_product_history.php", "aoColumnDefs" : [{ // define columns sorting options(by default all columns are sortable extept the first checkbox column) 'bSortable' : true }], "aaSorting": [[ 0, "asc" ]] // set first column as a default sort by asc } }); } var initComponents = function () { //init datepickers $('.date-picker').datepicker({ rtl: App.isRTL(), autoclose: true }); //init datetimepickers $(".datetime-picker").datetimepicker({ isRTL: App.isRTL(), autoclose: true, todayBtn: true, pickerPosition: (App.isRTL() ? "bottom-right" : "bottom-left"), minuteStep: 10 }); //init maxlength handler $('.maxlength-handler').maxlength({ limitReachedClass: "label label-danger", alwaysShow: true, threshold: 5 }); } return { //main function to initiate the module init: function () { initComponents(); handleImages(); handleReviews(); handleHistory(); } }; }();
Save
cmd:
run