Adds a loading indicator to the record finder

This commit is contained in:
Sam Georges 2014-07-08 18:34:35 +10:00
parent 3fc226b0ad
commit 651aabaced
2 changed files with 5 additions and 4 deletions

View File

@ -33,6 +33,7 @@
var self = this
$(this.options.dataLocker).val(recordId)
this.$el.loadIndicator({ opaque: true })
this.$el.request(this.options.refreshHandler, {
success: function(data) {
this.success(data)

View File

@ -1,9 +1,9 @@
<div
class="field-recordfinder"
id="<?= $this->getId() ?>"
class="field-recordfinder loading-indicator-container size-input-text"
data-control="recordfinder"
data-refresh-handler="<?= $this->getEventHandler('onRefresh') ?>"
data-data-locker="#<?= $field->getId() ?>"
id="<?= $this->getId() ?>">
data-data-locker="#<?= $field->getId() ?>">
<span class="form-control">
<?php if ($value): ?>
<span class="primary"><?= e($nameValue) ?: 'Undefined' ?></span>
@ -29,4 +29,4 @@
id="<?= $field->getId() ?>"
value="<?= e($value) ?>"
/>
</div>
</div>