mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Added facet container.
Facet container has been added to hold facet header (i.e. title, search fields, buttons, links) and facet content. Each facet now occupies separate container, so it can be shown/hidden without having to redraw the content.
This commit is contained in:
@@ -126,11 +126,11 @@ var IPA = ( function () {
|
||||
batch.execute();
|
||||
};
|
||||
|
||||
that.get_entities = function () {
|
||||
that.get_entities = function() {
|
||||
return that.entities;
|
||||
};
|
||||
|
||||
that.get_entity = function (name) {
|
||||
that.get_entity = function(name) {
|
||||
return that.entities_by_name[name];
|
||||
};
|
||||
|
||||
@@ -139,6 +139,17 @@ var IPA = ( function () {
|
||||
that.entities_by_name[entity.name] = entity;
|
||||
};
|
||||
|
||||
that.remove_entity = function(name) {
|
||||
for (var i=0; i<that.entities.length; i++) {
|
||||
var entity = that.entities[i];
|
||||
if (name == entity.name) {
|
||||
that.entities.splice(i, 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
delete that.entities_by_name[entity.name];
|
||||
};
|
||||
|
||||
that.start_entities = function() {
|
||||
var factory;
|
||||
var name;
|
||||
@@ -187,14 +198,14 @@ var IPA = ( function () {
|
||||
|
||||
that.display_activity_icon = function() {
|
||||
that.network_call_count++;
|
||||
$('.network-activity-indicator').css('display','inline');
|
||||
$('.network-activity-indicator').css('visibility', 'visible');
|
||||
};
|
||||
|
||||
that.hide_activity_icon = function() {
|
||||
that.network_call_count--;
|
||||
|
||||
if (0 === that.network_call_count) {
|
||||
$('.network-activity-indicator').css('display','none');
|
||||
$('.network-activity-indicator').css('visibility', 'hidden');
|
||||
}
|
||||
};
|
||||
|
||||
@@ -316,6 +327,7 @@ IPA.command = function(spec) {
|
||||
}
|
||||
|
||||
if (xhr.status === 401) {
|
||||
error_thrown = {}; // error_thrown is string
|
||||
error_thrown.name = 'Kerberos ticket no longer valid.';
|
||||
if (IPA.messages && IPA.messages.ajax) {
|
||||
error_thrown.message = IPA.messages.ajax["401"];
|
||||
|
||||
Reference in New Issue
Block a user