remove debug
This commit is contained in:
parent
00c286b3d3
commit
31b25e5e7d
8 changed files with 1 additions and 26 deletions
|
@ -79,7 +79,6 @@ oml.ui.folders = function() {
|
||||||
|
|
||||||
getUsersAndLists(function(users, lists) {
|
getUsersAndLists(function(users, lists) {
|
||||||
|
|
||||||
Ox.print('GOT USERS AND LISTS', users, lists);
|
|
||||||
userIndex = {};
|
userIndex = {};
|
||||||
|
|
||||||
$lists.push(
|
$lists.push(
|
||||||
|
|
|
@ -353,7 +353,6 @@ oml.ui.identifyDialog = function(data) {
|
||||||
select: function(data) {
|
select: function(data) {
|
||||||
var index = data.ids[0],
|
var index = data.ids[0],
|
||||||
primaryId = $findList.value(index, 'primaryid');
|
primaryId = $findList.value(index, 'primaryid');
|
||||||
Ox.print('EEEE', index, primaryId);
|
|
||||||
disableButtons();
|
disableButtons();
|
||||||
$resultsPanel.replaceElement(1, Ox.LoadingScreen().start());
|
$resultsPanel.replaceElement(1, Ox.LoadingScreen().start());
|
||||||
oml.api.getMetadata(Ox.extend(
|
oml.api.getMetadata(Ox.extend(
|
||||||
|
|
|
@ -162,10 +162,9 @@ oml.ui.infoView = function(identifyData) {
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
click: function(data) {
|
click: function(data) {
|
||||||
Ox.print('####', data);
|
// ...
|
||||||
},
|
},
|
||||||
change: function(data) {
|
change: function(data) {
|
||||||
Ox.print('$$$', data);
|
|
||||||
oml.api.edit({
|
oml.api.edit({
|
||||||
id: ui.item,
|
id: ui.item,
|
||||||
primaryid: data.value ? data.value.split(':') : ''
|
primaryid: data.value ? data.value.split(':') : ''
|
||||||
|
@ -307,7 +306,6 @@ oml.ui.infoView = function(identifyData) {
|
||||||
iconSize = iconSize == 256 ? 512 : 256,
|
iconSize = iconSize == 256 ? 512 : 256,
|
||||||
css = getCSS(iconSize, ratio);
|
css = getCSS(iconSize, ratio);
|
||||||
//$icon.animate(css.icon, 250);
|
//$icon.animate(css.icon, 250);
|
||||||
Ox.print('ANIMATE,', css)
|
|
||||||
$info.animate(css.info, 250);
|
$info.animate(css.info, 250);
|
||||||
$image.animate(css.image, 250);
|
$image.animate(css.image, 250);
|
||||||
$reflectionImage.animate(css.image, 250);
|
$reflectionImage.animate(css.image, 250);
|
||||||
|
@ -680,7 +678,6 @@ oml.ui.infoView = function(identifyData) {
|
||||||
} else {
|
} else {
|
||||||
edit[key] = value;
|
edit[key] = value;
|
||||||
}
|
}
|
||||||
Ox.print('EDIT METADATA', key, value, edit);
|
|
||||||
oml.api.edit(edit, function(result) {
|
oml.api.edit(edit, function(result) {
|
||||||
oml.$ui.browser.value(
|
oml.$ui.browser.value(
|
||||||
result.data.id, key, result.data[key]
|
result.data.id, key, result.data[key]
|
||||||
|
|
|
@ -50,7 +50,6 @@ oml.ui.list = function() {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
init: function(data) {
|
init: function(data) {
|
||||||
Ox.print('MAIN LIST INIT', data);
|
|
||||||
if (ui.find.conditions.length == 0 || (
|
if (ui.find.conditions.length == 0 || (
|
||||||
ui.find.conditions.length == 1
|
ui.find.conditions.length == 1
|
||||||
&& ui.find.conditions[0].key == 'list'
|
&& ui.find.conditions[0].key == 'list'
|
||||||
|
@ -114,7 +113,6 @@ oml.ui.list = function() {
|
||||||
},
|
},
|
||||||
oml_find: function() {
|
oml_find: function() {
|
||||||
if (ui.listView == oml.UI.getPrevious().listView) {
|
if (ui.listView == oml.UI.getPrevious().listView) {
|
||||||
Ox.print('NEW FIND, SAME LIST VIEW, RELOADING')
|
|
||||||
that.reloadList();
|
that.reloadList();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -132,8 +130,6 @@ oml.ui.list = function() {
|
||||||
},
|
},
|
||||||
oml_listsort: function(data) {
|
oml_listsort: function(data) {
|
||||||
if (ui._list == oml.UI.getPrevious()._list) {
|
if (ui._list == oml.UI.getPrevious()._list) {
|
||||||
Ox.print('NEW LIST SORT, SAME LIST, SETTING SORT OPTION')
|
|
||||||
Ox.print('OLD:', that.options('sort'), 'NEW:', data.value);
|
|
||||||
that.options({sort: data.value});
|
that.options({sort: data.value});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -28,7 +28,6 @@ oml.ui.listInnerPanel = function() {
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
oml_listview: function() {
|
oml_listview: function() {
|
||||||
Ox.print('LIST VIEW HAS CHANGED, REPLACING LIST')
|
|
||||||
that.replaceElement(1, oml.$ui.list = oml.ui.list());
|
that.replaceElement(1, oml.$ui.list = oml.ui.list());
|
||||||
},
|
},
|
||||||
oml_showfilters: function(data) {
|
oml_showfilters: function(data) {
|
||||||
|
|
|
@ -21,7 +21,6 @@ oml.ui.rightPanel = function() {
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
resize: function(data) {
|
resize: function(data) {
|
||||||
Ox.print('::RESIZING', data.size);
|
|
||||||
that.options({size: data.size});
|
that.options({size: data.size});
|
||||||
oml.$ui.filtersOuterPanel.updateElement();
|
oml.$ui.filtersOuterPanel.updateElement();
|
||||||
oml.$ui.itemViewPanel.options({size: data.size});
|
oml.$ui.itemViewPanel.options({size: data.size});
|
||||||
|
|
|
@ -269,7 +269,6 @@ oml.ui.usersDialog = function() {
|
||||||
id: user.id,
|
id: user.id,
|
||||||
nickname: data.value
|
nickname: data.value
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
Ox.print('EDIT USER', result.data, folder);
|
|
||||||
oml.renameUser(result.data)
|
oml.renameUser(result.data)
|
||||||
// FIXME: ugly
|
// FIXME: ugly
|
||||||
Ox.forEach($lists, function($list) {
|
Ox.forEach($lists, function($list) {
|
||||||
|
@ -488,11 +487,9 @@ oml.ui.usersDialog = function() {
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
move: function(data) {
|
move: function(data) {
|
||||||
Ox.print('MOVE', data)
|
|
||||||
oml.api.sortUsers({
|
oml.api.sortUsers({
|
||||||
ids: data.ids
|
ids: data.ids
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
Ox.print('USER ORDER CHANGED', result.data);
|
|
||||||
oml.$ui.folders.updateElement();
|
oml.$ui.folders.updateElement();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
@ -916,7 +916,6 @@ oml.renameUser = function(data) {
|
||||||
}).forEach(function(list) {
|
}).forEach(function(list) {
|
||||||
updateConditions(list.query);
|
updateConditions(list.query);
|
||||||
});
|
});
|
||||||
Ox.print('$$$ SET', set);
|
|
||||||
oml.UI.set(set, false);
|
oml.UI.set(set, false);
|
||||||
|
|
||||||
updateConditions(newFind);
|
updateConditions(newFind);
|
||||||
|
@ -953,16 +952,6 @@ oml.resizeFilters = function() {
|
||||||
|
|
||||||
oml.resizeListFolders = function() {
|
oml.resizeListFolders = function() {
|
||||||
// FIXME: does this have to be here?
|
// FIXME: does this have to be here?
|
||||||
/*
|
|
||||||
Ox.print(
|
|
||||||
'RESIZE LIST FOLDERS',
|
|
||||||
'SIDEBAR', oml.user.ui.sidebarSize,
|
|
||||||
'WIDTH', oml.getListFoldersWidth(),
|
|
||||||
'HEIGHT', oml.getListFoldersHeight(),
|
|
||||||
'INFO HEIGHT', oml.getInfoHeight(),
|
|
||||||
'AVAILABLE HEIGHT', window.innerHeight - 20 - 24 - 1 - oml.user.ui.showInfo * oml.getInfoHeight()
|
|
||||||
)
|
|
||||||
*/
|
|
||||||
var width = oml.getListFoldersWidth(),
|
var width = oml.getListFoldersWidth(),
|
||||||
columnWidth = width - 58;
|
columnWidth = width - 58;
|
||||||
oml.$ui.librariesList
|
oml.$ui.librariesList
|
||||||
|
|
Loading…
Reference in a new issue