mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-30 11:10:04 +00:00
cleanup
This commit is contained in:
parent
f65c661e1b
commit
79961fa043
2 changed files with 2 additions and 10 deletions
|
|
@ -12,8 +12,7 @@
|
|||
|
||||
class GlobalLinkListCtrl {
|
||||
/* @ngInject */
|
||||
constructor(GlobalLinkList, $document, $scope, $localStorage, Dialogs) {
|
||||
this.globalLinkList = GlobalLinkList;
|
||||
constructor(GlobalLinkList, $document, $scope, Dialogs) {
|
||||
this.dialogs = Dialogs;
|
||||
|
||||
$document[0].ondragover = $document[0].ondrop = (ev) => {
|
||||
|
|
@ -21,16 +20,11 @@
|
|||
};
|
||||
|
||||
$document[0].body.ondrop = (ev) => {
|
||||
console.log($localStorage.globalLinks);
|
||||
|
||||
console.log(ev);
|
||||
const text = ev.dataTransfer.getData('text');
|
||||
|
||||
if (text) {
|
||||
console.log(text);
|
||||
GlobalLinkList.addText(text);
|
||||
} else if (ev.dataTransfer) {
|
||||
console.log(ev.dataTransfer);
|
||||
GlobalLinkList.addFiles(ev.dataTransfer);
|
||||
}
|
||||
ev.preventDefault();
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
(function() {
|
||||
'use strict';
|
||||
|
||||
const MAX_TITLE_LENGTH = 20;
|
||||
// const MAX_TITLE_LENGTH = 20;
|
||||
const TYPES = {
|
||||
FILE: 'FILE',
|
||||
LINK: 'LINK',
|
||||
|
|
@ -22,8 +22,6 @@
|
|||
}
|
||||
|
||||
static baseName(passedStr) {
|
||||
console.log(passedStr);
|
||||
|
||||
const str = passedStr.trim();
|
||||
let base;
|
||||
if (str[str.length - 1] === '/') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue