Default float money to real money
value.toLocaleString('pt-br', {minimumFractionDigits: 2})
Postcode
import MaskedInput from 'react-text-mask';
function nextString(str) { | |
let chars = "346789ABCDEFGHJKLMNPQRTUVWXYZ"; | |
let result = ""; | |
let carry = true; | |
for (let i = str.length - 1; i >= 0; i--) { | |
let index = chars.indexOf(str[i]); |
<?php | |
/** | |
* Use | |
*/ | |
class Module_Adminhtml_Block_Config_Data extends Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract | |
{ | |
protected $_textareaRenderer; | |
public function __construct() | |
{ |
$(document).ready(function() { | |
// Support for AJAX loaded modal window. | |
// Focuses on first input textbox after it loads the window. | |
$('[data-toggle="modal"]').click(function(e) { | |
e.preventDefault(); | |
var url = $(this).attr('href'); | |
if (url.indexOf('#') == 0) { | |
$(url).modal('open'); | |
} else { |