Commit 9870d3aa authored by ibuler's avatar ibuler

[Bugfix] 修复判断问题

parent c3699889
...@@ -579,7 +579,7 @@ jumpserver.initServerSideDataTable = function (options) { ...@@ -579,7 +579,7 @@ jumpserver.initServerSideDataTable = function (options) {
ajax: { ajax: {
url: options.ajax_url, url: options.ajax_url,
error: function (jqXHR, textStatus, errorThrown) { error: function (jqXHR, textStatus, errorThrown) {
if (jqXHR.responseText && jqXHR.responseText.indexOf("%(value)s") ) { if (jqXHR.responseText && jqXHR.responseText.indexOf("%(value)s") !== -1 ) {
return return
} }
var msg = gettext("Unknown error occur"); var msg = gettext("Unknown error occur");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment