/home/techb158/exp.abdallabala.com/ui/theme/ibilling/lib
NameSizeModeActions
chart/-0755rm
datepaginator/-0755rm
datepicker/-0755rm
fa/-0755rm
icheck/-0755rm
.DS_Store102440644editdlrm
accounts.js13450644editdlrm
add-case.js16430644editdlrm
add-project.js17240644editdlrm
bootbox.min.js129630644editdlrm
cal.js39730644editdlrm
cases-list.js32670644editdlrm
custom-fields.js27260644editdlrm
edit-invoice-bckp.js104860644editdlrm
edit-invoice.js77440644editdlrm
feature-settings.js28000644editdlrm
index.html1120644editdlrm
invoice-v-2-1.js159430644editdlrm
jquery.maskMoney.min.js50700644editdlrm
list-contacts.js3980644editdlrm
login.js00644editdlrm
manage-users.js19420644editdlrm
modal.js266340644editdlrm
moment.js1066180644editdlrm
notes.js2710644editdlrm
pg.js13580644editdlrm
plugins.js17370644editdlrm
progress.js52970644editdlrm
ps-list.js34700644editdlrm
repeating-expense.js42560644editdlrm
repeating-income.js42540644editdlrm
repeating-view.js33880644editdlrm
tasks.js3200644editdlrm
tax.js30980644editdlrm
Edit: /home/techb158/exp.abdallabala.com/ui/theme/ibilling/lib/repeating-view.js (3388B)
$(document).ready(function () { $('.amount').autoNumeric('init'); $("#a_hide").hide(); $("#emsg").hide(); $("#a_toggle").click(function(e){ e.preventDefault(); $("#a_hide").toggle(); }); var _url = $("#_url").val(); $('#tags').select2({ tags: true, tokenSeparators: [','], createSearchChoice: function (term) { return { id: $.trim(term), text: $.trim(term) + ' (new tag)' }; }, ajax: { url: _url + 'tags/expense/', dataType: 'json', data: function(term, page) { return { q: term }; }, results: function(data, page) { return { results: data }; } }, // Take default tags from the input value initSelection: function (element, callback) { var data = []; function splitVal(string, separator) { var val, i, l; if (string === null || string.length < 1) return []; val = string.split(separator); for (i = 0, l = val.length; i < l; i = i + 1) val[i] = $.trim(val[i]); return val; } $(splitVal(element.val(), ",")).each(function () { data.push({ id: this, text: this }); }); callback(data); }, // Some nice improvements: // max tags is 3 maximumSelectionSize: 15, // override message for max tags formatSelectionTooBig: function (limit) { return "Max tags is " + limit; } }); $("#submit").click(function (e) { e.preventDefault(); $(this).html(' Working ...'); $(this).addClass("btn-danger"); var _url = $("#_url").val(); $.post(_url + 'repeating/expense-post/', { account: $('#account').val(), date: $('#date').val(), frequency: $('#frequency').val(), np: $('#np').val(), amount: $('#amount').val(), cats: $('#cats').val(), description: $('#description').val(), tags: $('#tags').val(), payee: $('#payee').val(), pmethod: $('#pmethod').val(), ref: $('#ref').val() }) .done(function (data) { setTimeout(function () { var sbutton = $("#submit"); var _url = $("#_url").val(); if ($.isNumeric(data)) { location.reload(); } else { sbutton.html(' Submit'); sbutton.removeClass("btn-danger"); var body = $("html, body"); body.animate({scrollTop:0}, '1000', 'swing'); $("#emsgbody").html(data); $("#emsg").show("slow"); } }, 2000); }); }); });