This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* global declerations */ | |
var poly, map, path, path_backup, markersArray = []; | |
/* undo all point(s) */ | |
function undo_point() { | |
//enable search button if 3 points on the map | |
if(path.length < 4) { | |
$("#ss").css('visibility', 'hidden'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*############################# | |
* Developer: Mohammad Sharaf Ali | |
* Designation: Sr. SE | |
* Version: 1.0 | |
*/############################# | |
#function to calculate .wav audio bitrate | |
function calcBitRate($filename) { | |
$check = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// reset search on input clear / special 'x' click | |
$('.dataTables_filter input') | |
.unbind() | |
.bind('keyup input', function (e) { // works both for keyboard input and for special 'x' click mouse input | |
var searchTerm = $(this).val().trim(); | |
if (searchTerm === '' || e.keyCode === 13) { | |
prodFilesTable.search(searchTerm).draw(); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @module Utils.Extended | |
define( | |
'Utils.Extended' | |
, [ | |
'Utils' | |
, 'Backbone' | |
, 'SC.Configuration' | |
, 'underscore' | |
] | |
, function ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*############################# | |
* Developer: Mohammad Sharaf Ali | |
* Designation: Sr. SE | |
* Version: 1.0 | |
*/############################# | |
class SuiteCommerce | |
{ | |
protected $cookie; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function observeNewsletterCCT() { | |
var target = $('.footer-newsletter:last')[0]; | |
var config = { | |
childList: true, | |
subtree: true | |
}; | |
var closeMsgBtn = '[data-action="close-message"]:first'; | |
var headerLogo = $('.header-logo'); | |
$.fn.observer = new MutationObserver(function(mutations) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*############################# | |
* Developer: Mohammad Sharaf Ali | |
* Designation: Sr. SE | |
* Version: 1.0 | |
*/############################# | |
// IMPLEMENTATION | |
function encrypt($requestId, $validationString) { | |
$digestSeed = hash('SHA512', $requestId, true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// change selection_all checkbox state | |
$("[name=\'selection[]\']").change(function() { | |
var state = true; | |
if ($("[name=\'selection[]\']:checked").length != $("[name=\'selection[]\']").length) { | |
state = false; | |
} else { | |
state = true; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Create case: you want to enable only the future dates and disable the past | |
Update case: you still want to enable future dates but enable only the the past date already stored in the db | |
*/ | |
var now = moment(moment().format('DD/MM/YYYY'), 'DD/MM/YYYY'); | |
$('#bulk-sms-form #start_date').datepicker({ | |
format: 'dd/mm/yyyy', | |
beforeShowDay: function(date) { | |
var current = moment(date); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*############################# | |
* Developer: Mohammad Sharaf Ali | |
* Designation: Sr. SE | |
* Version: 1.0 | |
*/############################# | |
public static function processBulkImport($request) | |
{ |
NewerOlder