Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Making select to view beautiful

  • Loading branch information...
commit f499d6c94c06eb1fe1cbd1c857411ccc5ff4fef3 1 parent 6010c67
@tonytomov authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  css/ui.jqgrid.css
  2. +1 −1  js/grid.formedit.js
View
1  css/ui.jqgrid.css
@@ -106,6 +106,7 @@ tr.ui-search-toolbar select {margin: 1px 0 0 0}
.ui-jqdialog-content td.EditButton {text-align: right;border-top: 0 none;border-left: 0 none;border-right: 0 none; padding-bottom:5px; padding-top:5px;}
.ui-jqdialog-content td.navButton {text-align: center; border-left: 0 none;border-top: 0 none;border-right: 0 none; padding-bottom:5px; padding-top:5px;}
.ui-jqdialog-content input.FormElement {padding:.3em}
+.ui-jqdialog-content select.FormElement {padding:.3em}
.ui-jqdialog-content .data-line {padding-top:.1em;border: 0 none;}
.ui-jqdialog-content .CaptionTD {vertical-align: middle;border: 0 none; padding: 2px;white-space: nowrap;}
View
2  js/grid.formedit.js
@@ -479,7 +479,7 @@ $.jgrid.extend({
if(tmp === "" && this.edittype == "select") {tmp = $("option:eq(0)",elc).text();}
if(rp_ge[$t.p.id].checkOnSubmit || rp_ge[$t.p.id].checkOnUpdate) {rp_ge[$t.p.id]._savedData[nm] = tmp;}
$(elc).addClass("FormElement");
- if(this.edittype == 'text' || this.edittype == 'textarea') {
+ if( $.inArray(this.edittype, ['text','textarea','password','select']) > -1) {
$(elc).addClass("ui-widget-content ui-corner-all");
}
trdata = $(tb).find("tr[rowpos="+rp+"]");
Please sign in to comment.
Something went wrong with that request. Please try again.