move js files from js/pandora to js, fixes #1366

This commit is contained in:
j 2013-07-16 12:15:05 +00:00
commit a9b7738aa8
104 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,34 @@
'use strict';
pandora.ui.makeListPrivateDialog = function(name, subscribers, callback) {
var that = pandora.ui.iconDialog({
buttons: [
Ox.Button({
id: 'keep',
title: Ox._('Keep List Public')
}).bindEvent({
click: function() {
that.close();
callback(false);
}
}),
Ox.Button({
id: 'make',
title: Ox._('Make List Private')
}).bindEvent({
click: function() {
that.close();
callback(true);
}
})
],
keys: {enter: 'make', escape: 'keep'},
text: Ox._('Are you sure you want to make the list "{0}" private and loose its {1}?',
[name, subscribers == 1 ? Ox._('subscriber') : Ox._('{0} subscribers', [subscribers])]),
title: Ox._('Make List Private')
});
return that;
};