src/pyams_portal/resources/js/portal.js
changeset 130 26038059e74d
parent 124 affd5d9de631
child 140 95bee9c0ae3f
equal deleted inserted replaced
129:481310ae09ad 130:26038059e74d
   194 
   194 
   195 			deleteRow: function() {
   195 			deleteRow: function() {
   196 				return function(row) {
   196 				return function(row) {
   197 					MyAMS.skin.bigBox({
   197 					MyAMS.skin.bigBox({
   198 						title: MyAMS.i18n.WARNING,
   198 						title: MyAMS.i18n.WARNING,
   199 						content: '<i class="text-danger fa fa-2x fa-bell shake animated"></i>&nbsp; ' + MyAMS.i18n.DELETE_WARNING,
   199 						content: '<i class="text-danger fa fa-2x fa-bell"></i>&nbsp; ' + MyAMS.i18n.DELETE_WARNING,
       
   200 						status: 'info',
   200 						buttons: MyAMS.i18n.BTN_OK_CANCEL
   201 						buttons: MyAMS.i18n.BTN_OK_CANCEL
   201 					}, function(button) {
   202 					}, function(button) {
   202 						if (button === MyAMS.i18n.BTN_OK) {
   203 						if (button === MyAMS.i18n.BTN_OK) {
   203 							if (!row.hasClass('row')) {
   204 							if (!row.hasClass('row')) {
   204 								row = row.parents('.row');
   205 								row = row.parents('.row');
   392 
   393 
   393 			deleteSlot: function() {
   394 			deleteSlot: function() {
   394 				return function(slot) {
   395 				return function(slot) {
   395 					MyAMS.skin.bigBox({
   396 					MyAMS.skin.bigBox({
   396 						title: MyAMS.i18n.WARNING,
   397 						title: MyAMS.i18n.WARNING,
   397 						content: '<i class="text-danger fa fa-2x fa-bell shake animated"></i>&nbsp; ' + MyAMS.i18n.DELETE_WARNING,
   398 						content: '<i class="text-danger fa fa-2x fa-bell"></i>&nbsp; ' + MyAMS.i18n.DELETE_WARNING,
       
   399 						status: 'info',
   398 						buttons: MyAMS.i18n.BTN_OK_CANCEL
   400 						buttons: MyAMS.i18n.BTN_OK_CANCEL
   399 					}, function(button) {
   401 					}, function(button) {
   400 						if (button === MyAMS.i18n.BTN_OK) {
   402 						if (button === MyAMS.i18n.BTN_OK) {
   401 							if (!slot.hasClass('slot')) {
   403 							if (!slot.hasClass('slot')) {
   402 								slot = slot.parents('.slot');
   404 								slot = slot.parents('.slot');
   532 
   534 
   533 			deletePortlet: function() {
   535 			deletePortlet: function() {
   534 				return function(portlet) {
   536 				return function(portlet) {
   535 					MyAMS.skin.bigBox({
   537 					MyAMS.skin.bigBox({
   536 						title: MyAMS.i18n.WARNING,
   538 						title: MyAMS.i18n.WARNING,
   537 						content: '<i class="text-danger fa fa-2x fa-bell shake animated"></i>&nbsp; ' + MyAMS.i18n.DELETE_WARNING,
   539 						content: '<i class="text-danger fa fa-2x fa-bell"></i>&nbsp; ' + MyAMS.i18n.DELETE_WARNING,
       
   540 						status: 'info',
   538 						buttons: MyAMS.i18n.BTN_OK_CANCEL
   541 						buttons: MyAMS.i18n.BTN_OK_CANCEL
   539 					}, function(button) {
   542 					}, function(button) {
   540 						if (button === MyAMS.i18n.BTN_OK) {
   543 						if (button === MyAMS.i18n.BTN_OK) {
   541 							if (!portlet.hasClass('portlet')) {
   544 							if (!portlet.hasClass('portlet')) {
   542 								portlet = portlet.parents('.portlet');
   545 								portlet = portlet.parents('.portlet');