# HG changeset patch # User ymh # Date 1378938817 -7200 # Node ID abd73d06615e1dc427783e9dfa1d2ea4cf50eff7 # Parent 2ee11f57e3185a379bc9593380097fd53dc8aec9 Save indicator diff -r 2ee11f57e318 -r abd73d06615e src/p4l/static/p4l/css/img/ajax-loader.gif Binary file src/p4l/static/p4l/css/img/ajax-loader.gif has changed diff -r 2ee11f57e318 -r abd73d06615e src/p4l/static/p4l/css/p4l.css --- a/src/p4l/static/p4l/css/p4l.css Wed Sep 11 13:41:47 2013 +0200 +++ b/src/p4l/static/p4l/css/p4l.css Thu Sep 12 00:33:37 2013 +0200 @@ -34,6 +34,16 @@ padding-top: 5px; } +.spinner { + width: 14px; + height: 14px; + float: left; + background:url(./img/ajax-loader.gif) no-repeat center center; + border-radius: 50%; + opacity: .7; + margin-right: 4px; +} + /* Flags */ .flag { diff -r 2ee11f57e318 -r abd73d06615e src/p4l/static/p4l/js/p4l.js --- a/src/p4l/static/p4l/js/p4l.js Wed Sep 11 13:41:47 2013 +0200 +++ b/src/p4l/static/p4l/js/p4l.js Thu Sep 12 00:33:37 2013 +0200 @@ -235,10 +235,13 @@ app.controller("RecordCtrl", function($scope, RecordModel, context){ $scope.record = RecordModel.record; - $scope.uriLabels = RecordModel.uriLabels; + $scope.uriLabels = RecordModel.uriLabels; + + $scope.saving = false; $scope.submitRecord = function() { - $scope.record.$save({recordId: context.record_id}); + $scope.saving = true; + $scope.record.$save({recordId: context.record_id}).then(function(response) { $scope.saving=false;}); } diff -r 2ee11f57e318 -r abd73d06615e src/p4l/templates/p4l/record_update_form.html --- a/src/p4l/templates/p4l/record_update_form.html Wed Sep 11 13:41:47 2013 +0200 +++ b/src/p4l/templates/p4l/record_update_form.html Thu Sep 12 00:33:37 2013 +0200 @@ -178,7 +178,10 @@ - + {% endverbatim %} {% endblock %} \ No newline at end of file