mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
Merge remote-tracking branch 'origin/support/3.0' into develop
This commit is contained in:
@@ -25,8 +25,10 @@ Selectize.define('custom_itop', function(aOptions) {
|
||||
if (this.$control_input.val() === '' && !this.$activeItems.length) {
|
||||
iIndex = this.caretPos-1;
|
||||
if (iIndex >= 0 && iIndex < this.items.length) {
|
||||
let sPreviousValue = this.options[this.items[iIndex]].search_label;
|
||||
this.clear(true);
|
||||
e.preventDefault();
|
||||
this.setTextboxValue(sPreviousValue.slice(0, -1));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,10 +17,16 @@
|
||||
*/
|
||||
|
||||
// Helpers
|
||||
function ShowAboutBox()
|
||||
function ShowAboutBox(sTitle)
|
||||
{
|
||||
var loadingDialog = $('<div style="padding-top:40px; padding-left:40px;"><i class="fa fa-sync-alt fa-spin fa-x fa-fw"></i></div>');
|
||||
loadingDialog.dialog( {title:sTitle,autoOpen: true, modal: true});
|
||||
$.post(GetAbsoluteUrlAppRoot()+'pages/ajax.render.php', {operation: 'about_box'}, function(data){
|
||||
|
||||
$('body').append(data);
|
||||
}).always(function() {
|
||||
loadingDialog.empty();
|
||||
loadingDialog.remove();
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user