2
0
forked from Wavyzz/dolibarr

New: Merge free product and predefined product area to enter new

product (Supplier orders now use same template than customer
orders/proposal/invoices).
This commit is contained in:
Laurent Destailleur
2014-05-05 17:59:43 +02:00
parent d224128c46
commit 131f133e07
10 changed files with 265 additions and 154 deletions

View File

@@ -129,9 +129,12 @@ function ajax_autocompleter($selected, $htmlname, $url, $urloption='', $minLengt
if (ui.item.disabled) {
$("#" + options.option_disabled).attr("disabled", "disabled");
if (options.error) {
$.jnotify(options.error, "error", true);
$.jnotify(options.error, "error", true); // Output with jnotify the error message
}
} else {
if (options.warning) {
$.jnotify(options.warning, "warning", false); // Output with jnotify the warning message
}
} else {
$("#" + options.option_disabled).removeAttr("disabled");
}
}