PATH:
home
/
centosnipponia
/
public_html
/
nipponiacom2
/
media
/
jui
/
js
function jSelectUser(t){var e=jQuery(t),i=e.data("user-value"),o=e.data("user-name"),n=e.data("user-field"),a=jQuery("#"+n+"_id"),s=jQuery("#"+n);if(a.length){a.val(i).trigger("change"),s.val(o||i).trigger("change");var d,l=a.attr("data-onchange");l&&(d=new Function(l),d.call(a[0])),jModalClose()}}!function(t){"use strict";t.fieldUser=function(e,i){this.options=t.extend({},t.fieldUser.defaults,i),this.$container=t(e),this.$modal=this.$container.find(this.options.modal),this.$modalBody=this.$modal.children(".modal-body"),this.$input=this.$container.find(this.options.input),this.$inputName=this.$container.find(this.options.inputName),this.$buttonSelect=this.$container.find(this.options.buttonSelect),this.$buttonSelect.on("click",this.modalOpen.bind(this)),this.$modal.on("hide",this.removeIframe.bind(this));var o,n=this.$input.attr("data-onchange");n&&(o=new Function(n),this.$input.on("change",o.bind(this.$input)))},t.fieldUser.prototype.modalOpen=function(){var e=t("<iframe>",{name:"field-user-modal",src:this.options.url.replace("{field-user-id}",this.$input.attr("id")),width:this.options.modalWidth,height:this.options.modalHeight});this.$modalBody.append(e),this.$modal.modal("show"),t("body").addClass("modal-open");var i=this;e.load(function(){var e=t(this).contents();e.on("click",".button-select",function(){i.setValue(t(this).data("user-value"),t(this).data("user-name")),i.modalClose(),t("body").removeClass("modal-open")})})},t.fieldUser.prototype.modalClose=function(){this.$modal.modal("hide"),this.$modalBody.empty(),t("body").removeClass("modal-open")},t.fieldUser.prototype.removeIframe=function(){this.$modalBody.empty(),t("body").removeClass("modal-open")},t.fieldUser.prototype.setValue=function(t,e){this.$input.val(t).trigger("change"),this.$inputName.val(e||t).trigger("change")},t.fieldUser.defaults={buttonSelect:".button-select",input:".field-user-input",inputName:".field-user-input-name",modal:".modal",url:"index.php?option=com_users&view=users&layout=modal&tmpl=component",modalWidth:"100%",modalHeight:"300px"},t.fn.fieldUser=function(){return this.each(function(){var e=t(this),i=e.data("fieldUser");if(!i){var o=o||{},n=e.data();for(var a in n)n.hasOwnProperty(a)&&(o[a]=n[a]);i=new t.fieldUser(this,o),e.data("fieldUser",i)}})},t(document).ready(function(){t(".field-user-wrapper").fieldUser()})}(jQuery);
[+]
..
[-] ajax-chosen.js
[edit]
[-] ajax-chosen.min.js
[edit]
[-] bootstrap-tooltip-extended.js
[edit]
[-] bootstrap-tooltip-extended.min.js
[edit]
[-] bootstrap.js
[edit]
[-] bootstrap.min.js
[edit]
[-] chosen.jquery.js
[edit]
[-] chosen.jquery.min.js
[edit]
[-] cms-uncompressed.js
[edit]
[-] cms.js
[edit]
[-] fielduser.js
[edit]
[-] fielduser.min.js
[edit]
[-] html5-uncompressed.js
[edit]
[-] html5.js
[edit]
[-] icomoon-lte-ie7.js
[edit]
[-] index.html
[edit]
[-] jquery-migrate.js
[edit]
[-] jquery-migrate.min.js
[edit]
[-] jquery-noconflict.js
[edit]
[-] jquery.autocomplete.js
[edit]
[-] jquery.autocomplete.min.js
[edit]
[-] jquery.js
[edit]
[-] jquery.min.js
[edit]
[-] jquery.minicolors.js
[edit]
[-] jquery.minicolors.min.js
[edit]
[-] jquery.searchtools.js
[edit]
[-] jquery.searchtools.min.js
[edit]
[-] jquery.simplecolors.js
[edit]
[-] jquery.simplecolors.min.js
[edit]
[-] jquery.ui.core.js
[edit]
[-] jquery.ui.core.min.js
[edit]
[-] jquery.ui.sortable.js
[edit]
[-] jquery.ui.sortable.min.js
[edit]
[-] sortablelist.js
[edit]
[-] treeselectmenu.jquery.js
[edit]
[-] treeselectmenu.jquery.min.js
[edit]
[-] .htaccess.disabled
[edit]