To participate you must create an account on apostrophenow.org. If you have already done so, click Login.
Changeset 2157
- Timestamp:
- 09/08/10 16:30:57 (17 months ago)
- Author:
- johnnyoffline
- Message:
-
Fixed a scoping issue with the move arrows and their parent containers.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r2152
|
r2157
|
|
| 495 | 495 | // TODO: with a little more finesse we could support saving it with |
| 496 | 496 | // a rank, but think about how messy that might get |
| 497 | | slots.find('.a-arrow-up,.a-arrow-down').hide(); |
| | 497 | slots.find('.a-slot-controls .a-move').hide(); |
| 498 | 498 | return; |
| 499 | 499 | } |
| … |
… |
|
| 529 | 529 | function slotUpdateMoveButtons(id, name, slot, n, slots, updateAction) |
| 530 | 530 | { |
| | 531 | var up = $(slot).find('.a-arrow-up'); |
| | 532 | var down = $(slot).find('.a-arrow-down'); |
| | 533 | |
| 531 | 534 | if (n > 0) |
| 532 | 535 | { |
| 533 | 536 | // TODO: this is not sensitive enough to nested areas |
| 534 | | $(slot).find('.a-arrow-up').show().unbind('click').click(function() { |
| | 537 | up.parent().show(); |
| | 538 | up.unbind('click').click(function() { |
| 535 | 539 | // It would be nice to confirm success here in some way |
| 536 | 540 | $.get(updateAction, { id: id, name: name, permid: $(slot).data('a-permid'), up: 1 }); |
| … |
… |
|
| 542 | 546 | else |
| 543 | 547 | { |
| 544 | | $(slot).find('.a-arrow-up').hide(); |
| | 548 | up.parent().hide(); |
| 545 | 549 | } |
| 546 | 550 | if (n < (slots.length - 1)) |
| 547 | 551 | { |
| 548 | | $(slot).find('.a-arrow-down').show().unbind('click').click(function() { |
| | 552 | |
| | 553 | down.parent().show(); |
| | 554 | down.unbind('click').click(function() { |
| 549 | 555 | // It would be nice to confirm success here in some way |
| 550 | 556 | $.get(updateAction, { id: id, name: name, permid: $(slot).data('a-permid'), up: 0 }); |
| … |
… |
|
| 556 | 562 | else |
| 557 | 563 | { |
| 558 | | $(slot).find('.a-arrow-down').hide(); |
| 559 | | } |
| 560 | | } |
| | 564 | down.parent().hide(); |
| | 565 | } |
| | 566 | }sv |
| 561 | 567 | |
| 562 | 568 | function slotShowEditViewPreloaded(pageid, name, permid) |
Download in other formats: