This file contains 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
http://harvesthq.github.com/chosen/ |
This file contains 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
SELECT extract(epoch from (to_timestamp(:toDate, 'DD.MM.YYYY HH24:MI') - to_timestamp(:fromDate, 'DD.MM.YYYY HH24:MI'))) / 60 |
This file contains 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
var timeDiff = Math.abs($('#DateTo').datepicker('getDate').getTime() - $('#DateFrom').datepicker('getDate').getTime()); | |
var diffDays = Math.ceil(timeDiff / (1000 * 3600 * 24)); |
This file contains 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
// Удаление null-полей из модели | |
var cleanedForm = function(form) { | |
"use strict"; | |
var thisArray = $("#" + form).serializeArray(); | |
$.each(thisArray, function(index, item) { | |
if (item.value.toString().toLowerCase() == "null") { | |
delete thisArray[index]; | |
} | |
}); |
This file contains 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
<table id="list47"></table> | |
<div id="plist47"></div> |
This file contains 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
<div class="textarea-container" onclick="document.getElementById('myTextarea').focus()"> | |
<div>I like/dislike this site because:</div> | |
<textarea id="myTextarea"></textarea> | |
</div> |
This file contains 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
$(this).mouseup(function (e) { | |
e.stopPropagation(); | |
x = e.pageX - $(window).scrollLeft; | |
y = e.pageY - $(window).scrollTop; | |
} |
NewerOlder