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