remove debug

This commit is contained in:
j 2014-05-26 00:38:40 +02:00
parent 00c286b3d3
commit 31b25e5e7d
8 changed files with 1 additions and 26 deletions

View file

@ -79,7 +79,6 @@ oml.ui.folders = function() {
getUsersAndLists(function(users, lists) {
Ox.print('GOT USERS AND LISTS', users, lists);
userIndex = {};
$lists.push(

View file

@ -353,7 +353,6 @@ oml.ui.identifyDialog = function(data) {
select: function(data) {
var index = data.ids[0],
primaryId = $findList.value(index, 'primaryid');
Ox.print('EEEE', index, primaryId);
disableButtons();
$resultsPanel.replaceElement(1, Ox.LoadingScreen().start());
oml.api.getMetadata(Ox.extend(

View file

@ -162,10 +162,9 @@ oml.ui.infoView = function(identifyData) {
})
.bindEvent({
click: function(data) {
Ox.print('####', data);
// ...
},
change: function(data) {
Ox.print('$$$', data);
oml.api.edit({
id: ui.item,
primaryid: data.value ? data.value.split(':') : ''
@ -307,7 +306,6 @@ oml.ui.infoView = function(identifyData) {
iconSize = iconSize == 256 ? 512 : 256,
css = getCSS(iconSize, ratio);
//$icon.animate(css.icon, 250);
Ox.print('ANIMATE,', css)
$info.animate(css.info, 250);
$image.animate(css.image, 250);
$reflectionImage.animate(css.image, 250);
@ -680,7 +678,6 @@ oml.ui.infoView = function(identifyData) {
} else {
edit[key] = value;
}
Ox.print('EDIT METADATA', key, value, edit);
oml.api.edit(edit, function(result) {
oml.$ui.browser.value(
result.data.id, key, result.data[key]

View file

@ -50,7 +50,6 @@ oml.ui.list = function() {
}
},
init: function(data) {
Ox.print('MAIN LIST INIT', data);
if (ui.find.conditions.length == 0 || (
ui.find.conditions.length == 1
&& ui.find.conditions[0].key == 'list'
@ -114,7 +113,6 @@ oml.ui.list = function() {
},
oml_find: function() {
if (ui.listView == oml.UI.getPrevious().listView) {
Ox.print('NEW FIND, SAME LIST VIEW, RELOADING')
that.reloadList();
}
},
@ -132,8 +130,6 @@ oml.ui.list = function() {
},
oml_listsort: function(data) {
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});
}
},

View file

@ -28,7 +28,6 @@ oml.ui.listInnerPanel = function() {
})
.bindEvent({
oml_listview: function() {
Ox.print('LIST VIEW HAS CHANGED, REPLACING LIST')
that.replaceElement(1, oml.$ui.list = oml.ui.list());
},
oml_showfilters: function(data) {

View file

@ -21,7 +21,6 @@ oml.ui.rightPanel = function() {
})
.bindEvent({
resize: function(data) {
Ox.print('::RESIZING', data.size);
that.options({size: data.size});
oml.$ui.filtersOuterPanel.updateElement();
oml.$ui.itemViewPanel.options({size: data.size});

View file

@ -269,7 +269,6 @@ oml.ui.usersDialog = function() {
id: user.id,
nickname: data.value
}, function(result) {
Ox.print('EDIT USER', result.data, folder);
oml.renameUser(result.data)
// FIXME: ugly
Ox.forEach($lists, function($list) {
@ -488,11 +487,9 @@ oml.ui.usersDialog = function() {
})
.bindEvent({
move: function(data) {
Ox.print('MOVE', data)
oml.api.sortUsers({
ids: data.ids
}, function(result) {
Ox.print('USER ORDER CHANGED', result.data);
oml.$ui.folders.updateElement();
});
},

View file

@ -916,7 +916,6 @@ oml.renameUser = function(data) {
}).forEach(function(list) {
updateConditions(list.query);
});
Ox.print('$$$ SET', set);
oml.UI.set(set, false);
updateConditions(newFind);
@ -953,16 +952,6 @@ oml.resizeFilters = function() {
oml.resizeListFolders = function() {
// 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(),
columnWidth = width - 58;
oml.$ui.librariesList