|
|
@ -3067,14 +3067,14 @@ define([
|
|
|
|
'class': 'cp-app-drive-element-row cp-app-drive-new-ghost'
|
|
|
|
'class': 'cp-app-drive-element-row cp-app-drive-new-ghost'
|
|
|
|
}).prepend($addIcon.clone()).appendTo($list);
|
|
|
|
}).prepend($addIcon.clone()).appendTo($list);
|
|
|
|
$element.append($('<span>', {'class': 'cp-app-drive-element-name'})
|
|
|
|
$element.append($('<span>', {'class': 'cp-app-drive-element-name'})
|
|
|
|
.text(Messages.fm_newFile));
|
|
|
|
.text(Messages.fm_newButton));
|
|
|
|
$element.click(function () {
|
|
|
|
$element.click(function () {
|
|
|
|
var modal = UI.createModal({
|
|
|
|
var modal = UI.createModal({
|
|
|
|
id: 'cp-app-drive-new-ghost-dialog',
|
|
|
|
id: 'cp-app-drive-new-ghost-dialog',
|
|
|
|
$body: $('body')
|
|
|
|
$body: $('body')
|
|
|
|
});
|
|
|
|
});
|
|
|
|
var $modal = modal.$modal;
|
|
|
|
var $modal = modal.$modal;
|
|
|
|
var $title = $('<h3>').text(Messages.fm_newFile);
|
|
|
|
var $title = $('<h3>').html("<i class='fa fa-plus'></i> " + Messages.fm_newButton);
|
|
|
|
var $description = $('<p>').text(Messages.fm_newButtonTitle);
|
|
|
|
var $description = $('<p>').text(Messages.fm_newButtonTitle);
|
|
|
|
$modal.find('.cp-modal').append($title);
|
|
|
|
$modal.find('.cp-modal').append($title);
|
|
|
|
$modal.find('.cp-modal').append($description);
|
|
|
|
$modal.find('.cp-modal').append($description);
|
|
|
|