[form] [usability] change z-index only if in form

This commit is contained in:
Rushabh Mehta 2013-03-26 14:16:19 +05:30
parent a0e69e864c
commit fe91a60eb3
2 changed files with 6 additions and 3 deletions

View file

@ -633,7 +633,10 @@ LinkField.prototype.make_input = function() {
// increasing zindex of input to increase zindex of autosuggest
// because of the increase in zindex of dialog_wrapper
$(me.txt).css({"z-index": 10});
if(cur_dialog) {
console.log(cint($(cur_dialog.wrapper).css("z-index")) + 1)
$(me.txt).css({"z-index": cint($(cur_dialog.wrapper).css("z-index")) + 1});
}
$(me.txt).autocomplete({
source: function(request, response) {

View file

@ -121,13 +121,13 @@ _f.edit_record = function(dt, dn) {
d.dn = dn;
d.table_form = f.meta.istable;
d.dialog.show();
// show the form
f.refresh(dn);
$(f.page_layout.wrapper).removeClass('layout-wrapper')
.removeClass('layout-wrapper-background').toggle(true);
d.dialog.show();
})
})
}