* [misc] set header "X-ZIN-Tutorial" for any ajax request in tutorial mode.
This commit is contained in:
@@ -342,6 +342,13 @@ function highlightStepTarget($target, step, popoverOptions)
|
||||
{
|
||||
presentStep();
|
||||
});
|
||||
if(scope.zui.Ajax.globalBeforeSends)
|
||||
{
|
||||
scope.zui.Ajax.globalBeforeSends.push(function(options)
|
||||
{
|
||||
options.headers['X-ZIN-Tutorial'] = getCurrentStepID();
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user