summaryrefslogtreecommitdiff
path: root/javas/bidding.js
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2015-09-01 20:53:02 +0200
committeremkael <emkael@tlen.pl>2015-09-01 20:53:02 +0200
commit1c3fb72ac83e96e765a65186bb5e371dd1e5ebcb (patch)
tree7305de5b016878129f6f70424205fe5c54002f44 /javas/bidding.js
parent663b0ce431635ad98908fd53689205d61f21b56f (diff)
* build tools and environment
Diffstat (limited to 'javas/bidding.js')
-rw-r--r--javas/bidding.js43
1 files changed, 0 insertions, 43 deletions
diff --git a/javas/bidding.js b/javas/bidding.js
deleted file mode 100644
index 5932e66..0000000
--- a/javas/bidding.js
+++ /dev/null
@@ -1,43 +0,0 @@
-var display_bidding = function(element, bidding) {
- var popup = $('<div id="bidding_popup"></div>');
- popup.css({
- 'position': 'absolute',
- 'width': '250px',
- 'left': element.offset().left + element.width(),
- 'top': element.offset().top
- });
- popup.html(bidding);
- $('body').append(popup);
-}
-
-var load_bidding = function() {
- $('#bidding_popup').remove();
- var elem = $(this);
- $.ajax(
- {
- url: elem.attr('data-bidding-link'),
- complete: function(xhr, status) {
- if (status == 'success') {
- display_bidding(elem, xhr.responseText);
- }
- else {
- display_bidding(elem, 'Brak danych');
- }
- }
- }
- );
- return false;
-};
-
-var bind_bidding_links = function() {
- $('a.biddingLink').each(function() {
- $(this).unbind('click').click(load_bidding);
- });
- $(document).click(function() {
- $('#bidding_popup').remove();
- });
-};
-
-$(document).ready(function() {
- setInterval(bind_bidding_links, 1000);
-});