Lint compliance
This commit is contained in:
parent
3eec812aff
commit
03bcd2f00d
@ -40,13 +40,7 @@
|
|||||||
button {
|
button {
|
||||||
.tools_unselectable();
|
.tools_unselectable();
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
//background: @creation-button;
|
|
||||||
background: spin(@colortheme_loading-bg, 180);
|
|
||||||
background: #60ff6b;
|
|
||||||
background: #30b239;
|
background: #30b239;
|
||||||
color: @colortheme_loading-color;
|
|
||||||
color: spin(#60ff6b, 180);
|
|
||||||
color: #000;
|
|
||||||
color: #FFF;
|
color: #FFF;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin: 3px 10px;
|
margin: 3px 10px;
|
||||||
|
|||||||
@ -1823,11 +1823,6 @@ define([
|
|||||||
var $creationContainer = $('<div>', { id: 'cp-creation-container' }).appendTo($body);
|
var $creationContainer = $('<div>', { id: 'cp-creation-container' }).appendTo($body);
|
||||||
var $creation = $('<div>', { id: 'cp-creation', tabindex: 1 }).appendTo($creationContainer);
|
var $creation = $('<div>', { id: 'cp-creation', tabindex: 1 }).appendTo($creationContainer);
|
||||||
|
|
||||||
var setHTML = function (e, html) {
|
|
||||||
e.innerHTML = html;
|
|
||||||
return e;
|
|
||||||
};
|
|
||||||
|
|
||||||
// Title
|
// Title
|
||||||
var colorClass = 'cp-icon-color-'+type;
|
var colorClass = 'cp-icon-color-'+type;
|
||||||
$creation.append(h('h1.cp-creation-title.'+colorClass, Messages['button_new'+type]));
|
$creation.append(h('h1.cp-creation-title.'+colorClass, Messages['button_new'+type]));
|
||||||
@ -1948,7 +1943,7 @@ define([
|
|||||||
}).appendTo($container);
|
}).appendTo($container);
|
||||||
console.log(obj.id);
|
console.log(obj.id);
|
||||||
$span.data('id', obj.id);
|
$span.data('id', obj.id);
|
||||||
if (idx === 0) { $span.addClass('cp-creation-template-selected') }
|
if (idx === 0) { $span.addClass('cp-creation-template-selected'); }
|
||||||
$span.append(obj.icon || UI.getFileIcon({type: type}));
|
$span.append(obj.icon || UI.getFileIcon({type: type}));
|
||||||
$('<span>', {'class': 'cp-creation-template-element-name'}).text(name)
|
$('<span>', {'class': 'cp-creation-template-element-name'}).text(name)
|
||||||
.appendTo($span);
|
.appendTo($span);
|
||||||
@ -2009,7 +2004,7 @@ define([
|
|||||||
UIElements.setExpirationValue(cfg.expire, $creation);
|
UIElements.setExpirationValue(cfg.expire, $creation);
|
||||||
|
|
||||||
// Create the pad
|
// Create the pad
|
||||||
var getFormValues = function (template) {
|
var getFormValues = function () {
|
||||||
// Type of pad
|
// Type of pad
|
||||||
var ownedVal = $('#cp-creation-owned').is(':checked') ? 1 : 0;
|
var ownedVal = $('#cp-creation-owned').is(':checked') ? 1 : 0;
|
||||||
// Life time
|
// Life time
|
||||||
@ -2026,12 +2021,12 @@ define([
|
|||||||
}
|
}
|
||||||
|
|
||||||
var $template = $creation.find('.cp-creation-template-selected');
|
var $template = $creation.find('.cp-creation-template-selected');
|
||||||
var template = $template.data('id') || undefined;
|
var templateId = $template.data('id') || undefined;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
owned: ownedVal,
|
owned: ownedVal,
|
||||||
expire: expireVal,
|
expire: expireVal,
|
||||||
templateId: template
|
templateId: templateId
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
var create = function () {
|
var create = function () {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user