From d74459098920a589292856376e53582c24e2f841 Mon Sep 17 00:00:00 2001 From: lutranf Date: Tue, 28 Oct 2014 14:45:01 +0100 Subject: [PATCH] test loading spinner on note page --- masks/note.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/masks/note.html b/masks/note.html index 82dd882..2328c78 100755 --- a/masks/note.html +++ b/masks/note.html @@ -9,6 +9,7 @@ databap.pageInit = function() { databap.tmp('note', 'integer'); + var $Frame = $('#note_frame'); //Add note selection form $('#note_id').addDefaultValue('N° note'); @@ -16,19 +17,23 @@ databap.pageInit = function() .addButton('ok', 'Ok', $('#note_form').submit, 'submit', 'heavy') .submit(function(){databap.goToInternalLink('note', $('#note_id').val())}); - $('#note_frame').css('height', 'calc(100% - '+($('#note_form').outerHeight()+14)+'px)'); + $Frame.css('height', 'calc(100% - '+($('#note_form').outerHeight()+14)+'px)'); //Start fetching note var iNote = databap.vars.id; if(isNumeric(iNote) && iNote > 0 && iNote!=databap.tmp('note')) { $('#note_id').val(iNote).focus(); - //self.addBufferIcon(); - $('#note_frame').attr('src', 'index.php?a=note&id='+iNote); + self.addBufferIcon(); + $Frame + .attr('src', 'index.php?a=note&id='+iNote) + .load(databap.resetIcon); + databap.tmp('note', iNote); } } +/* function onEndOfProcess() { databap.resetIcon(); @@ -40,4 +45,5 @@ function onEndOfProcess() $Frame.find('#Display_Group').height('+=200px'); } +*/ \ No newline at end of file