|
|
|
@ -722,6 +722,10 @@ define([
|
|
|
|
|
button
|
|
|
|
|
.click(common.prepareFeedback(type))
|
|
|
|
|
.click(function() {
|
|
|
|
|
common.isPadStored(function (err, data) {
|
|
|
|
|
if (!data) {
|
|
|
|
|
return void UI.alert(Messages.autostore_notAvailable);
|
|
|
|
|
}
|
|
|
|
|
sframeChan.query('Q_IS_ONLY_IN_SHARED_FOLDER', null, function (err, res) {
|
|
|
|
|
if (err || res.error) { return void console.log(err || res.error); }
|
|
|
|
|
var msg = Messages.forgetPrompt;
|
|
|
|
@ -745,6 +749,7 @@ define([
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
break;
|
|
|
|
|
case 'present':
|
|
|
|
|
button = $('<button>', {
|
|
|
|
@ -807,7 +812,14 @@ define([
|
|
|
|
|
title: Messages.tags_title,
|
|
|
|
|
})
|
|
|
|
|
.click(common.prepareFeedback(type))
|
|
|
|
|
.click(function () { UIElements.updateTags(common, null); });
|
|
|
|
|
.click(function () {
|
|
|
|
|
common.isPadStored(function (err, data) {
|
|
|
|
|
if (!data) {
|
|
|
|
|
return void UI.alert(Messages.autostore_notAvailable);
|
|
|
|
|
}
|
|
|
|
|
UIElements.updateTags(common, null);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
break;
|
|
|
|
|
case 'toggle':
|
|
|
|
|
button = $('<button>', {
|
|
|
|
@ -844,6 +856,10 @@ define([
|
|
|
|
|
.text(Messages.propertiesButton))
|
|
|
|
|
.click(common.prepareFeedback(type))
|
|
|
|
|
.click(function () {
|
|
|
|
|
common.isPadStored(function (err, data) {
|
|
|
|
|
if (!data) {
|
|
|
|
|
return void UI.alert(Messages.autostore_notAvailable);
|
|
|
|
|
}
|
|
|
|
|
getPropertiesData(common, function (e, data) {
|
|
|
|
|
if (e) { return void console.error(e); }
|
|
|
|
|
UIElements.getProperties(common, data, function (e, $prop) {
|
|
|
|
@ -852,6 +868,7 @@ define([
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
data = data || {};
|
|
|
|
|