diff options
author | Adam Young <ayoung@redhat.com> | 2011-01-10 21:14:51 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-01-14 11:42:27 -0500 |
commit | c385db4fc017f3319ff4d57bc19efe81585bc5dd (patch) | |
tree | ae3a03c9816d4616adbbe7e3896c6c29e77dd159 /install/static/details.js | |
parent | 74d8a3c487d1fd8854a66a741cc06daf924d3838 (diff) | |
download | freeipa.git-c385db4fc017f3319ff4d57bc19efe81585bc5dd.tar.gz freeipa.git-c385db4fc017f3319ff4d57bc19efe81585bc5dd.tar.xz freeipa.git-c385db4fc017f3319ff4d57bc19efe81585bc5dd.zip |
spinning wheel display a spinning icon gif during network traffic. Fixes the following from first patch: 1 primary key set in span as opposed to appended, so it only appears once. 2. call hide for the network activity icon only in success or failure functions, not multiple times
Diffstat (limited to 'install/static/details.js')
-rw-r--r-- | install/static/details.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/install/static/details.js b/install/static/details.js index 84dbe8b5..b5c74a62 100644 --- a/install/static/details.js +++ b/install/static/details.js @@ -554,6 +554,11 @@ IPA.details_facet = function (spec) { container.attr('title', that.entity_name); + $('<h1/>',{ + html: "<span id='headerpkey' />"+that.entity_name + ' Settings' + }).append(IPA.create_network_spinner()). + appendTo(container); + var details = $('<div/>', { 'class': 'content' }).appendTo(container); @@ -573,8 +578,6 @@ IPA.details_facet = function (spec) { 'name': 'update' }).appendTo(buttons); - details.append('<br/>'); - details.append('<hr/>'); for (var i = 0; i < that.sections.length; ++i) { var section = that.sections[i]; @@ -651,14 +654,17 @@ IPA.details_facet = function (spec) { function load(record) { that.record = record; - for (var i=0; i<that.sections.length; i++) { var section = that.sections[i]; section.load(record); } + if (that.pkey){ + $('h1 #headerpkey',that.container).html(that.pkey+": "); + } } function reset() { + for (var i=0; i<that.sections.length; i++) { var section = that.sections[i]; section.reset(); |