Commit 64ce55ed authored by yPhil's avatar yPhil

Dialog: Kill All confirmation

parent 053ae4c8
{
"name": "petrolette",
"version": "0.4.5",
"version": "0.8.4",
"description": "Fly by night RSS feed reader",
"main": "",
"authors": [
"yassinphilip <xaccrocheur@gmail.com>"
"yPhil <xaccrocheur@gmail.com>"
],
"license": "GPLv3",
"keywords": [
......
{
"name": "petrolette",
"version": "0.8.2",
"version": "0.8.4",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......@@ -1064,16 +1064,6 @@
"resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
"integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo="
},
"jquery": {
"version": "3.2.1",
"resolved": "https://registry.npmjs.org/jquery/-/jquery-3.2.1.tgz",
"integrity": "sha1-XE2d5lKvbNCncBVKYxu6ErAVx4c="
},
"jquery-ui": {
"version": "1.12.1",
"resolved": "https://registry.npmjs.org/jquery-ui/-/jquery-ui-1.12.1.tgz",
"integrity": "sha1-vLQEXI3QU5wTS8FIjN0+dop6nlE="
},
"jsbn": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
......
......@@ -66,8 +66,10 @@ MOB.dialog = {
});
$noSources.click(function() {
MOB.tab.empty();
$('#noSourcesButton').fadeIn('slow');
// MOB.tab.empty();
MOB.dialog.killAll();
});
$newGroup.click(function() {
......@@ -482,6 +484,64 @@ MOB.dialog = {
$dialog.dialog('open');
});
},
killAll:function() {
$('#mobDialogs').load('/static/templates/dialogs.html #killDialog', function() {
var $dialog = $('#killDialog');
$dialog.dialog({
title: MOB.tr('Delete all'),
autoOpen: false,
closeOnEscape: true,
resizable: false,
height: 'auto',
width: MOB.utilities.vWidth(),
modal: true,
buttons: [
{
text: MOB.tr('Cancel'),
title: MOB.tr('Cancel'),
class: 'translate',
click: function() {
MOB.dialog.kill($dialog);
}
},
{
text: MOB.tr('Delete'),
title: MOB.tr('Delete'),
icon: "ui-icon-alert",
class: "dangerous translate",
click: function() {
MOB.tab.empty();
$('#noSourcesButton').fadeIn('slow');
MOB.dialog.kill($dialog);
}
}
],
open: function () {
$('.ui-widget-overlay').on('click', function() {
MOB.dialog.kill($dialog);
});
var $name = $('<p class="name">').text(MOB.tr('Name'));
var $value = $('<p class="value">').text('All');
$dialog.find('div.content')
.append($name)
.append($value);
}
});
$dialog.dialog('open');
});
},
killFeed:function(feedId, feedName) {
$('#mobDialogs').load('/static/templates/dialogs.html #killDialog', function() {
......@@ -533,7 +593,7 @@ MOB.dialog = {
});
var $name = $('<p class="name">').text(MOB.tr('Name'));
var $value = $('<p class="value">').text(thisFeedName);
var $value = $('<p class="value">').text('Everything');
$dialog.find('div.content')
.append($name)
......
......@@ -228,6 +228,7 @@ MOB.i18n.translations = {
"%1 | Click to rename, drag to re-order" : { fr: "%1 | Clic pour renommer, glisse pour ranger", ja: "%1 | クリックして名前を変更し、ドラッグして再注文します", es: "%1 | Haga clic para cambiar el nombre, arrastre para volver a ordenar" },
"Really delete this source? (%1)" : { fr: "Réellement supprimer cette source (%1) ?", ja: "本当にこのフィードを削除しますか? (%1)", es: "¿Realmente borraste este source? (%1)" },
"Delete source" : { fr: "Supprimer source", ja: "本当にこのフィードを削除しますか", es: "Borraste source" },
"Delete all" : { fr: "Supprimer tout", ja: "すべて削除", es: "Eliminar todos" },
"Really delete this group? (%1, %2 sources)" : { fr: "Réellement supprimer ce groupe (%1, %2 sources) ?", ja: "本当にこのタブを削除しますか? (%1, %2 フィード)", es: "¿Realmente borras esta grupo? (%1, %2 sources)" },
"Options" : { fr: "Options", ja: "嗜好", es: "Preferencias" },
......
......@@ -112,7 +112,9 @@
$(document).ready(function() {
$('#indicatorContainer').radialIndicator({
var $indicatorContainer = $('#indicatorContainer');
$indicatorContainer.radialIndicator({
radius: 30,
barWidth: 3,
barBgColor: 'transparent',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment