Revize 1807
Přidáno uživatelem Ondřej Fibich před téměř 12 roky(ů)
freenetis/branches/1.1/application/views/js/base.php | ||
---|---|---|
function Dialog(id, parent, isReloadOn)
|
||
{
|
||
this.id = id;
|
||
this.parent_context = context;
|
||
|
||
// jquery object, represents real html element
|
||
this._element = $('<div class="dialog" id="dialog-'+this.id+'"></div>');
|
||
|
||
// crates dialog
|
||
var pc = this.parent_context;
|
||
this._element.dialog({
|
||
autoOpen: false,
|
||
modal: true,
|
||
position: ['center', 'center'],
|
||
width: 'auto'
|
||
width: 'auto',
|
||
close: function ()
|
||
{
|
||
context = pc;
|
||
}
|
||
});
|
||
|
||
this._data = '';
|
||
... | ... | |
hide: function ()
|
||
{
|
||
this._element.dialog('close');
|
||
context = this.parent_context;
|
||
},
|
||
|
||
/**
|
Také k dispozici: Unified diff
Opravy:
- fixes #453: Popup pridani sablony zarizeni u pridavani zarizeni
Upravy:
- context pro praci s dialogy se po zavreni dialogu vraci do stavu pred otevrenim dialogu