Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

gallery-2014.02.26-18-54 ItsAsbreuk gallery-itsaformmodel

  • Loading branch information...
commit 88b43d619363e44835dca542d99d3ab18fd86100 1 parent 2c28b9f
Eugene Kashida ekashida authored
Showing with 334 additions and 79 deletions.
  1. +2 −2 build/gallery-itsaformmodel/gallery-itsaformmodel-coverage.js
  2. +94 −9 build/gallery-itsaformmodel/gallery-itsaformmodel-debug.js
  3. +4 −4 build/gallery-itsaformmodel/gallery-itsaformmodel-min.js
  4. +93 −8 build/gallery-itsaformmodel/gallery-itsaformmodel.js
  5. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel.js
  6. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_ar.js
  7. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_bg.js
  8. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_bs.js
  9. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_cs.js
  10. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_da.js
  11. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_de.js
  12. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_en.js
  13. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_es.js
  14. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_fa.js
  15. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_fi.js
  16. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_fr.js
  17. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_he.js
  18. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_hi.js
  19. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_hr.js
  20. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_hu.js
  21. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_it.js
  22. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_ja.js
  23. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_nb.js
  24. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_nl.js
  25. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_pl.js
  26. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_pt.js
  27. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_ru.js
  28. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_sk.js
  29. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_sr.js
  30. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_sv.js
  31. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_uk.js
  32. +1 −1  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_zh.js
  33. +1 −1  src/gallery-itsaformmodel/docs/index.mustache
  34. +93 −8 src/gallery-itsaformmodel/js/gallery-itsaformmodel.js
  35. +2 −2 src/gallery-itsaformmodel/logs/tests.json
  36. +17 −17 src/gallery-itsaformmodel/logs/yogi.stdout.log
4 build/gallery-itsaformmodel/gallery-itsaformmodel-coverage.js
View
2 additions, 2 deletions not shown
103 build/gallery-itsaformmodel/gallery-itsaformmodel-debug.js
View
@@ -405,7 +405,7 @@ ITSAFormModel.prototype.initializer = function() {
instance._ATTRS_nodes = {},
/**
- * internal backup of which nodeid's have been inserted in the dom before, referenced by nodei's
+ * internal backup of which nodeid's have been inserted in the dom before, referenced by nodeid's
* object-properties are 'true' when not found the be removed from the dom yet and a timestamps when
* out of the dom (stamped with the time out-of-dom was registered)
* @property _knownNodeIds
@@ -640,15 +640,15 @@ ITSAFormModel.prototype.disableUI = function() {
* Only to be used when destroyed - or when a containernode gets empty.
*
* @method cleanup
+ * @param [container] {Y.Node} only cleanup items inside this container
* @protected
* @since 0.1
*/
-ITSAFormModel.prototype.cleanup = function() {
- // TODO: also destroy the widgets in case their nodeid's are in the dom
+ITSAFormModel.prototype.cleanup = function(container) {
var instance = this;
- instance._FORM_elements = {};
- instance._ATTRS_nodes = {};
- instance._knownNodeIds = {};
+/*jshint expr:true */
+ container ? instance._cleanupContainer(container) : instance._cleanup();
+/*jshint expr:false */
};
/**
@@ -1703,7 +1703,7 @@ ITSAFormModel.prototype.translatePromise = ITSAFormModel.translatePromise;
* @since 0.1
*/
ITSAFormModel.prototype.validated = function() {
- Y.log('destructor', 'info', 'ITSAFormModel');
+ Y.log('validated', 'info', 'ITSAFormModel');
return (this.getUnvalidatedUI().size()===0);
};
@@ -1958,6 +1958,87 @@ ITSAFormModel.prototype._bindUI = function() {
};
/**
+ * Cleans up internal references of everything the formmodel has inserted in the dom.
+ * Only to be used when destroyed - or when a containernode gets empty.
+ *
+ * @method _cleanup
+ * @protected
+ * @private
+ * @since 0.1
+*/
+ITSAFormModel.prototype._cleanup = function() {
+ var instance = this,
+ formelements = instance.getCurrentFormElements(),
+ node;
+ YArray.each(
+ formelements,
+ function(formelement) {
+/*jshint expr:true */
+ formelement.widget && formelement.widget.destroy(true);
+/*jshint expr:false */
+ node = Y.one('#'+formelement.nodeid);
+ if (node) {
+ node.get('childNodes').destroy(true);
+ node.remove(true);
+ }
+ }
+ );
+ instance._FORM_elements = {};
+ instance._ATTRS_nodes = {};
+ instance._knownNodeIds = {};
+};
+
+/**
+ * Cleans up internal references of everything the formmodel has inserted inside the container.
+ * Only to be used when a containernode gets empty.
+ *
+ * @method _cleanupContainer
+ * @param [container] {Y.Node} only cleanup items inside this container
+ * @protected
+ * @private
+ * @since 0.1
+*/
+ITSAFormModel.prototype._cleanupContainer = function(container) {
+ var instance = this,
+ attributenodes = instance._ATTRS_nodes,
+ formelements = instance._FORM_elements,
+ knownNodeIds = instance._knownNodeIds,
+ knowdIdsRemoval = [],
+ node, formelement, attribute, indexofitem;
+ YObject.each(
+ knownNodeIds,
+ function(value, nodeid) {
+ formelement = formelements[nodeid];
+ node = container.one('#'+nodeid);
+ // remove node
+ if (node) {
+/*jshint expr:true */
+ formelement.widget && formelement.widget.destroy(true);
+/*jshint expr:false */
+ node.get('childNodes').destroy(true);
+ node.remove(true);
+ delete formelements[nodeid];
+ // now find the inside the array _ATTRS_nodes[attribute] for the item that holds ref. to the nodeid
+ attribute = formelement.name;
+ indexofitem = attributenodes[attribute].indexOf(nodeid);
+/*jshint expr:true */
+ indexofitem && attributenodes[attribute].splice(indexofitem, 1);
+/*jshint expr:false */
+ // now store the nodeid, because it has to be removed from instance._knownNodeIds
+ knowdIdsRemoval.push(nodeid);
+ }
+ }
+ );
+ // now remove it from knownNodeIds
+ YArray.each(
+ knowdIdsRemoval,
+ function(nodeid) {
+ delete knownNodeIds[nodeid];
+ }
+ );
+};
+
+/**
* Cleaning up all eventlisteners
*
* @method _clearEventhandlers
@@ -2034,7 +2115,11 @@ ITSAFormModel.prototype._defFn_changedate = function(e) {
// be carefull: button might not exist anymore, when the view is rerendered
if (node) {
node.removeAttribute(DATA_CONTENT);
- node.focus();
+ try {
+ // ALWAYS focus nodes using try/catch to prevent js-error when node not in the dom
+ node.focus();
+ }
+ catch(err) {}
tipsycontent = node.getAttribute(DATA+'-contentvalid');
/*jshint expr:true */
tipsycontent && node.setAttribute(DATA_CONTENT, tipsycontent);
@@ -2720,7 +2805,7 @@ YArray.each(
}
);
-}, 'gallery-2014.01.10-22-44', {
+}, 'gallery-2014.02.26-18-54', {
"requires": [
"yui-base",
"event-valuechange",
8 build/gallery-itsaformmodel/gallery-itsaformmodel-min.js
View
@@ -1,4 +1,4 @@
-YUI.add("gallery-itsaformmodel",function(e,t){"use strict";var n=e.Array,r=e.Object,i=e.Node,s=e.Lang,o=e.Intl,u=e.ITSAFormElement,a="notification",f="datachanged",l="wantreload",c="noreloadmsg",h="UNDEFINED FORM-ELEMENT",p="inputrequired",d="itsa-invisible",v='<span style="background-color:F00; color:#FFF">DUPLICATED FORMELEMENT is not allowed</span>',m=5e3,g=1728e5,y=864e5,b="true",w="disabled",E="was-"+w,S=w+"-checked",x="button",T="pure-"+x+"-"+w,N="-before",C='span[data-for="',k="slider",L="editorBase",A="itsabutton-asktoclick",O="onenter",M="submit"+O,_="primarybtn"+O,D="data-",P=D+M,H=D+_,B=D+"focusnext"+O,j={button:!0,destroy:!0,remove:!0,reset:!0,save:!0,submit:!0,load:!0},F="gallery-itsa",I=F+"formmodel",q="function",R="renderpromise",U="click",z="save",W="load",X="destroy",V="remove",$="Promise",J="submit",K="date",Q="time",G=K+Q,Y="number",Z="string",et="boolean",tt="picker",nt="error",rt="data",it="value",st="type",ot=rt+"-"+x+"sub"+st,ut=rt+"-"+x+st,at=rt+"-modelattribute",ft="id",lt=rt+"-content",ct={text:!0,number:!0,password:!0,email:!0,url:!0},ht="reset",pt="focusnext",dt="validationerror",vt="uichanged",mt=x+":"+U,gt=X+":"+U,yt=V+":"+U,bt=J+":"+U,wt=ht+":"+U,Et=z+":"+U,St=W+":"+U,xt=K+tt+U,Tt=Q+tt+U,Nt=K+Q+tt+U,Ct=function(t){if(typeof t=="string")try{return e.JSON.parse(t)}catch(n){return this.fire(nt,{error:n,response:t,src:"parse"}),{}}return t||{}},kt="broadcast",Lt="published",At={readOnly:1,writeOnce:1,getter:1,broadcast:1,formtype:1,formconfig:1},Ot=e.ITSAFormModel=e.Base.create("itsaformmodel",e.Model,[],{},{_ATTR_CFG:["formtype","formconfig","validationerror"]});Ot.prototype._widgetValueFields={},Ot.prototype._allowedFormTypes={text:!0,number:!0,password:!0,textarea:!0,checkbox:!0,date:!0,time:!0,datetime:!0,email:!0,url:!0,plain:!0},Ot.prototype._dateTimeTypes={date:!0,time:!0,datetime:!0},Ot.prototype._datePickerClicks={datepickerclick:!0,timepickerclick:!0,datetimepickerclick:!0},Ot.prototype.initializer=function(){var t=this;t._eventhandlers=[],t._FORM_elements={},t._ATTRS_nodes={},t._knownNodeIds={},t._lifeUpdate=!1,t._intl=o.get(I),t._renderBtnFns={button:t.renderBtn,destroy:t.renderDestroyBtn,remove:t.renderRemoveBtn,reset:t.renderResetBtn,save:t.renderSaveBtn,load:t.renderLoadBtn,submit:t.renderSubmitBtn},t.publish(vt,{defaultFn:e.bind(t._defFn_uichanged,t),emitFacade:!0}),t.publish(gt,{defaultFn:e.bind(t.destroy,t),emitFacade:!0}),t.publish(yt,{defaultFn:e.bind(t.destroy,t,{remove:!0,fromInternal:!0}),emitFacade:!0}),t.publish(bt,{defaultFn:e.bind(t.submit,t,{fromInternal:!0}),emitFacade:!0}),t.publish(wt,{defaultFn:function(){t.reset()},emitFacade:!0}),t.publish(Et,{defaultFn:e.bind(t.save,t,{fromInternal:!0}),emitFacade:!0}),t.publish(St,{defaultFn:e.bind(t.load,t,{fromInternal:!0}),emitFacade:!0}),t.publish(xt,{defaultFn:e.bind(t._defFn_changedate,t),emitFacade:!0}),t.publish(Tt,{defaultFn:e.bind(t._defFn_changedate,t),emitFacade:!0}),t.publish(Nt,{defaultFn:e.bind(t._defFn_changedate,t),emitFacade:!0}),t._bindUI(),t._gcTimer=e.later(y,t,t._garbageCollect,null,!0)},Ot.prototype.crossValidation=function(){},Ot.prototype.disableUI=function(){var t=this,n=t._FORM_elements;r.each(n,function(t,n){var r=e.one("#"+n),i=t.widget,s,o,u,a;if(r){if(i){o=i.get(w)&&!r.getData(S);if(!o){try{t.type.NAME===L?i.hide():i.disable()}catch(f){}t.type.NAME===k&&(u=e.one(C+n+'"]'),u&&u.setAttribute(w,w))}}else s=r.get("tagName")==="BUTTON"&&r.getAttribute(st)===x,a=r.getAttribute("data-datetimepicker")===b,o=r.get(w)&&!r.getData(S),s&&(o=o||r.hasClass(T)&&!r.getData(S),o||r.addClass(T)),o||r.setAttribute(w,w),r.setData(E,o),a&&(u=e.one(C+n+'"]'),u&&u.setAttribute(w,w));r.setData(S,!0),o&&r.setData(N,!0)}})},Ot.prototype.cleanup=function(){var e=this;e._FORM_elements={},e._ATTRS_nodes={},e._knownNodeIds={}},Ot.prototype.enableUI=function(){var t=this,n=t._FORM_elements;r.each(n,function(t,n){var r=e.one("#"+n),i=t.widget,s,o,u,a;r&&(o=r.getData(N),o?r.clearData(N):i?(t.type.NAME===L?i.show():i.enable(),t.type.NAME===k&&(u=e.one(C+n+'"]'),u&&u.removeAttribute(w))):(s=r.get("tagName")==="BUTTON"&&r.getAttribute(st)===x,a=r.getAttribute("data-datetimepicker")===b,r.getData(E)||(r.removeAttribute(w),s&&r.removeClass(T)),r.clearData(E),a&&(u=e.one(C+n+'"]'),u&&u.removeAttribute(w))),r.clearData(S))})},Ot.prototype.getCurrentFormElement=function(e){return this.getCurrentFormElements(e)[0]||null},Ot.prototype.getCurrentFormElements=function(t){var i=this,s=i._ATTRS_nodes[t],o=[],u;return s?n.each(s,function(t){var n=e.one("#"+t);n&&(u=i._FORM_elements[t],u.node=n,o.push(u))}):r.each(i._FORM_elements,function(n){var r=e.one("#"+n.nodeid);r&&r.getAttribute("name")===t&&(n.node=r,o.push(n))}),o},Ot.prototype.getUI=function(t){var n=this,r,i,o,u,a,f,l,c;return u=n._ATTRS_nodes[t],o=u&&u.length>0&&u[0],i=n._FORM_elements,r=o&&i[o],r&&(a=e.one("#"+o))&&a.getAttribute(at)&&(l=r.widget,c=r.type,f=l?n._getWidgetValue(l,c):a.get(it),s.isValue(f)&&(n._dateTimeTypes[c]&&(f=new Date(parseInt(f,10))),c===Y&&(f=r.config.digits?parseFloat(f):parseInt(f,10)))),f},Ot.prototype.getUnvalidatedUI=function(){var t=this,i,o,u,a=[];return r.each(this._FORM_elements,function(n){n.widget||(i=e.one("#"+n.nodeid),i&&i.get("tagName")!=="BUTTON"&&(o=t._validValue(i,n,n.name,i.get(it)),t._setNodeValidation(i,o),o||a.push(i)))}),u=t.crossValidation(),s.isArray(u)&&u.length>0&&n.each(u,function(r){var i=r.attribute,s=i&&t._ATTRS_nodes[i];s&&n.each(s,function(n){var i=e.one("#"+n),s=r.validationerror,o;i&&(o=typeof s===Z?s:null,t._setNodeValidation(i,!1,o),a.push(i))})}),new e.NodeList(a)},Ot.prototype.modifyAttr=function(e,t){var n=this,r,i;if(n.attrAdded(e)){n._isLazyAttr(e)&&n._addLazyAttr(e),i=n._state;for(r in t)At[r]&&t.hasOwnProperty(r)&&(i.add(e,r,t[r]),r===kt&&i.remove(e,Lt))}},Ot.prototype[V]=function(){this.fire(V)},Ot.prototype.renderBtn=function(e,t){return this._renderBtn(e,t,x)},Ot.prototype.renderDestroyBtn=function(e,t){return this._renderBtn(e,t,X)},Ot.prototype.renderLoadBtn=function(e,t){return this
-._renderBtn(e,t,W)},Ot.prototype.renderRemoveBtn=function(e,t){return this._renderBtn(e,t,V)},Ot.prototype.renderResetBtn=function(e,t){return this._renderBtn(e,t,ht)},Ot.prototype.renderSaveBtn=function(e,t){return this._renderBtn(e,t,z)},Ot.prototype.renderSubmitBtn=function(e,t){return this._renderBtn(e,t,J)},Ot.prototype.renderFormElement=function(t){var r=this,s=r._knownNodeIds,o,a,f,l,c,p,g,y,b,w,E,S,x,T;return o=r._FORM_elements,a=r._ATTRS_nodes,f=r.get(t),l=r._getAttrCfg(t),g=l.formtype||"text",S=typeof g===q&&g.NAME,S||r._allowedFormTypes[g]?(y=l.formconfig||{},y.value=f,S&&(b=r._getWidgetValueField(g),y.widgetconfig||(y.widgetconfig={}),x=typeof b!==Z,x?n.each(b,function(e){y.widgetconfig[e]=f}):y.widgetconfig[b]=f),y.modelattribute=!0,y.name=t,y.tooltipinvalid=l.validationerror,y.removerequired=!0,delete y.pattern,y.removepattern=!0,y.hideatstartup=!0,c=u.getElement(g,y),w=c.nodeid,o[w]=c,a[t]||(a[t]=[]),a[t].push(w),E=c.widget,E?(E.addTarget(r),T=g.NAME===L,e.use(T?F+"editor"+R:F+"widget"+R,function(){E.renderPromise().then(function(){var t=e.one("#"+w);E.addTarget(r),s[w]?t.insert(v,"replace"):(s[w]=!0,T&&t.removeClass(d),r._modelToUI(w),!T&&t.removeClass(d))})}),x?n.each(b,function(t){r._eventhandlers.push(E.after(t+"Change",function(t){var n=vt,i;t.fromInternal||(i={target:r,value:t.newVal,formElement:c,node:e.one("#"+w),nodeid:w,type:n},r.fire(n,i))}))}):r._eventhandlers.push(E.after(b+"Change",function(t){var n=vt,i;t.fromInternal||(i={target:r,value:t.newVal,formElement:c,node:e.one("#"+w),nodeid:w,type:n},r.fire(n,i))}))):i.availablePromise("#"+w,m).then(function(t){s[w]?t.insert(v,"replace"):(s[w]=!0,r._modelToUI(w),t.removeClass(d),r._dateTimeTypes[g]&&(t=e.one('span.formatvalue[data-for="'+w+'"]'),t&&t.removeClass(d)))},function(e){}),p=c.html,c.widget&&c.widget.addTarget(r)):p=h,p},Ot.prototype.reset=function(){var e=this,t;e._internalChange=!0,Ot.superclass.reset.apply(e,arguments),arguments.length===0&&(e._internalChange=null,e._modelToUI(),e._removeValidation(),t={type:ht,target:e},e.fire(ht,t))},Ot.prototype.setLifeUpdate=function(e){var t=this;return typeof e===et&&(t._lifeUpdate=e),t},Ot.prototype.setResetAttrs=function(){var e=this,t=e.getAttrs();delete t.clientId,delete t.destroyed,delete t.initialized,e.idAttribute!==ft&&delete t.id,r.each(t,function(t,n){t&&e._state.add(n,"initValue",t)})},Ot.setWidgetValueField=function(e,t){this._widgetValueFields[e]=t},Ot.prototype.setWidgetValueField=Ot.setWidgetValueField,Ot.prototype[J]=function(e,t){var n=this,r;return(r=n.submitPromise(e))&&t&&r.then(function(e){t(null,e)},function(e){t(e)}),n},Ot.prototype[J+$]=function(e){return this._createPromise(J,e)},Ot.prototype.toJSONUI=function(e,t){var i=this,o={},u=i.getAttrs(),a=i._renderBtnFns,f,l,c,h,p,d,v,m;return delete u.clientId,delete u.destroyed,delete u.initialized,i.idAttribute!==ft&&delete u.id,r.each(u,function(e,n){t&&(d=new RegExp("{"+n+"}"),v=new RegExp("<%==? (data|this)."+n+" %>"),m=d.test(t)||v.test(t)),(!t||m)&&(o[n]=i.renderFormElement(n))}),s.isObject(e)?(f=e.propertykey,l=e.type,c=e.labelHTML,h=e.config,f&&l&&a[l]&&(o[f]=a[l].call(i,c,h))):s.isArray(e)&&n.each(e,function(e){f=e.propertykey,l=e.type,c=e.labelHTML,h=e.config,f&&l&&a[l]&&(o[f]=a[l].call(i,c,h))}),p=i.toJSON(),r.each(p,function(e,t){o["_"+t]=e}),o},Ot.prototype.UIToModel=function(t){var i=this,o,u,a,f,l,c,h,p;return u=i._FORM_elements,o=t&&u[t],o&&(f=e.one("#"+t))&&f.getAttribute(at)?(h=o.widget,p=o.type,l=h?i._getWidgetValue(h,p):f.get(it),c=o.name,s.isValue(l)&&(a={formelement:!0},i._dateTimeTypes[p]&&(l=new Date(parseInt(l,10))),p===Y&&(l=o.config.digits?parseFloat(l):parseInt(l,10)),i.set(c,l,a))):t||r.each(i._ATTRS_nodes,function(e){n.each(e,function(e){i.UIToModel(e)})}),i},Ot.prototype.translate=function(e){return this._intl[e]||e},Ot.translatePromise=function(t){return e.usePromise("intl").then(function(){var e=o.get(I);return e[t]||t},function(){return t})},Ot.prototype.translatePromise=Ot.translatePromise,Ot.prototype.validated=function(){return this.getUnvalidatedUI().size()===0},Ot.prototype.destructor=function(){var e=this;e._clearEventhandlers(),e._removeTargets(),e.cleanup(),e._widgetValueFields={},e._gcTimer.cancel()},e.Node.prototype.displayInDoc=function(){var e=this,t=e.inDoc();while(e&&t)t=e.getStyle("display")!=="none",t&&(e=e.get("parentNode"));return t},Ot.prototype._bindUI=function(){var t=this,n=t._eventhandlers,i=e.one("body");n.push(i.delegate([xt,Tt,Nt,mt,St,Et,gt,yt,bt,wt],function(e){var n=e.type,r=e.target,i=t._FORM_elements[r.get(ft)],s,o,u;i&&(e.preventDefault(),o=r.getAttribute(it),t._datePickerClicks[n]&&(u=new Date,u.setTime(parseInt(o,10)),o=u),s={target:t,value:o,formElement:t._FORM_elements[r.get(ft)],buttonNode:r,type:n},t.fire(n,s))})),n.push(i.delegate("valuechange",function(e){var n=e.target,r=vt,i={target:t,value:n.get(it),formElement:t._FORM_elements[n.get(ft)],node:n,nodeid:n.get(ft),type:r};t.fire(r,i)},function(e,n){return n&&n.target&&t._FORM_elements[n.target.get(ft)]})),n.push(t.after("*:change",function(n){var i=n.changed,s=!1;!t._internalChange&&!n.formelement&&!n.fromInternal?(r.some(i,function(e,n){return s=t._ATTRS_nodes[n],s}),s&&e.use(F+"dialog",function(){var n=t._intl;t._lifeUpdate?e.confirm(n[a],n[f]+".<br />"+n[l]+"? ("+n[c]+").").then(e.bind(t._modelToUI,t,null),e.bind(t.UIToModel,t,null)):e.confirm(n[a],n[f]+".<br />"+n[l]+"?").then(e.bind(t._modelToUI,t,null))})):n.fromInternal&&t._modelToUI()})),n.push(i.delegate("keydown",function(e){e.halt();var n=e.target,r=n.getAttribute(P)==="true",i=n.getAttribute(H)==="true",s,o,u;i&&(u=t._findPrimaryBtnNode())?u.simulate(U):r?t.submit({fromInternal:!0}):(s=pt,o={target:e.target,type:s},t.fire(s,o))},function(e,n){var r=n.target,i=t._FORM_elements[r.get(ft)];return i&&n.keyCode===13&&(ct[i.type]||r.getAttribute(P)==="true"||r.getAttribute(H)==="true"||r.getAttribute(B)==="true")})),n.push(t.on([Et,bt],function(e){var n;n=t.getUnvalidatedUI(),n.isEmpty()?t.UIToModel():(e.preventDefault
-(),t.fire(dt,{target:t,nodelist:n,src:e.type}))})),n.push(e.Intl.on("intl:langChange",function(){t._intl=e.Intl.get(I)})),n.push(e.on(A,function(e){var n=e.buttonNode,r;t._FORM_elements[n.get("id")]&&(r=n.get("value"),t.fire((j[r]?r:x)+":click",{buttonNode:n,value:r}))}))},Ot.prototype._clearEventhandlers=function(){n.each(this._eventhandlers,function(e){e.detach()})},Ot.prototype._defFn_changedate=function(t){var n=t.target,r=t.type,i=t.buttonNode,o=e.ItsaDateTimePicker,u=t.formElement,a=s.isDate(t.value)?t.value:new Date,f,l,c;r===xt?f=e.bind(o.getDate,o):r===Tt?f=e.bind(o.getTime,o):r===Nt&&(f=e.bind(o.getDateTime,o)),f(new Date(a),{alignToNode:i,modal:!0,forceSelectdate:!1}).then(function(e){l=u.config.format,n._updateDateTimeUI(u.name,e,r,l),n._lifeUpdate&&n.UIToModel(i.get(ft))},function(){return!0}).then(function(){var e=pt,t={target:i,type:e};i&&(i.removeAttribute(lt),i.focus(),c=i.getAttribute(rt+"-contentvalid"),c&&i.setAttribute(lt,c)),n.fire(e,t)})},Ot.prototype["_defFn_"+J]=function(e){var t=this,n=e.options,i=e.promiseReject,s,o,u,a={options:n};return t._validate(t.toJSON(),function(f){f?(a.error=f,a.src=J,t._lazyFireErrorEvent(a),i(new Error(f))):(s=function(e){a.error=e,a.src=J,t._lazyFireErrorEvent(a),i(new Error(e))},o=function(i){var s;e.response=i,s=Ct(i),s.responseText&&(s=s.responseText),r.keys(s).length>0&&(e.parsed=s,t.setAttrs(s,(n.fromInternal=!0)&&n)),t.changed={},e.promiseResolve(i)},(u=t.getUnvalidatedUI())&&u.isEmpty()?t.syncPromise?t._syncTimeoutPromise(J,n).then(o,s):t.sync(J,n,function(e,t){e?s(e):o(t)}):(s(t._intl.unvalidated),t.fire(dt,{target:t,nodelist:u,src:J})))}),e.promise},Ot.prototype._defFn_uichanged=function(e){var t=this,r=e.formElement,i=r.name,s=r.type,o=e.value,u,a,f;r.widget?(f=this._getWidgetValueField(s),typeof f===Z?t._updateSimularWidgetUI(e.nodeid,i,f,o):n.each(f,function(n){t._updateSimularWidgetUI(e.nodeid,i,n,o,!0)})):(u=e.node,a=t._validValue(u,r,i,o),t._updateSimularUI(u,i,o,a),t._lifeUpdate&&a&&t.UIToModel(u.get(ft)))},Ot.prototype._findPrimaryBtnNode=function(){var t=this._FORM_elements,n;return r.some(t,function(t,r){var i=t.config.primary,s=typeof i===et&&i;return n=s&&e.one("#"+r),n}),n},Ot.prototype._garbageCollect=function(){var t=this,i=(new Date).getTime(),s=t._ATTRS_nodes,o=t._FORM_elements,u=t._knownNodeIds,a=[],f,l,c,h;i-=g,r.each(u,function(t,r,u){typeof t===et?e.one("#"+r)||(u[r]=(new Date).getTime()):t<i&&(c=o[r],h=c.name,f=s[h],l=f&&n.indexOf(f,r),delete o[r],l>0&&f.splice(l,1),a.push(r))}),n.each(a,function(e){delete u[e]})},Ot.prototype._getWidgetValue=function(e,t){if(e&&t.NAME===L&&e.itsatoolbar)return e.itsatoolbar.getContent();var n=this._getWidgetValueField(t);return e&&e.get(typeof n===Z?n:n[0])},Ot.prototype._getWidgetValueField=function(e){var t=typeof e===q&&e.NAME;return t&&this._widgetValueFields[e.NAME]||it},Ot.prototype._modelToUI=function(t){var n=this,i,s,o,u,a,f,l,c,h;s=n._FORM_elements,i=t&&s[t],i&&(o=e.one("#"+t))&&o.getAttribute(at)?(f=i.widget,a=i.name,u=n.get(a,u)||"",f?(h=this._getWidgetValueField(i.type),f.set(typeof h===Z?h:h[0],u,{fromInternal:!0})):(l=i.type,n._dateTimeTypes[l]?(c=i.config.format,n._updateDateTimeUI(i.name,u,l,c)):o.set(it,u))):t||r.each(n._FORM_elements,function(e,t){n._modelToUI(t)})},Ot.prototype._removeTargets=function(){var e=this;r.each(e._FORM_elements,function(t){var n=t.widget;n&&n.removeTarget(e)})},Ot.prototype._removeValidation=function(){var t=this;r.each(t._FORM_elements,function(n){var r=e.one("#"+n.nodeid);r&&t._setNodeValidation(r,!0)})},Ot.prototype._renderBtn=function(e,t,n){var r=this,s=r._FORM_elements,o=r._knownNodeIds,a,f;return t||(t={}),n||(n=x),e||(e=n),t[rt]||(t[rt]=""),t[it]||(t[it]=n),t[rt]+=" "+ot+'="'+n+'"',t.buttontype=x,t.labelHTML=e,a=u.getElement(x,t),f=a.nodeid,s[f]=a,i.availablePromise("#"+f,m).then(function(e){o[f]?e.insert(v,"replace"):o[f]=!0}),a.html},Ot.prototype._updateDateTimeUI=function(t,r,i,o){var u=this,a=u._ATTRS_nodes[t];a&&(o||(i===K?o="%x":i===Q?o="%X":o="%x %X"),n.each(a,function(t){var n=e.one("#"+t),i=e.one('span[data-for="'+t+'"]'),u=s.isDate(r);u&&n&&n.set(it,r.getTime()),i&&i.set("text",u?e.Date.format(r,{format:o}):"invalid Date: "+r)}))},Ot.prototype._updateSimularUI=function(t,r,i,s){var o=this,u=o._ATTRS_nodes[r];u&&n.each(u,function(n){var r=e.one("#"+n);r&&(r!==t&&r.set(it,i),o._setNodeValidation(r,s))})},Ot.prototype._setNodeValidation=function(e,t,n){var r;e.setAttribute(rt+"-valid",t),r=n||e.getAttribute(lt+(t?"valid":"invalid")),!t&&!n&&r===""&&(r=this._intl[p]),r?e.setAttribute(lt,r):e.removeAttribute(lt)},Ot.prototype._updateSimularWidgetUI=function(t,r,i,s,o){var u=this,a=u._ATTRS_nodes[r],f,l;a&&n.each(a,function(n){f=u._FORM_elements[n],l=f&&f.widget,(n!==t||o)&&l&&l.set(i,s);if(l&&f.type.NAME===k){var r=e.one('span[data-for="'+n+'"]');r&&r.set("text",s)}}),u._lifeUpdate&&u.UIToModel(t)},Ot.prototype._validValue=function(e,t,n,r){var i=this,s=t.type,o=s===K||s===Q||s===G||s==="checkbox",u,a,f,l,c,h,p,d,v,m;return o||(u=i._getAttrCfg(n),d=u.formconfig,p=d&&d.required,h=typeof p===et&&p||s==="password",v=r===""&&!h,v||(a=u.validator,f=e.getAttribute(rt+"-pattern"),l=!a||a(s===Y?t.config.digits?parseFloat(r):parseInt(r,10):r),typeof l===et||(l=!1),c=!f||(new RegExp(f,"i")).test(r),m=r!==""||!h)),o||v||l&&c&&m},Ot.prototype._widgetValueFields.itsacheckbox="checked",Ot.prototype._widgetValueFields.itsacheckboxgroup="checked",Ot.prototype._widgetValueFields.toggleButton=["checked","pressed"],Ot.prototype._widgetValueFields.editorBase="content",n.each([x,z,X,V,W],function(t){var n={on:function(e,n,r){n._handle=e.on(U,function(e){var n=e.target;n&&n.get("tagName")!=="BUTTON"&&(n=n.get("parentNode"),e.target=n),n&&n.getAttribute(ut)===x&&n.getAttribute(ot)===t&&r.fire(e)})},detach:function(e,t){t._handle.detach()}};n.delegate=n.on,n.detachDelegate=n.detach,e.Event.define(t+":"+U,n)})},"gallery-2014.01.10-22-44",{requires:["yui-base","event-valuechange","intl","base-base","attribute-base","attribute-extras","base-build"
-,"selector-css2","model","datatype-date-format","node-base","node-style","node-core","oop","yui-later","node-event-delegate","node-event-simulate","event-synthetic","event-base","event-custom-base","event-custom","json-parse","gallery-itsanodepromise","gallery-itsamodulesloadedpromise","gallery-itsadatetimepicker","gallery-itsamodelsyncpromise","gallery-itsaformelement"],lang:["ar","bg","bs","cs","da","de","en","es","fa","fi","fr","he","hi","hr","hu","it","ja","nb","nl","pl","pt","ru","sk","sr","sv","uk","zh"]});
+YUI.add("gallery-itsaformmodel",function(e,t){"use strict";var n=e.Array,r=e.Object,i=e.Node,s=e.Lang,o=e.Intl,u=e.ITSAFormElement,a="notification",f="datachanged",l="wantreload",c="noreloadmsg",h="UNDEFINED FORM-ELEMENT",p="inputrequired",d="itsa-invisible",v='<span style="background-color:F00; color:#FFF">DUPLICATED FORMELEMENT is not allowed</span>',m=5e3,g=1728e5,y=864e5,b="true",w="disabled",E="was-"+w,S=w+"-checked",x="button",T="pure-"+x+"-"+w,N="-before",C='span[data-for="',k="slider",L="editorBase",A="itsabutton-asktoclick",O="onenter",M="submit"+O,_="primarybtn"+O,D="data-",P=D+M,H=D+_,B=D+"focusnext"+O,j={button:!0,destroy:!0,remove:!0,reset:!0,save:!0,submit:!0,load:!0},F="gallery-itsa",I=F+"formmodel",q="function",R="renderpromise",U="click",z="save",W="load",X="destroy",V="remove",$="Promise",J="submit",K="date",Q="time",G=K+Q,Y="number",Z="string",et="boolean",tt="picker",nt="error",rt="data",it="value",st="type",ot=rt+"-"+x+"sub"+st,ut=rt+"-"+x+st,at=rt+"-modelattribute",ft="id",lt=rt+"-content",ct={text:!0,number:!0,password:!0,email:!0,url:!0},ht="reset",pt="focusnext",dt="validationerror",vt="uichanged",mt=x+":"+U,gt=X+":"+U,yt=V+":"+U,bt=J+":"+U,wt=ht+":"+U,Et=z+":"+U,St=W+":"+U,xt=K+tt+U,Tt=Q+tt+U,Nt=K+Q+tt+U,Ct=function(t){if(typeof t=="string")try{return e.JSON.parse(t)}catch(n){return this.fire(nt,{error:n,response:t,src:"parse"}),{}}return t||{}},kt="broadcast",Lt="published",At={readOnly:1,writeOnce:1,getter:1,broadcast:1,formtype:1,formconfig:1},Ot=e.ITSAFormModel=e.Base.create("itsaformmodel",e.Model,[],{},{_ATTR_CFG:["formtype","formconfig","validationerror"]});Ot.prototype._widgetValueFields={},Ot.prototype._allowedFormTypes={text:!0,number:!0,password:!0,textarea:!0,checkbox:!0,date:!0,time:!0,datetime:!0,email:!0,url:!0,plain:!0},Ot.prototype._dateTimeTypes={date:!0,time:!0,datetime:!0},Ot.prototype._datePickerClicks={datepickerclick:!0,timepickerclick:!0,datetimepickerclick:!0},Ot.prototype.initializer=function(){var t=this;t._eventhandlers=[],t._FORM_elements={},t._ATTRS_nodes={},t._knownNodeIds={},t._lifeUpdate=!1,t._intl=o.get(I),t._renderBtnFns={button:t.renderBtn,destroy:t.renderDestroyBtn,remove:t.renderRemoveBtn,reset:t.renderResetBtn,save:t.renderSaveBtn,load:t.renderLoadBtn,submit:t.renderSubmitBtn},t.publish(vt,{defaultFn:e.bind(t._defFn_uichanged,t),emitFacade:!0}),t.publish(gt,{defaultFn:e.bind(t.destroy,t),emitFacade:!0}),t.publish(yt,{defaultFn:e.bind(t.destroy,t,{remove:!0,fromInternal:!0}),emitFacade:!0}),t.publish(bt,{defaultFn:e.bind(t.submit,t,{fromInternal:!0}),emitFacade:!0}),t.publish(wt,{defaultFn:function(){t.reset()},emitFacade:!0}),t.publish(Et,{defaultFn:e.bind(t.save,t,{fromInternal:!0}),emitFacade:!0}),t.publish(St,{defaultFn:e.bind(t.load,t,{fromInternal:!0}),emitFacade:!0}),t.publish(xt,{defaultFn:e.bind(t._defFn_changedate,t),emitFacade:!0}),t.publish(Tt,{defaultFn:e.bind(t._defFn_changedate,t),emitFacade:!0}),t.publish(Nt,{defaultFn:e.bind(t._defFn_changedate,t),emitFacade:!0}),t._bindUI(),t._gcTimer=e.later(y,t,t._garbageCollect,null,!0)},Ot.prototype.crossValidation=function(){},Ot.prototype.disableUI=function(){var t=this,n=t._FORM_elements;r.each(n,function(t,n){var r=e.one("#"+n),i=t.widget,s,o,u,a;if(r){if(i){o=i.get(w)&&!r.getData(S);if(!o){try{t.type.NAME===L?i.hide():i.disable()}catch(f){}t.type.NAME===k&&(u=e.one(C+n+'"]'),u&&u.setAttribute(w,w))}}else s=r.get("tagName")==="BUTTON"&&r.getAttribute(st)===x,a=r.getAttribute("data-datetimepicker")===b,o=r.get(w)&&!r.getData(S),s&&(o=o||r.hasClass(T)&&!r.getData(S),o||r.addClass(T)),o||r.setAttribute(w,w),r.setData(E,o),a&&(u=e.one(C+n+'"]'),u&&u.setAttribute(w,w));r.setData(S,!0),o&&r.setData(N,!0)}})},Ot.prototype.cleanup=function(e){var t=this;e?t._cleanupContainer(e):t._cleanup()},Ot.prototype.enableUI=function(){var t=this,n=t._FORM_elements;r.each(n,function(t,n){var r=e.one("#"+n),i=t.widget,s,o,u,a;r&&(o=r.getData(N),o?r.clearData(N):i?(t.type.NAME===L?i.show():i.enable(),t.type.NAME===k&&(u=e.one(C+n+'"]'),u&&u.removeAttribute(w))):(s=r.get("tagName")==="BUTTON"&&r.getAttribute(st)===x,a=r.getAttribute("data-datetimepicker")===b,r.getData(E)||(r.removeAttribute(w),s&&r.removeClass(T)),r.clearData(E),a&&(u=e.one(C+n+'"]'),u&&u.removeAttribute(w))),r.clearData(S))})},Ot.prototype.getCurrentFormElement=function(e){return this.getCurrentFormElements(e)[0]||null},Ot.prototype.getCurrentFormElements=function(t){var i=this,s=i._ATTRS_nodes[t],o=[],u;return s?n.each(s,function(t){var n=e.one("#"+t);n&&(u=i._FORM_elements[t],u.node=n,o.push(u))}):r.each(i._FORM_elements,function(n){var r=e.one("#"+n.nodeid);r&&r.getAttribute("name")===t&&(n.node=r,o.push(n))}),o},Ot.prototype.getUI=function(t){var n=this,r,i,o,u,a,f,l,c;return u=n._ATTRS_nodes[t],o=u&&u.length>0&&u[0],i=n._FORM_elements,r=o&&i[o],r&&(a=e.one("#"+o))&&a.getAttribute(at)&&(l=r.widget,c=r.type,f=l?n._getWidgetValue(l,c):a.get(it),s.isValue(f)&&(n._dateTimeTypes[c]&&(f=new Date(parseInt(f,10))),c===Y&&(f=r.config.digits?parseFloat(f):parseInt(f,10)))),f},Ot.prototype.getUnvalidatedUI=function(){var t=this,i,o,u,a=[];return r.each(this._FORM_elements,function(n){n.widget||(i=e.one("#"+n.nodeid),i&&i.get("tagName")!=="BUTTON"&&(o=t._validValue(i,n,n.name,i.get(it)),t._setNodeValidation(i,o),o||a.push(i)))}),u=t.crossValidation(),s.isArray(u)&&u.length>0&&n.each(u,function(r){var i=r.attribute,s=i&&t._ATTRS_nodes[i];s&&n.each(s,function(n){var i=e.one("#"+n),s=r.validationerror,o;i&&(o=typeof s===Z?s:null,t._setNodeValidation(i,!1,o),a.push(i))})}),new e.NodeList(a)},Ot.prototype.modifyAttr=function(e,t){var n=this,r,i;if(n.attrAdded(e)){n._isLazyAttr(e)&&n._addLazyAttr(e),i=n._state;for(r in t)At[r]&&t.hasOwnProperty(r)&&(i.add(e,r,t[r]),r===kt&&i.remove(e,Lt))}},Ot.prototype[V]=function(){this.fire(V)},Ot.prototype.renderBtn=function(e,t){return this._renderBtn(e,t,x)},Ot.prototype.renderDestroyBtn=function(e,t){return this._renderBtn(e,t,X)},Ot.prototype.renderLoadBtn=function(e,t){return this._renderBtn(
+e,t,W)},Ot.prototype.renderRemoveBtn=function(e,t){return this._renderBtn(e,t,V)},Ot.prototype.renderResetBtn=function(e,t){return this._renderBtn(e,t,ht)},Ot.prototype.renderSaveBtn=function(e,t){return this._renderBtn(e,t,z)},Ot.prototype.renderSubmitBtn=function(e,t){return this._renderBtn(e,t,J)},Ot.prototype.renderFormElement=function(t){var r=this,s=r._knownNodeIds,o,a,f,l,c,p,g,y,b,w,E,S,x,T;return o=r._FORM_elements,a=r._ATTRS_nodes,f=r.get(t),l=r._getAttrCfg(t),g=l.formtype||"text",S=typeof g===q&&g.NAME,S||r._allowedFormTypes[g]?(y=l.formconfig||{},y.value=f,S&&(b=r._getWidgetValueField(g),y.widgetconfig||(y.widgetconfig={}),x=typeof b!==Z,x?n.each(b,function(e){y.widgetconfig[e]=f}):y.widgetconfig[b]=f),y.modelattribute=!0,y.name=t,y.tooltipinvalid=l.validationerror,y.removerequired=!0,delete y.pattern,y.removepattern=!0,y.hideatstartup=!0,c=u.getElement(g,y),w=c.nodeid,o[w]=c,a[t]||(a[t]=[]),a[t].push(w),E=c.widget,E?(E.addTarget(r),T=g.NAME===L,e.use(T?F+"editor"+R:F+"widget"+R,function(){E.renderPromise().then(function(){var t=e.one("#"+w);E.addTarget(r),s[w]?t.insert(v,"replace"):(s[w]=!0,T&&t.removeClass(d),r._modelToUI(w),!T&&t.removeClass(d))})}),x?n.each(b,function(t){r._eventhandlers.push(E.after(t+"Change",function(t){var n=vt,i;t.fromInternal||(i={target:r,value:t.newVal,formElement:c,node:e.one("#"+w),nodeid:w,type:n},r.fire(n,i))}))}):r._eventhandlers.push(E.after(b+"Change",function(t){var n=vt,i;t.fromInternal||(i={target:r,value:t.newVal,formElement:c,node:e.one("#"+w),nodeid:w,type:n},r.fire(n,i))}))):i.availablePromise("#"+w,m).then(function(t){s[w]?t.insert(v,"replace"):(s[w]=!0,r._modelToUI(w),t.removeClass(d),r._dateTimeTypes[g]&&(t=e.one('span.formatvalue[data-for="'+w+'"]'),t&&t.removeClass(d)))},function(e){}),p=c.html,c.widget&&c.widget.addTarget(r)):p=h,p},Ot.prototype.reset=function(){var e=this,t;e._internalChange=!0,Ot.superclass.reset.apply(e,arguments),arguments.length===0&&(e._internalChange=null,e._modelToUI(),e._removeValidation(),t={type:ht,target:e},e.fire(ht,t))},Ot.prototype.setLifeUpdate=function(e){var t=this;return typeof e===et&&(t._lifeUpdate=e),t},Ot.prototype.setResetAttrs=function(){var e=this,t=e.getAttrs();delete t.clientId,delete t.destroyed,delete t.initialized,e.idAttribute!==ft&&delete t.id,r.each(t,function(t,n){t&&e._state.add(n,"initValue",t)})},Ot.setWidgetValueField=function(e,t){this._widgetValueFields[e]=t},Ot.prototype.setWidgetValueField=Ot.setWidgetValueField,Ot.prototype[J]=function(e,t){var n=this,r;return(r=n.submitPromise(e))&&t&&r.then(function(e){t(null,e)},function(e){t(e)}),n},Ot.prototype[J+$]=function(e){return this._createPromise(J,e)},Ot.prototype.toJSONUI=function(e,t){var i=this,o={},u=i.getAttrs(),a=i._renderBtnFns,f,l,c,h,p,d,v,m;return delete u.clientId,delete u.destroyed,delete u.initialized,i.idAttribute!==ft&&delete u.id,r.each(u,function(e,n){t&&(d=new RegExp("{"+n+"}"),v=new RegExp("<%==? (data|this)."+n+" %>"),m=d.test(t)||v.test(t)),(!t||m)&&(o[n]=i.renderFormElement(n))}),s.isObject(e)?(f=e.propertykey,l=e.type,c=e.labelHTML,h=e.config,f&&l&&a[l]&&(o[f]=a[l].call(i,c,h))):s.isArray(e)&&n.each(e,function(e){f=e.propertykey,l=e.type,c=e.labelHTML,h=e.config,f&&l&&a[l]&&(o[f]=a[l].call(i,c,h))}),p=i.toJSON(),r.each(p,function(e,t){o["_"+t]=e}),o},Ot.prototype.UIToModel=function(t){var i=this,o,u,a,f,l,c,h,p;return u=i._FORM_elements,o=t&&u[t],o&&(f=e.one("#"+t))&&f.getAttribute(at)?(h=o.widget,p=o.type,l=h?i._getWidgetValue(h,p):f.get(it),c=o.name,s.isValue(l)&&(a={formelement:!0},i._dateTimeTypes[p]&&(l=new Date(parseInt(l,10))),p===Y&&(l=o.config.digits?parseFloat(l):parseInt(l,10)),i.set(c,l,a))):t||r.each(i._ATTRS_nodes,function(e){n.each(e,function(e){i.UIToModel(e)})}),i},Ot.prototype.translate=function(e){return this._intl[e]||e},Ot.translatePromise=function(t){return e.usePromise("intl").then(function(){var e=o.get(I);return e[t]||t},function(){return t})},Ot.prototype.translatePromise=Ot.translatePromise,Ot.prototype.validated=function(){return this.getUnvalidatedUI().size()===0},Ot.prototype.destructor=function(){var e=this;e._clearEventhandlers(),e._removeTargets(),e.cleanup(),e._widgetValueFields={},e._gcTimer.cancel()},e.Node.prototype.displayInDoc=function(){var e=this,t=e.inDoc();while(e&&t)t=e.getStyle("display")!=="none",t&&(e=e.get("parentNode"));return t},Ot.prototype._bindUI=function(){var t=this,n=t._eventhandlers,i=e.one("body");n.push(i.delegate([xt,Tt,Nt,mt,St,Et,gt,yt,bt,wt],function(e){var n=e.type,r=e.target,i=t._FORM_elements[r.get(ft)],s,o,u;i&&(e.preventDefault(),o=r.getAttribute(it),t._datePickerClicks[n]&&(u=new Date,u.setTime(parseInt(o,10)),o=u),s={target:t,value:o,formElement:t._FORM_elements[r.get(ft)],buttonNode:r,type:n},t.fire(n,s))})),n.push(i.delegate("valuechange",function(e){var n=e.target,r=vt,i={target:t,value:n.get(it),formElement:t._FORM_elements[n.get(ft)],node:n,nodeid:n.get(ft),type:r};t.fire(r,i)},function(e,n){return n&&n.target&&t._FORM_elements[n.target.get(ft)]})),n.push(t.after("*:change",function(n){var i=n.changed,s=!1;!t._internalChange&&!n.formelement&&!n.fromInternal?(r.some(i,function(e,n){return s=t._ATTRS_nodes[n],s}),s&&e.use(F+"dialog",function(){var n=t._intl;t._lifeUpdate?e.confirm(n[a],n[f]+".<br />"+n[l]+"? ("+n[c]+").").then(e.bind(t._modelToUI,t,null),e.bind(t.UIToModel,t,null)):e.confirm(n[a],n[f]+".<br />"+n[l]+"?").then(e.bind(t._modelToUI,t,null))})):n.fromInternal&&t._modelToUI()})),n.push(i.delegate("keydown",function(e){e.halt();var n=e.target,r=n.getAttribute(P)==="true",i=n.getAttribute(H)==="true",s,o,u;i&&(u=t._findPrimaryBtnNode())?u.simulate(U):r?t.submit({fromInternal:!0}):(s=pt,o={target:e.target,type:s},t.fire(s,o))},function(e,n){var r=n.target,i=t._FORM_elements[r.get(ft)];return i&&n.keyCode===13&&(ct[i.type]||r.getAttribute(P)==="true"||r.getAttribute(H)==="true"||r.getAttribute(B)==="true")})),n.push(t.on([Et,bt],function(e){var n;n=t.getUnvalidatedUI(),n.isEmpty()?t.UIToModel():(e.preventDefault(),t.fire
+(dt,{target:t,nodelist:n,src:e.type}))})),n.push(e.Intl.on("intl:langChange",function(){t._intl=e.Intl.get(I)})),n.push(e.on(A,function(e){var n=e.buttonNode,r;t._FORM_elements[n.get("id")]&&(r=n.get("value"),t.fire((j[r]?r:x)+":click",{buttonNode:n,value:r}))}))},Ot.prototype._cleanup=function(){var t=this,r=t.getCurrentFormElements(),i;n.each(r,function(t){t.widget&&t.widget.destroy(!0),i=e.one("#"+t.nodeid),i&&(i.get("childNodes").destroy(!0),i.remove(!0))}),t._FORM_elements={},t._ATTRS_nodes={},t._knownNodeIds={}},Ot.prototype._cleanupContainer=function(e){var t=this,i=t._ATTRS_nodes,s=t._FORM_elements,o=t._knownNodeIds,u=[],a,f,l,c;r.each(o,function(t,n){f=s[n],a=e.one("#"+n),a&&(f.widget&&f.widget.destroy(!0),a.get("childNodes").destroy(!0),a.remove(!0),delete s[n],l=f.name,c=i[l].indexOf(n),c&&i[l].splice(c,1),u.push(n))}),n.each(u,function(e){delete o[e]})},Ot.prototype._clearEventhandlers=function(){n.each(this._eventhandlers,function(e){e.detach()})},Ot.prototype._defFn_changedate=function(t){var n=t.target,r=t.type,i=t.buttonNode,o=e.ItsaDateTimePicker,u=t.formElement,a=s.isDate(t.value)?t.value:new Date,f,l,c;r===xt?f=e.bind(o.getDate,o):r===Tt?f=e.bind(o.getTime,o):r===Nt&&(f=e.bind(o.getDateTime,o)),f(new Date(a),{alignToNode:i,modal:!0,forceSelectdate:!1}).then(function(e){l=u.config.format,n._updateDateTimeUI(u.name,e,r,l),n._lifeUpdate&&n.UIToModel(i.get(ft))},function(){return!0}).then(function(){var e=pt,t={target:i,type:e};if(i){i.removeAttribute(lt);try{i.focus()}catch(r){}c=i.getAttribute(rt+"-contentvalid"),c&&i.setAttribute(lt,c)}n.fire(e,t)})},Ot.prototype["_defFn_"+J]=function(e){var t=this,n=e.options,i=e.promiseReject,s,o,u,a={options:n};return t._validate(t.toJSON(),function(f){f?(a.error=f,a.src=J,t._lazyFireErrorEvent(a),i(new Error(f))):(s=function(e){a.error=e,a.src=J,t._lazyFireErrorEvent(a),i(new Error(e))},o=function(i){var s;e.response=i,s=Ct(i),s.responseText&&(s=s.responseText),r.keys(s).length>0&&(e.parsed=s,t.setAttrs(s,(n.fromInternal=!0)&&n)),t.changed={},e.promiseResolve(i)},(u=t.getUnvalidatedUI())&&u.isEmpty()?t.syncPromise?t._syncTimeoutPromise(J,n).then(o,s):t.sync(J,n,function(e,t){e?s(e):o(t)}):(s(t._intl.unvalidated),t.fire(dt,{target:t,nodelist:u,src:J})))}),e.promise},Ot.prototype._defFn_uichanged=function(e){var t=this,r=e.formElement,i=r.name,s=r.type,o=e.value,u,a,f;r.widget?(f=this._getWidgetValueField(s),typeof f===Z?t._updateSimularWidgetUI(e.nodeid,i,f,o):n.each(f,function(n){t._updateSimularWidgetUI(e.nodeid,i,n,o,!0)})):(u=e.node,a=t._validValue(u,r,i,o),t._updateSimularUI(u,i,o,a),t._lifeUpdate&&a&&t.UIToModel(u.get(ft)))},Ot.prototype._findPrimaryBtnNode=function(){var t=this._FORM_elements,n;return r.some(t,function(t,r){var i=t.config.primary,s=typeof i===et&&i;return n=s&&e.one("#"+r),n}),n},Ot.prototype._garbageCollect=function(){var t=this,i=(new Date).getTime(),s=t._ATTRS_nodes,o=t._FORM_elements,u=t._knownNodeIds,a=[],f,l,c,h;i-=g,r.each(u,function(t,r,u){typeof t===et?e.one("#"+r)||(u[r]=(new Date).getTime()):t<i&&(c=o[r],h=c.name,f=s[h],l=f&&n.indexOf(f,r),delete o[r],l>0&&f.splice(l,1),a.push(r))}),n.each(a,function(e){delete u[e]})},Ot.prototype._getWidgetValue=function(e,t){if(e&&t.NAME===L&&e.itsatoolbar)return e.itsatoolbar.getContent();var n=this._getWidgetValueField(t);return e&&e.get(typeof n===Z?n:n[0])},Ot.prototype._getWidgetValueField=function(e){var t=typeof e===q&&e.NAME;return t&&this._widgetValueFields[e.NAME]||it},Ot.prototype._modelToUI=function(t){var n=this,i,s,o,u,a,f,l,c,h;s=n._FORM_elements,i=t&&s[t],i&&(o=e.one("#"+t))&&o.getAttribute(at)?(f=i.widget,a=i.name,u=n.get(a,u)||"",f?(h=this._getWidgetValueField(i.type),f.set(typeof h===Z?h:h[0],u,{fromInternal:!0})):(l=i.type,n._dateTimeTypes[l]?(c=i.config.format,n._updateDateTimeUI(i.name,u,l,c)):o.set(it,u))):t||r.each(n._FORM_elements,function(e,t){n._modelToUI(t)})},Ot.prototype._removeTargets=function(){var e=this;r.each(e._FORM_elements,function(t){var n=t.widget;n&&n.removeTarget(e)})},Ot.prototype._removeValidation=function(){var t=this;r.each(t._FORM_elements,function(n){var r=e.one("#"+n.nodeid);r&&t._setNodeValidation(r,!0)})},Ot.prototype._renderBtn=function(e,t,n){var r=this,s=r._FORM_elements,o=r._knownNodeIds,a,f;return t||(t={}),n||(n=x),e||(e=n),t[rt]||(t[rt]=""),t[it]||(t[it]=n),t[rt]+=" "+ot+'="'+n+'"',t.buttontype=x,t.labelHTML=e,a=u.getElement(x,t),f=a.nodeid,s[f]=a,i.availablePromise("#"+f,m).then(function(e){o[f]?e.insert(v,"replace"):o[f]=!0}),a.html},Ot.prototype._updateDateTimeUI=function(t,r,i,o){var u=this,a=u._ATTRS_nodes[t];a&&(o||(i===K?o="%x":i===Q?o="%X":o="%x %X"),n.each(a,function(t){var n=e.one("#"+t),i=e.one('span[data-for="'+t+'"]'),u=s.isDate(r);u&&n&&n.set(it,r.getTime()),i&&i.set("text",u?e.Date.format(r,{format:o}):"invalid Date: "+r)}))},Ot.prototype._updateSimularUI=function(t,r,i,s){var o=this,u=o._ATTRS_nodes[r];u&&n.each(u,function(n){var r=e.one("#"+n);r&&(r!==t&&r.set(it,i),o._setNodeValidation(r,s))})},Ot.prototype._setNodeValidation=function(e,t,n){var r;e.setAttribute(rt+"-valid",t),r=n||e.getAttribute(lt+(t?"valid":"invalid")),!t&&!n&&r===""&&(r=this._intl[p]),r?e.setAttribute(lt,r):e.removeAttribute(lt)},Ot.prototype._updateSimularWidgetUI=function(t,r,i,s,o){var u=this,a=u._ATTRS_nodes[r],f,l;a&&n.each(a,function(n){f=u._FORM_elements[n],l=f&&f.widget,(n!==t||o)&&l&&l.set(i,s);if(l&&f.type.NAME===k){var r=e.one('span[data-for="'+n+'"]');r&&r.set("text",s)}}),u._lifeUpdate&&u.UIToModel(t)},Ot.prototype._validValue=function(e,t,n,r){var i=this,s=t.type,o=s===K||s===Q||s===G||s==="checkbox",u,a,f,l,c,h,p,d,v,m;return o||(u=i._getAttrCfg(n),d=u.formconfig,p=d&&d.required,h=typeof p===et&&p||s==="password",v=r===""&&!h,v||(a=u.validator,f=e.getAttribute(rt+"-pattern"),l=!a||a(s===Y?t.config.digits?parseFloat(r):parseInt(r,10):r),typeof l===et||(l=!1),c=!f||(new RegExp(f,"i")).test(r),m=r!==""||!h)),o||v||l&&c&&m},Ot.prototype._widgetValueFields.itsacheckbox="checked",Ot.prototype._widgetValueFields
+.itsacheckboxgroup="checked",Ot.prototype._widgetValueFields.toggleButton=["checked","pressed"],Ot.prototype._widgetValueFields.editorBase="content",n.each([x,z,X,V,W],function(t){var n={on:function(e,n,r){n._handle=e.on(U,function(e){var n=e.target;n&&n.get("tagName")!=="BUTTON"&&(n=n.get("parentNode"),e.target=n),n&&n.getAttribute(ut)===x&&n.getAttribute(ot)===t&&r.fire(e)})},detach:function(e,t){t._handle.detach()}};n.delegate=n.on,n.detachDelegate=n.detach,e.Event.define(t+":"+U,n)})},"gallery-2014.02.26-18-54",{requires:["yui-base","event-valuechange","intl","base-base","attribute-base","attribute-extras","base-build","selector-css2","model","datatype-date-format","node-base","node-style","node-core","oop","yui-later","node-event-delegate","node-event-simulate","event-synthetic","event-base","event-custom-base","event-custom","json-parse","gallery-itsanodepromise","gallery-itsamodulesloadedpromise","gallery-itsadatetimepicker","gallery-itsamodelsyncpromise","gallery-itsaformelement"],lang:["ar","bg","bs","cs","da","de","en","es","fa","fi","fr","he","hi","hr","hu","it","ja","nb","nl","pl","pt","ru","sk","sr","sv","uk","zh"]});
101 build/gallery-itsaformmodel/gallery-itsaformmodel.js
View
@@ -404,7 +404,7 @@ ITSAFormModel.prototype.initializer = function() {
instance._ATTRS_nodes = {},
/**
- * internal backup of which nodeid's have been inserted in the dom before, referenced by nodei's
+ * internal backup of which nodeid's have been inserted in the dom before, referenced by nodeid's
* object-properties are 'true' when not found the be removed from the dom yet and a timestamps when
* out of the dom (stamped with the time out-of-dom was registered)
* @property _knownNodeIds
@@ -637,15 +637,15 @@ ITSAFormModel.prototype.disableUI = function() {
* Only to be used when destroyed - or when a containernode gets empty.
*
* @method cleanup
+ * @param [container] {Y.Node} only cleanup items inside this container
* @protected
* @since 0.1
*/
-ITSAFormModel.prototype.cleanup = function() {
- // TODO: also destroy the widgets in case their nodeid's are in the dom
+ITSAFormModel.prototype.cleanup = function(container) {
var instance = this;
- instance._FORM_elements = {};
- instance._ATTRS_nodes = {};
- instance._knownNodeIds = {};
+/*jshint expr:true */
+ container ? instance._cleanupContainer(container) : instance._cleanup();
+/*jshint expr:false */
};
/**
@@ -1916,6 +1916,87 @@ ITSAFormModel.prototype._bindUI = function() {
};
/**
+ * Cleans up internal references of everything the formmodel has inserted in the dom.
+ * Only to be used when destroyed - or when a containernode gets empty.
+ *
+ * @method _cleanup
+ * @protected
+ * @private
+ * @since 0.1
+*/
+ITSAFormModel.prototype._cleanup = function() {
+ var instance = this,
+ formelements = instance.getCurrentFormElements(),
+ node;
+ YArray.each(
+ formelements,
+ function(formelement) {
+/*jshint expr:true */
+ formelement.widget && formelement.widget.destroy(true);
+/*jshint expr:false */
+ node = Y.one('#'+formelement.nodeid);
+ if (node) {
+ node.get('childNodes').destroy(true);
+ node.remove(true);
+ }
+ }
+ );
+ instance._FORM_elements = {};
+ instance._ATTRS_nodes = {};
+ instance._knownNodeIds = {};
+};
+
+/**
+ * Cleans up internal references of everything the formmodel has inserted inside the container.
+ * Only to be used when a containernode gets empty.
+ *
+ * @method _cleanupContainer
+ * @param [container] {Y.Node} only cleanup items inside this container
+ * @protected
+ * @private
+ * @since 0.1
+*/
+ITSAFormModel.prototype._cleanupContainer = function(container) {
+ var instance = this,
+ attributenodes = instance._ATTRS_nodes,
+ formelements = instance._FORM_elements,
+ knownNodeIds = instance._knownNodeIds,
+ knowdIdsRemoval = [],
+ node, formelement, attribute, indexofitem;
+ YObject.each(
+ knownNodeIds,
+ function(value, nodeid) {
+ formelement = formelements[nodeid];
+ node = container.one('#'+nodeid);
+ // remove node
+ if (node) {
+/*jshint expr:true */
+ formelement.widget && formelement.widget.destroy(true);
+/*jshint expr:false */
+ node.get('childNodes').destroy(true);
+ node.remove(true);
+ delete formelements[nodeid];
+ // now find the inside the array _ATTRS_nodes[attribute] for the item that holds ref. to the nodeid
+ attribute = formelement.name;
+ indexofitem = attributenodes[attribute].indexOf(nodeid);
+/*jshint expr:true */
+ indexofitem && attributenodes[attribute].splice(indexofitem, 1);
+/*jshint expr:false */
+ // now store the nodeid, because it has to be removed from instance._knownNodeIds
+ knowdIdsRemoval.push(nodeid);
+ }
+ }
+ );
+ // now remove it from knownNodeIds
+ YArray.each(
+ knowdIdsRemoval,
+ function(nodeid) {
+ delete knownNodeIds[nodeid];
+ }
+ );
+};
+
+/**
* Cleaning up all eventlisteners
*
* @method _clearEventhandlers
@@ -1990,7 +2071,11 @@ ITSAFormModel.prototype._defFn_changedate = function(e) {
// be carefull: button might not exist anymore, when the view is rerendered
if (node) {
node.removeAttribute(DATA_CONTENT);
- node.focus();
+ try {
+ // ALWAYS focus nodes using try/catch to prevent js-error when node not in the dom
+ node.focus();
+ }
+ catch(err) {}
tipsycontent = node.getAttribute(DATA+'-contentvalid');
/*jshint expr:true */
tipsycontent && node.setAttribute(DATA_CONTENT, tipsycontent);
@@ -2658,7 +2743,7 @@ YArray.each(
}
);
-}, 'gallery-2014.01.10-22-44', {
+}, 'gallery-2014.02.26-18-54', {
"requires": [
"yui-base",
"event-valuechange",
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel",function(e){e.Intl.add("gallery-itsaformmodel","",{ready:"Ready",enterrightformat:"please enter the right format",entervalidnumber:"please enter a valid number",inputrequired:"Input is required",unvalidated:"The data is incorrectly",notification:"Notification",datachanged:"Data has been changed outside the form",wantreload:"Load it into the form",noreloadmsg:"if not, then the data will be reset to the current form-values"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel",function(e){e.Intl.add("gallery-itsaformmodel","",{ready:"Ready",enterrightformat:"please enter the right format",entervalidnumber:"please enter a valid number",inputrequired:"Input is required",unvalidated:"The data is incorrectly",notification:"Notification",datachanged:"Data has been changed outside the form",wantreload:"Load it into the form",noreloadmsg:"if not, then the data will be reset to the current form-values"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_ar.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_ar",function(e){e.Intl.add("gallery-itsaformmodel","ar",{ready:"\u0627\u0633\u062a\u0639\u062f\u0627\u062f",enterrightformat:"\u0645\u0646 \u0641\u0636\u0644\u0643 \u0627\u062f\u062e\u0644 \u0627\u0644\u0634\u0643\u0644 \u0627\u0644\u0635\u062d\u064a\u062d",entervalidnumber:"\u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u062f\u062e\u0627\u0644 \u0631\u0642\u0645 \u0635\u0627\u0644\u062d",inputrequired:"\u0645\u0637\u0644\u0648\u0628 \u0645\u062f\u062e\u0644\u0627\u062a",unvalidated:"\u0643\u0627\u0646\u062a \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u0628\u0634\u0643\u0644 \u063a\u064a\u0631 \u0635\u062d\u064a\u062d",notification:"\u0625\u0639\u0644\u0627\u0645",datachanged:"\u062a\u0645 \u062a\u063a\u064a\u064a\u0631 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u062e\u0627\u0631\u062c \u0627\u0644\u0646\u0645\u0648\u0630\u062c",wantreload:"\u062a\u062d\u0645\u064a\u0644\u0647 \u0641\u064a \u0634\u0643\u0644",noreloadmsg:"\u0625\u0630\u0627 \u0644\u0645 \u064a\u0643\u0646 \u0643\u0630\u0644\u0643\u060c \u062b\u0645 \u0633\u064a\u062a\u0645 \u0625\u0639\u0627\u062f\u0629 \u062a\u0639\u064a\u064a\u0646 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u0625\u0644\u0649 \u0642\u064a\u0645 \u0627\u0644\u0646\u0645\u0648\u0630\u062c \u0627\u0644\u062d\u0627\u0644\u064a"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_ar",function(e){e.Intl.add("gallery-itsaformmodel","ar",{ready:"\u0627\u0633\u062a\u0639\u062f\u0627\u062f",enterrightformat:"\u0645\u0646 \u0641\u0636\u0644\u0643 \u0627\u062f\u062e\u0644 \u0627\u0644\u0634\u0643\u0644 \u0627\u0644\u0635\u062d\u064a\u062d",entervalidnumber:"\u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u062f\u062e\u0627\u0644 \u0631\u0642\u0645 \u0635\u0627\u0644\u062d",inputrequired:"\u0645\u0637\u0644\u0648\u0628 \u0645\u062f\u062e\u0644\u0627\u062a",unvalidated:"\u0643\u0627\u0646\u062a \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u0628\u0634\u0643\u0644 \u063a\u064a\u0631 \u0635\u062d\u064a\u062d",notification:"\u0625\u0639\u0644\u0627\u0645",datachanged:"\u062a\u0645 \u062a\u063a\u064a\u064a\u0631 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u062e\u0627\u0631\u062c \u0627\u0644\u0646\u0645\u0648\u0630\u062c",wantreload:"\u062a\u062d\u0645\u064a\u0644\u0647 \u0641\u064a \u0634\u0643\u0644",noreloadmsg:"\u0625\u0630\u0627 \u0644\u0645 \u064a\u0643\u0646 \u0643\u0630\u0644\u0643\u060c \u062b\u0645 \u0633\u064a\u062a\u0645 \u0625\u0639\u0627\u062f\u0629 \u062a\u0639\u064a\u064a\u0646 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u0625\u0644\u0649 \u0642\u064a\u0645 \u0627\u0644\u0646\u0645\u0648\u0630\u062c \u0627\u0644\u062d\u0627\u0644\u064a"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_bg.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_bg",function(e){e.Intl.add("gallery-itsaformmodel","bg",{ready:"\u0433\u043e\u0442\u043e\u0432",enterrightformat:"\u043c\u043e\u043b\u044f, \u0432\u044a\u0432\u0435\u0434\u0435\u0442\u0435 \u0432 \u043f\u0440\u0430\u0432\u0438\u043b\u043d\u0438\u044f \u0444\u043e\u0440\u043c\u0430\u0442",entervalidnumber:"m\u043e\u043b\u044f \u0434\u0430 \u0432\u044a\u0432\u0435\u0434\u0435\u0442\u0435 \u0432\u0430\u043b\u0438\u0434\u0435\u043d \u043d\u043e\u043c\u0435\u0440",inputrequired:"\u0412\u0445\u043e\u0434\u043d\u043e \u0441\u0435 \u0438\u0437\u0438\u0441\u043a\u0432\u0430",unvalidated:"\u0414\u0430\u043d\u043d\u0438\u0442\u0435 \u0441\u0430 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u043d\u043e",notification:"\u043d\u043e\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f",datachanged:"\u0414\u0430\u043d\u043d\u0438\u0442\u0435 \u0435 \u0431\u0438\u043b\u043e \u043f\u0440\u043e\u043c\u0435\u043d\u0435\u043d\u043e \u0438\u0437\u0432\u044a\u043d \u0444\u043e\u0440\u043c\u0430\u0442\u0430",wantreload:"\u041f\u043e\u0441\u0442\u0430\u0432\u0435\u0442\u0435 \u0433\u043e \u0432\u044a\u0432 \u0444\u043e\u0440\u043c\u0430",noreloadmsg:"\u0410\u043a\u043e \u043d\u0435, \u0442\u043e\u0433\u0430\u0432\u0430 \u0434\u0430\u043d\u043d\u0438\u0442\u0435 \u0449\u0435 \u0431\u044a\u0434\u0435 \u0432\u044a\u0437\u0441\u0442\u0430\u043d\u043e\u0432\u0435\u043d\u0430 \u0434\u043e \u0441\u0435\u0433\u0430\u0448\u043d\u0430\u0442\u0430 \u0444\u043e\u0440\u043c\u0430-\u0441\u0442\u043e\u0439\u043d\u043e\u0441\u0442\u0438"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_bg",function(e){e.Intl.add("gallery-itsaformmodel","bg",{ready:"\u0433\u043e\u0442\u043e\u0432",enterrightformat:"\u043c\u043e\u043b\u044f, \u0432\u044a\u0432\u0435\u0434\u0435\u0442\u0435 \u0432 \u043f\u0440\u0430\u0432\u0438\u043b\u043d\u0438\u044f \u0444\u043e\u0440\u043c\u0430\u0442",entervalidnumber:"m\u043e\u043b\u044f \u0434\u0430 \u0432\u044a\u0432\u0435\u0434\u0435\u0442\u0435 \u0432\u0430\u043b\u0438\u0434\u0435\u043d \u043d\u043e\u043c\u0435\u0440",inputrequired:"\u0412\u0445\u043e\u0434\u043d\u043e \u0441\u0435 \u0438\u0437\u0438\u0441\u043a\u0432\u0430",unvalidated:"\u0414\u0430\u043d\u043d\u0438\u0442\u0435 \u0441\u0430 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u043d\u043e",notification:"\u043d\u043e\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f",datachanged:"\u0414\u0430\u043d\u043d\u0438\u0442\u0435 \u0435 \u0431\u0438\u043b\u043e \u043f\u0440\u043e\u043c\u0435\u043d\u0435\u043d\u043e \u0438\u0437\u0432\u044a\u043d \u0444\u043e\u0440\u043c\u0430\u0442\u0430",wantreload:"\u041f\u043e\u0441\u0442\u0430\u0432\u0435\u0442\u0435 \u0433\u043e \u0432\u044a\u0432 \u0444\u043e\u0440\u043c\u0430",noreloadmsg:"\u0410\u043a\u043e \u043d\u0435, \u0442\u043e\u0433\u0430\u0432\u0430 \u0434\u0430\u043d\u043d\u0438\u0442\u0435 \u0449\u0435 \u0431\u044a\u0434\u0435 \u0432\u044a\u0437\u0441\u0442\u0430\u043d\u043e\u0432\u0435\u043d\u0430 \u0434\u043e \u0441\u0435\u0433\u0430\u0448\u043d\u0430\u0442\u0430 \u0444\u043e\u0440\u043c\u0430-\u0441\u0442\u043e\u0439\u043d\u043e\u0441\u0442\u0438"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_bs.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_bs",function(e){e.Intl.add("gallery-itsaformmodel","bs",{ready:"spreman",enterrightformat:"unesite pravo formatu",entervalidnumber:"unesite va\u017ee\u0107i broj",inputrequired:"Ulaz je potrebno",unvalidated:"Podaci su pogre\u0161no",notification:"Obavijest",datachanged:"Podataka je promijenjen izvan obrazac",wantreload:"Umetnite ga u formu",noreloadmsg:"ako ne, onda se podaci \u0107e biti postavljen na trenutnu formu-vrijednosti"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_bs",function(e){e.Intl.add("gallery-itsaformmodel","bs",{ready:"spreman",enterrightformat:"unesite pravo formatu",entervalidnumber:"unesite va\u017ee\u0107i broj",inputrequired:"Ulaz je potrebno",unvalidated:"Podaci su pogre\u0161no",notification:"Obavijest",datachanged:"Podataka je promijenjen izvan obrazac",wantreload:"Umetnite ga u formu",noreloadmsg:"ako ne, onda se podaci \u0107e biti postavljen na trenutnu formu-vrijednosti"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_cs.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_cs",function(e){e.Intl.add("gallery-itsaformmodel","cs",{ready:"p\u0159ipraven\u00fd",enterrightformat:"zadejte spr\u00e1vn\u00fd form\u00e1t",entervalidnumber:"zadejte pros\u00edm platn\u00e9 \u010d\u00edslo",inputrequired:"Je nutno zadat",unvalidated:"\u00dadaje jsou nespr\u00e1vn\u011b",notification:"Ozn\u00e1men\u00ed",datachanged:"\u00dadaje byla zm\u011bn\u011bna mimo formul\u00e1\u0159",wantreload:"Vlo\u017ete ji do formul\u00e1\u0159e",noreloadmsg:"pokud ne, pak budou data obnovit na st\u00e1vaj\u00edc\u00ed formul\u00e1\u0159e hodnot"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_cs",function(e){e.Intl.add("gallery-itsaformmodel","cs",{ready:"p\u0159ipraven\u00fd",enterrightformat:"zadejte spr\u00e1vn\u00fd form\u00e1t",entervalidnumber:"zadejte pros\u00edm platn\u00e9 \u010d\u00edslo",inputrequired:"Je nutno zadat",unvalidated:"\u00dadaje jsou nespr\u00e1vn\u011b",notification:"Ozn\u00e1men\u00ed",datachanged:"\u00dadaje byla zm\u011bn\u011bna mimo formul\u00e1\u0159",wantreload:"Vlo\u017ete ji do formul\u00e1\u0159e",noreloadmsg:"pokud ne, pak budou data obnovit na st\u00e1vaj\u00edc\u00ed formul\u00e1\u0159e hodnot"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_da.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_da",function(e){e.Intl.add("gallery-itsaformmodel","da",{ready:"Klar",enterrightformat:"angiv det rigtige format",entervalidnumber:"angiv et gyldigt tal",inputrequired:"Input er p\u00e5kr\u00e6vet",unvalidated:"Dataene er forkert",notification:"Underretning",datachanged:"Data er blevet \u00e6ndret uden skemaet",wantreload:"Indl\u00e6se den i formularen",noreloadmsg:"hvis ikke, s\u00e5 vil dataene blive nulstillet til den nuv\u00e6rende form-v\u00e6rdier"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_da",function(e){e.Intl.add("gallery-itsaformmodel","da",{ready:"Klar",enterrightformat:"angiv det rigtige format",entervalidnumber:"angiv et gyldigt tal",inputrequired:"Input er p\u00e5kr\u00e6vet",unvalidated:"Dataene er forkert",notification:"Underretning",datachanged:"Data er blevet \u00e6ndret uden skemaet",wantreload:"Indl\u00e6se den i formularen",noreloadmsg:"hvis ikke, s\u00e5 vil dataene blive nulstillet til den nuv\u00e6rende form-v\u00e6rdier"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_de.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_de",function(e){e.Intl.add("gallery-itsaformmodel","de",{ready:"Fertig",enterrightformat:"bitte geben Sie das richtige Format",entervalidnumber:"bitte geben Sie eine g\u00fcltige Zahl",inputrequired:"Eingabe ist erforderlich",unvalidated:"Die Daten sind falsch",notification:"Benachrichtigung",datachanged:"Daten wurden au\u00dferhalb der Form ge\u00e4ndert",wantreload:"Es in die Form legen",noreloadmsg:"wenn nicht, dann werden die Daten in der aktuellen Form-Werte zur\u00fcckgesetzt"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_de",function(e){e.Intl.add("gallery-itsaformmodel","de",{ready:"Fertig",enterrightformat:"bitte geben Sie das richtige Format",entervalidnumber:"bitte geben Sie eine g\u00fcltige Zahl",inputrequired:"Eingabe ist erforderlich",unvalidated:"Die Daten sind falsch",notification:"Benachrichtigung",datachanged:"Daten wurden au\u00dferhalb der Form ge\u00e4ndert",wantreload:"Es in die Form legen",noreloadmsg:"wenn nicht, dann werden die Daten in der aktuellen Form-Werte zur\u00fcckgesetzt"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_en.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_en",function(e){e.Intl.add("gallery-itsaformmodel","en",{ready:"Ready",enterrightformat:"please enter the right format",entervalidnumber:"please enter a valid number",inputrequired:"Input is required",unvalidated:"The data is incorrectly",notification:"Notification",datachanged:"Data has been changed outside the form",wantreload:"Load it into the form",noreloadmsg:"if not, then the data will be reset to the current form-values"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_en",function(e){e.Intl.add("gallery-itsaformmodel","en",{ready:"Ready",enterrightformat:"please enter the right format",entervalidnumber:"please enter a valid number",inputrequired:"Input is required",unvalidated:"The data is incorrectly",notification:"Notification",datachanged:"Data has been changed outside the form",wantreload:"Load it into the form",noreloadmsg:"if not, then the data will be reset to the current form-values"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_es.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_es",function(e){e.Intl.add("gallery-itsaformmodel","es",{ready:"Listo",enterrightformat:"por favor introduzca el formato correcto",entervalidnumber:"por favor introduzca un n\u00famero v\u00e1lido",inputrequired:"Se requiere entrada",unvalidated:"El dato es incorrecto",notification:"Notificaci\u00f3n",datachanged:"Los datos han sido cambiado fuera de la forma",wantreload:"Coloque la pila en la forma",noreloadmsg:"si no, entonces los datos se inicializan a los valores actuales de forma"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_es",function(e){e.Intl.add("gallery-itsaformmodel","es",{ready:"Listo",enterrightformat:"por favor introduzca el formato correcto",entervalidnumber:"por favor introduzca un n\u00famero v\u00e1lido",inputrequired:"Se requiere entrada",unvalidated:"El dato es incorrecto",notification:"Notificaci\u00f3n",datachanged:"Los datos han sido cambiado fuera de la forma",wantreload:"Coloque la pila en la forma",noreloadmsg:"si no, entonces los datos se inicializan a los valores actuales de forma"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_fa.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_fa",function(e){e.Intl.add("gallery-itsaformmodel","fa",{ready:"\u0627\u0645\u0627\u062f\u0647",enterrightformat:"\u0644\u0637\u0641\u0627 \u0641\u0631\u0645\u062a \u0645\u0646\u0627\u0633\u0628 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f",entervalidnumber:"\u0644\u0637\u0641\u0627 \u06cc\u06a9 \u0634\u0645\u0627\u0631\u0647 \u062a\u0644\u0641\u0646 \u0645\u0639\u062a\u0628\u0631 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f",inputrequired:"\u0648\u0631\u0648\u062f\u06cc \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 \u0627\u0633\u062a",unvalidated:"\u062f\u0627\u062f\u0647 \u0647\u0627 \u0646\u0627\u062f\u0631\u0633\u062a \u0627\u0633\u062a",notification:"\u0627\u062e\u0637\u0627\u0631",datachanged:"\u062f\u0627\u062f\u0647 \u0647\u0627 \u062f\u0631 \u062e\u0627\u0631\u062c \u0627\u0632 \u0641\u0631\u0645 \u062a\u063a\u06cc\u06cc\u0631",wantreload:"\u0628\u0627\u0631 \u0622\u0646 \u0631\u0627 \u0628\u0647 \u0634\u06a9\u0644\u0627\u06af\u0631 \u0646\u0647\u060c \u067e\u0633 \u062f\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u062f \u0634\u062f \u062a\u0646\u0638\u06cc\u0645 \u0645\u062c\u062f\u062f \u0628\u0647 \u0635\u0648\u0631\u062a \u0627\u0631\u0632\u0634 \u0641\u0639\u0644\u06cc",noreloadmsg:"\u0627\u06af\u0631 \u0646\u0647\u060c \u067e\u0633 \u062f\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u062f \u0634\u062f \u062a\u0646\u0638\u06cc\u0645 \u0645\u062c\u062f\u062f \u0628\u0647 \u0635\u0648\u0631\u062a \u0627\u0631\u0632\u0634 \u0641\u0639\u0644\u06cc"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_fa",function(e){e.Intl.add("gallery-itsaformmodel","fa",{ready:"\u0627\u0645\u0627\u062f\u0647",enterrightformat:"\u0644\u0637\u0641\u0627 \u0641\u0631\u0645\u062a \u0645\u0646\u0627\u0633\u0628 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f",entervalidnumber:"\u0644\u0637\u0641\u0627 \u06cc\u06a9 \u0634\u0645\u0627\u0631\u0647 \u062a\u0644\u0641\u0646 \u0645\u0639\u062a\u0628\u0631 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f",inputrequired:"\u0648\u0631\u0648\u062f\u06cc \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 \u0627\u0633\u062a",unvalidated:"\u062f\u0627\u062f\u0647 \u0647\u0627 \u0646\u0627\u062f\u0631\u0633\u062a \u0627\u0633\u062a",notification:"\u0627\u062e\u0637\u0627\u0631",datachanged:"\u062f\u0627\u062f\u0647 \u0647\u0627 \u062f\u0631 \u062e\u0627\u0631\u062c \u0627\u0632 \u0641\u0631\u0645 \u062a\u063a\u06cc\u06cc\u0631",wantreload:"\u0628\u0627\u0631 \u0622\u0646 \u0631\u0627 \u0628\u0647 \u0634\u06a9\u0644\u0627\u06af\u0631 \u0646\u0647\u060c \u067e\u0633 \u062f\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u062f \u0634\u062f \u062a\u0646\u0638\u06cc\u0645 \u0645\u062c\u062f\u062f \u0628\u0647 \u0635\u0648\u0631\u062a \u0627\u0631\u0632\u0634 \u0641\u0639\u0644\u06cc",noreloadmsg:"\u0627\u06af\u0631 \u0646\u0647\u060c \u067e\u0633 \u062f\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u062f \u0634\u062f \u062a\u0646\u0638\u06cc\u0645 \u0645\u062c\u062f\u062f \u0628\u0647 \u0635\u0648\u0631\u062a \u0627\u0631\u0632\u0634 \u0641\u0639\u0644\u06cc"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_fi.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_fi",function(e){e.Intl.add("gallery-itsaformmodel","fi",{ready:"vVlmis",enterrightformat:"kirjoita oikeassa muodossa",entervalidnumber:"kirjoita kelvollinen numero",inputrequired:"Sy\u00f6tett\u00e4v\u00e4",unvalidated:"Tiedot on v\u00e4\u00e4rin",notification:"Ilmoitus",datachanged:"Tietoja on muutettu ulkopuolella muodossa",wantreload:"Lataa se muotoon",noreloadmsg:"jos ei, niin tiedot tulee palauttaa nykymuodossaan-arvot"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_fi",function(e){e.Intl.add("gallery-itsaformmodel","fi",{ready:"vVlmis",enterrightformat:"kirjoita oikeassa muodossa",entervalidnumber:"kirjoita kelvollinen numero",inputrequired:"Sy\u00f6tett\u00e4v\u00e4",unvalidated:"Tiedot on v\u00e4\u00e4rin",notification:"Ilmoitus",datachanged:"Tietoja on muutettu ulkopuolella muodossa",wantreload:"Lataa se muotoon",noreloadmsg:"jos ei, niin tiedot tulee palauttaa nykymuodossaan-arvot"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_fr.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_fr",function(e){e.Intl.add("gallery-itsaformmodel","fr",{ready:"Pr\u00eat",enterrightformat:"s'il vous pla\u00eet entrer le bon format",entervalidnumber:"s'il vous pla\u00eet entrer un num\u00e9ro valide",inputrequired:"L'entr\u00e9e est requise",unvalidated:"Les donn\u00e9es sont incorrectement",notification:"D\u00e9claration",datachanged:"Les donn\u00e9es ont \u00e9t\u00e9 modifi\u00e9es en dehors de la forme",wantreload:"Charger dans la forme",noreloadmsg:"Si non, alors les donn\u00e9es seront remises aux valeurs de formulaire actuelles"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_fr",function(e){e.Intl.add("gallery-itsaformmodel","fr",{ready:"Pr\u00eat",enterrightformat:"s'il vous pla\u00eet entrer le bon format",entervalidnumber:"s'il vous pla\u00eet entrer un num\u00e9ro valide",inputrequired:"L'entr\u00e9e est requise",unvalidated:"Les donn\u00e9es sont incorrectement",notification:"D\u00e9claration",datachanged:"Les donn\u00e9es ont \u00e9t\u00e9 modifi\u00e9es en dehors de la forme",wantreload:"Charger dans la forme",noreloadmsg:"Si non, alors les donn\u00e9es seront remises aux valeurs de formulaire actuelles"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_he.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_he",function(e){e.Intl.add("gallery-itsaformmodel","he",{ready:"\u05de\u05d5\u05db\u05df",enterrightformat:"\u05d0\u05e0\u05d0 \u05d4\u05db\u05e0\u05e1 \u05d0\u05ea \u05d4\u05e4\u05d5\u05e8\u05de\u05d8 \u05d4\u05e0\u05db\u05d5\u05df",entervalidnumber:"\u05d0\u05e0\u05d0 \u05d4\u05db\u05e0\u05e1 \u05de\u05e1\u05e4\u05e8 \u05d7\u05d5\u05e7\u05d9",inputrequired:"\u05e0\u05d3\u05e8\u05e9 \u05e7\u05dc\u05d8",unvalidated:"\u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d4\u05d5\u05d0 \u05d1\u05d0\u05d5\u05e4\u05df \u05e9\u05d2\u05d5\u05d9",notification:"\u05d4\u05d5\u05d3\u05e2\u05d4",datachanged:"\u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d4\u05e9\u05ea\u05e0\u05d5 \u05de\u05d7\u05d5\u05e5 \u05dc\u05d8\u05d5\u05e4\u05e1",wantreload:"\u05dc\u05d8\u05e2\u05d5\u05df \u05d0\u05d5\u05ea\u05d5 \u05dc\u05ea\u05d5\u05da \u05d4\u05e6\u05d5\u05e8\u05d4",noreloadmsg:"\u05d0\u05dd \u05dc\u05d0, \u05d0\u05d6 \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d9\u05d4\u05d9\u05d5 \u05dc\u05d0\u05e4\u05e1 \u05d0\u05ea \u05d4\u05d8\u05d5\u05e4\u05e1 \u05dc\u05e2\u05e8\u05db\u05d9\u05dd \u05d4\u05e0\u05d5\u05db\u05d7\u05d9\u05d9\u05dd"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_he",function(e){e.Intl.add("gallery-itsaformmodel","he",{ready:"\u05de\u05d5\u05db\u05df",enterrightformat:"\u05d0\u05e0\u05d0 \u05d4\u05db\u05e0\u05e1 \u05d0\u05ea \u05d4\u05e4\u05d5\u05e8\u05de\u05d8 \u05d4\u05e0\u05db\u05d5\u05df",entervalidnumber:"\u05d0\u05e0\u05d0 \u05d4\u05db\u05e0\u05e1 \u05de\u05e1\u05e4\u05e8 \u05d7\u05d5\u05e7\u05d9",inputrequired:"\u05e0\u05d3\u05e8\u05e9 \u05e7\u05dc\u05d8",unvalidated:"\u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d4\u05d5\u05d0 \u05d1\u05d0\u05d5\u05e4\u05df \u05e9\u05d2\u05d5\u05d9",notification:"\u05d4\u05d5\u05d3\u05e2\u05d4",datachanged:"\u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d4\u05e9\u05ea\u05e0\u05d5 \u05de\u05d7\u05d5\u05e5 \u05dc\u05d8\u05d5\u05e4\u05e1",wantreload:"\u05dc\u05d8\u05e2\u05d5\u05df \u05d0\u05d5\u05ea\u05d5 \u05dc\u05ea\u05d5\u05da \u05d4\u05e6\u05d5\u05e8\u05d4",noreloadmsg:"\u05d0\u05dd \u05dc\u05d0, \u05d0\u05d6 \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d9\u05d4\u05d9\u05d5 \u05dc\u05d0\u05e4\u05e1 \u05d0\u05ea \u05d4\u05d8\u05d5\u05e4\u05e1 \u05dc\u05e2\u05e8\u05db\u05d9\u05dd \u05d4\u05e0\u05d5\u05db\u05d7\u05d9\u05d9\u05dd"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_hi.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_hi",function(e){e.Intl.add("gallery-itsaformmodel","hi",{ready:"\u0924\u0948\u092f\u093e\u0930",enterrightformat:"\u0938\u0939\u0940 \u092a\u094d\u0930\u093e\u0930\u0942\u092a \u0926\u0930\u094d\u091c \u0915\u0930\u0947\u0902",entervalidnumber:"\u090f\u0915 \u092e\u093e\u0928\u094d\u092f \u0938\u0902\u0916\u094d\u092f\u093e \u0926\u0930\u094d\u091c \u0915\u0930\u0947\u0902",inputrequired:"\u0907\u0928\u092a\u0941\u091f \u0915\u0940 \u0906\u0935\u0936\u094d\u092f\u0915\u0924\u093e \u0939\u0948",unvalidated:"\u0921\u0947\u091f\u093e \u0915\u094b \u0917\u0932\u0924 \u0922\u0902\u0917 \u0938\u0947 \u0939\u0948",notification:"\u0905\u0927\u093f\u0938\u0942\u091a\u0928\u093e",datachanged:"\u0921\u0947\u091f\u093e \u092a\u094d\u0930\u092a\u0924\u094d\u0930 \u0915\u0947 \u092c\u093e\u0939\u0930 \u092c\u0926\u0932 \u0926\u093f\u092f\u093e \u0917\u092f\u093e \u0939\u0948",wantreload:"\u092a\u094d\u0930\u092a\u0924\u094d\u0930 \u092e\u0947\u0902 \u0932\u094b\u0921",noreloadmsg:"\u0905\u0917\u0930 \u0928\u0939\u0940\u0902, \u0924\u094b \u0921\u0947\u091f\u093e \u092e\u094c\u091c\u0942\u0926\u093e \u092b\u093e\u0930\u094d\u092e \u092e\u0942\u0932\u094d\u092f\u094b\u0902 \u0915\u094b \u092b\u093f\u0930 \u0938\u0947 \u0915\u093e\u092f\u092e \u0939\u094b \u091c\u093e\u090f\u0917\u093e"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_hi",function(e){e.Intl.add("gallery-itsaformmodel","hi",{ready:"\u0924\u0948\u092f\u093e\u0930",enterrightformat:"\u0938\u0939\u0940 \u092a\u094d\u0930\u093e\u0930\u0942\u092a \u0926\u0930\u094d\u091c \u0915\u0930\u0947\u0902",entervalidnumber:"\u090f\u0915 \u092e\u093e\u0928\u094d\u092f \u0938\u0902\u0916\u094d\u092f\u093e \u0926\u0930\u094d\u091c \u0915\u0930\u0947\u0902",inputrequired:"\u0907\u0928\u092a\u0941\u091f \u0915\u0940 \u0906\u0935\u0936\u094d\u092f\u0915\u0924\u093e \u0939\u0948",unvalidated:"\u0921\u0947\u091f\u093e \u0915\u094b \u0917\u0932\u0924 \u0922\u0902\u0917 \u0938\u0947 \u0939\u0948",notification:"\u0905\u0927\u093f\u0938\u0942\u091a\u0928\u093e",datachanged:"\u0921\u0947\u091f\u093e \u092a\u094d\u0930\u092a\u0924\u094d\u0930 \u0915\u0947 \u092c\u093e\u0939\u0930 \u092c\u0926\u0932 \u0926\u093f\u092f\u093e \u0917\u092f\u093e \u0939\u0948",wantreload:"\u092a\u094d\u0930\u092a\u0924\u094d\u0930 \u092e\u0947\u0902 \u0932\u094b\u0921",noreloadmsg:"\u0905\u0917\u0930 \u0928\u0939\u0940\u0902, \u0924\u094b \u0921\u0947\u091f\u093e \u092e\u094c\u091c\u0942\u0926\u093e \u092b\u093e\u0930\u094d\u092e \u092e\u0942\u0932\u094d\u092f\u094b\u0902 \u0915\u094b \u092b\u093f\u0930 \u0938\u0947 \u0915\u093e\u092f\u092e \u0939\u094b \u091c\u093e\u090f\u0917\u093e"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_hr.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_hr",function(e){e.Intl.add("gallery-itsaformmodel","hr",{ready:"Spreman",enterrightformat:"unesite pravi format",entervalidnumber:"unesi broj",inputrequired:"Ulaz je potrebno",unvalidated:"Podaci su pogre\u0161no",notification:"Obavijest",datachanged:"Podaci su se promjenili izvan forme",wantreload:"Stavite ga u obliku",noreloadmsg:"ako ne, onda su podaci \u0107e se vratiti na trenutnu formu-vrijednosti"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_hr",function(e){e.Intl.add("gallery-itsaformmodel","hr",{ready:"Spreman",enterrightformat:"unesite pravi format",entervalidnumber:"unesi broj",inputrequired:"Ulaz je potrebno",unvalidated:"Podaci su pogre\u0161no",notification:"Obavijest",datachanged:"Podaci su se promjenili izvan forme",wantreload:"Stavite ga u obliku",noreloadmsg:"ako ne, onda su podaci \u0107e se vratiti na trenutnu formu-vrijednosti"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_hu.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_hu",function(e){e.Intl.add("gallery-itsaformmodel","hu",{ready:"K\u00e9sz",enterrightformat:"k\u00e9rj\u00fck, adja meg a megfelel\u0151 form\u00e1tumban",entervalidnumber:"k\u00e9rj\u00fck, adjon meg egy \u00e9rv\u00e9nyes sz\u00e1mot",inputrequired:"Input sz\u00fcks\u00e9ges",unvalidated:"Az adatok helytelen\u00fcl",notification:"Bejelent\u00e9s",datachanged:"Adatok megv\u00e1ltozott k\u00edv\u00fcli form\u00e1ban",wantreload:"T\u00f6ltse be az \u0171rlapot",noreloadmsg:"ha nem, akkor az adatok vissza\u00e1ll\u00edt\u00e1sa a jelenlegi form\u00e1j\u00e1ban-\u00e9rt\u00e9k"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_hu",function(e){e.Intl.add("gallery-itsaformmodel","hu",{ready:"K\u00e9sz",enterrightformat:"k\u00e9rj\u00fck, adja meg a megfelel\u0151 form\u00e1tumban",entervalidnumber:"k\u00e9rj\u00fck, adjon meg egy \u00e9rv\u00e9nyes sz\u00e1mot",inputrequired:"Input sz\u00fcks\u00e9ges",unvalidated:"Az adatok helytelen\u00fcl",notification:"Bejelent\u00e9s",datachanged:"Adatok megv\u00e1ltozott k\u00edv\u00fcli form\u00e1ban",wantreload:"T\u00f6ltse be az \u0171rlapot",noreloadmsg:"ha nem, akkor az adatok vissza\u00e1ll\u00edt\u00e1sa a jelenlegi form\u00e1j\u00e1ban-\u00e9rt\u00e9k"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_it.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_it",function(e){e.Intl.add("gallery-itsaformmodel","it",{ready:"Pronto",enterrightformat:"prega di inserire il formato giusto",entervalidnumber:"prega di inserire un numero valido",inputrequired:"\u00c8 richiesto l'input",unvalidated:"I dati sono erroneamente",notification:"Notifica",datachanged:"Dati \u00e8 stata modificata al di fuori della forma",wantreload:"Caricarlo nella forma",noreloadmsg:"se no, allora i dati saranno riportati ai valori di forma attuale"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_it",function(e){e.Intl.add("gallery-itsaformmodel","it",{ready:"Pronto",enterrightformat:"prega di inserire il formato giusto",entervalidnumber:"prega di inserire un numero valido",inputrequired:"\u00c8 richiesto l'input",unvalidated:"I dati sono erroneamente",notification:"Notifica",datachanged:"Dati \u00e8 stata modificata al di fuori della forma",wantreload:"Caricarlo nella forma",noreloadmsg:"se no, allora i dati saranno riportati ai valori di forma attuale"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_ja.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_ja",function(e){e.Intl.add("gallery-itsaformmodel","ja",{ready:"\u30ec\u30c7\u30a3",enterrightformat:"\u9069\u5207\u306a\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044",entervalidnumber:"\u6709\u52b9\u306a\u756a\u53f7\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044",inputrequired:"\u5165\u529b\u304c\u5fc5\u8981\u3067\u3059",unvalidated:"\u30c7\u30fc\u30bf\u304c\u9593\u9055\u3063\u3066\u3044\u308b",notification:"\u901a\u77e5",datachanged:"\u30c7\u30fc\u30bf\u306f\u5b9a\u5f62\u5916\u306b\u5909\u66f4\u3055\u308c\u307e\u3057\u305f",wantreload:"\u30d5\u30a9\u30fc\u30e0\u306b\u30ed\u30fc\u30c9",noreloadmsg:"\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u3001\u30c7\u30fc\u30bf\u306f\u3001\u73fe\u5728\u306e\u30d5\u30a9\u30fc\u30e0\u306e\u5024\u306b\u30ea\u30bb\u30c3\u30c8\u3055\u308c\u307e\u3059"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_ja",function(e){e.Intl.add("gallery-itsaformmodel","ja",{ready:"\u30ec\u30c7\u30a3",enterrightformat:"\u9069\u5207\u306a\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044",entervalidnumber:"\u6709\u52b9\u306a\u756a\u53f7\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044",inputrequired:"\u5165\u529b\u304c\u5fc5\u8981\u3067\u3059",unvalidated:"\u30c7\u30fc\u30bf\u304c\u9593\u9055\u3063\u3066\u3044\u308b",notification:"\u901a\u77e5",datachanged:"\u30c7\u30fc\u30bf\u306f\u5b9a\u5f62\u5916\u306b\u5909\u66f4\u3055\u308c\u307e\u3057\u305f",wantreload:"\u30d5\u30a9\u30fc\u30e0\u306b\u30ed\u30fc\u30c9",noreloadmsg:"\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u3001\u30c7\u30fc\u30bf\u306f\u3001\u73fe\u5728\u306e\u30d5\u30a9\u30fc\u30e0\u306e\u5024\u306b\u30ea\u30bb\u30c3\u30c8\u3055\u308c\u307e\u3059"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_nb.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_nb",function(e){e.Intl.add("gallery-itsaformmodel","nb",{ready:"Klar",enterrightformat:"skriv inn riktig format",entervalidnumber:"skriv inn et gyldig nummer",inputrequired:"Input er n\u00f8dvendig",unvalidated:"Dataene er feil",notification:"Varsling",datachanged:"Data er blitt forandret utenfor skjemaet",wantreload:"Legger det inn i skjemaet",noreloadmsg:"hvis ikke, s\u00e5 dataene vil bli nullstilt til de n\u00e5v\u00e6rende form-verdier"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_nb",function(e){e.Intl.add("gallery-itsaformmodel","nb",{ready:"Klar",enterrightformat:"skriv inn riktig format",entervalidnumber:"skriv inn et gyldig nummer",inputrequired:"Input er n\u00f8dvendig",unvalidated:"Dataene er feil",notification:"Varsling",datachanged:"Data er blitt forandret utenfor skjemaet",wantreload:"Legger det inn i skjemaet",noreloadmsg:"hvis ikke, s\u00e5 dataene vil bli nullstilt til de n\u00e5v\u00e6rende form-verdier"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_nl.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_nl",function(e){e.Intl.add("gallery-itsaformmodel","nl",{ready:"Gereed",enterrightformat:"geef de juiste opmaak",entervalidnumber:"geef aan geldig nummer",inputrequired:"Invoer is verplicht",unvalidated:"De invoer is niet juist",notification:"Notificatie",datachanged:"Gegevens zijn buiten het formulier gewijzigd",wantreload:"In het formulier laden",noreloadmsg:"Indien niet, dan worden de gegevens gezet op de huidige formulierwaarden"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_nl",function(e){e.Intl.add("gallery-itsaformmodel","nl",{ready:"Gereed",enterrightformat:"geef de juiste opmaak",entervalidnumber:"geef aan geldig nummer",inputrequired:"Invoer is verplicht",unvalidated:"De invoer is niet juist",notification:"Notificatie",datachanged:"Gegevens zijn buiten het formulier gewijzigd",wantreload:"In het formulier laden",noreloadmsg:"Indien niet, dan worden de gegevens gezet op de huidige formulierwaarden"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_pl.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_pl",function(e){e.Intl.add("gallery-itsaformmodel","pl",{ready:"Gotowy",enterrightformat:"wpisz odpowiedni format",entervalidnumber:"wpisz poprawny numer",inputrequired:"Wej\u015bcie jest wymagane",unvalidated:"Danych jest b\u0142\u0119dnie",notification:"zg\u0142oszenie",datachanged:"Dane zosta\u0142y zmienione poza formie",wantreload:"W\u0142\u00f3\u017c go w formie",noreloadmsg:"je\u015bli nie, to dane zostan\u0105 przywr\u00f3cone do aktualnych warto\u015bciach formularzy"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_pl",function(e){e.Intl.add("gallery-itsaformmodel","pl",{ready:"Gotowy",enterrightformat:"wpisz odpowiedni format",entervalidnumber:"wpisz poprawny numer",inputrequired:"Wej\u015bcie jest wymagane",unvalidated:"Danych jest b\u0142\u0119dnie",notification:"zg\u0142oszenie",datachanged:"Dane zosta\u0142y zmienione poza formie",wantreload:"W\u0142\u00f3\u017c go w formie",noreloadmsg:"je\u015bli nie, to dane zostan\u0105 przywr\u00f3cone do aktualnych warto\u015bciach formularzy"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_pt.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_pt",function(e){e.Intl.add("gallery-itsaformmodel","pt",{ready:"Pronto",enterrightformat:"por favor digite o formato certo",entervalidnumber:"por favor digite um n\u00famero v\u00e1lido",inputrequired:"A entrada \u00e9 necess\u00e1rio",unvalidated:"Os dados s\u00e3o incorretamente",notification:"Notifica\u00e7\u00e3o",datachanged:"Dados foram alterados fora do formul\u00e1rio",wantreload:"Carreg\u00e1-lo na forma",noreloadmsg:"se n\u00e3o, em seguida, os dados ser\u00e3o redefinidas para os valores de forma atuais"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_pt",function(e){e.Intl.add("gallery-itsaformmodel","pt",{ready:"Pronto",enterrightformat:"por favor digite o formato certo",entervalidnumber:"por favor digite um n\u00famero v\u00e1lido",inputrequired:"A entrada \u00e9 necess\u00e1rio",unvalidated:"Os dados s\u00e3o incorretamente",notification:"Notifica\u00e7\u00e3o",datachanged:"Dados foram alterados fora do formul\u00e1rio",wantreload:"Carreg\u00e1-lo na forma",noreloadmsg:"se n\u00e3o, em seguida, os dados ser\u00e3o redefinidas para os valores de forma atuais"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_ru.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_ru",function(e){e.Intl.add("gallery-itsaformmodel","ru",{ready:"\u0433\u043e\u0442\u043e\u0432\u044b\u0439",enterrightformat:"\u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u0443\u0436\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442",entervalidnumber:"\u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440",inputrequired:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0432\u0432\u043e\u0434",unvalidated:"\u0414\u0430\u043d\u043d\u044b\u0435 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e",notification:"\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435",datachanged:"\u0414\u0430\u043d\u043d\u044b\u0435 \u0431\u044b\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u044b \u0432\u043d\u0435 \u0444\u043e\u0440\u043c\u044b",wantreload:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u0432\u0438\u0434\u0435",noreloadmsg:"\u0435\u0441\u043b\u0438 \u043d\u0435\u0442, \u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u0431\u0440\u043e\u0448\u0435\u043d\u044b \u043a \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0444\u043e\u0440\u043c\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_ru",function(e){e.Intl.add("gallery-itsaformmodel","ru",{ready:"\u0433\u043e\u0442\u043e\u0432\u044b\u0439",enterrightformat:"\u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u0443\u0436\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442",entervalidnumber:"\u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440",inputrequired:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0432\u0432\u043e\u0434",unvalidated:"\u0414\u0430\u043d\u043d\u044b\u0435 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e",notification:"\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435",datachanged:"\u0414\u0430\u043d\u043d\u044b\u0435 \u0431\u044b\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u044b \u0432\u043d\u0435 \u0444\u043e\u0440\u043c\u044b",wantreload:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u0432\u0438\u0434\u0435",noreloadmsg:"\u0435\u0441\u043b\u0438 \u043d\u0435\u0442, \u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u0431\u0440\u043e\u0448\u0435\u043d\u044b \u043a \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0444\u043e\u0440\u043c\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_sk.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_sk",function(e){e.Intl.add("gallery-itsaformmodel","sk",{ready:"Pripraven\u00fd",enterrightformat:"zadajte spr\u00e1vny form\u00e1t",entervalidnumber:"zadajte platn\u00e9 \u010d\u00edslo",inputrequired:"Je nutn\u00e9 zada\u0165",unvalidated:"D\u00e1ta s\u00fa nespr\u00e1vne",notification:"Ozn\u00e1menie",datachanged:"D\u00e1ta bola zmenen\u00e1 mimo formul\u00e1r",wantreload:"Vlo\u017ete ju do formul\u00e1ra",noreloadmsg:"ak nie, potom bud\u00fa d\u00e1ta obnovi\u0165 na existuj\u00face formul\u00e1re hodn\u00f4t"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_sk",function(e){e.Intl.add("gallery-itsaformmodel","sk",{ready:"Pripraven\u00fd",enterrightformat:"zadajte spr\u00e1vny form\u00e1t",entervalidnumber:"zadajte platn\u00e9 \u010d\u00edslo",inputrequired:"Je nutn\u00e9 zada\u0165",unvalidated:"D\u00e1ta s\u00fa nespr\u00e1vne",notification:"Ozn\u00e1menie",datachanged:"D\u00e1ta bola zmenen\u00e1 mimo formul\u00e1r",wantreload:"Vlo\u017ete ju do formul\u00e1ra",noreloadmsg:"ak nie, potom bud\u00fa d\u00e1ta obnovi\u0165 na existuj\u00face formul\u00e1re hodn\u00f4t"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_sr.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_sr",function(e){e.Intl.add("gallery-itsaformmodel","sr",{ready:"\u0441\u043f\u0440\u0435\u043c\u0430\u043d",enterrightformat:"\u0443\u043d\u0435\u0441\u0438\u0442\u0435 \u043f\u0440\u0430\u0432\u0438 \u0444\u043e\u0440\u043c\u0430\u0442",entervalidnumber:"\u0443\u043d\u0435\u0441\u0435\u0442\u0435 \u0432\u0430\u0436\u0435\u045b\u0438 \u0431\u0440\u043e\u0458",inputrequired:"\u0423\u043b\u0430\u0437 \u0458\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e",unvalidated:"\u041f\u043e\u0434\u0430\u0446\u0438 \u0441\u0443 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u043d\u043e",notification:"\u043e\u0431\u0430\u0432\u0435\u0448\u0442\u0435\u045a\u0435",datachanged:"\u041f\u043e\u0434\u0430\u0446\u0438 \u0441\u0443 \u0441\u0435 \u043f\u0440\u043e\u043c\u0435\u043d\u0438\u043b\u0438 \u0432\u0430\u043d \u0444\u043e\u0440\u043c\u0435",wantreload:"\u0423\u0431\u0430\u0446\u0438\u0442\u0435 \u0433\u0430 \u0443 \u0444\u043e\u0440\u043c\u0438",noreloadmsg:"\u0430\u043a\u043e \u043d\u0435, \u043e\u043d\u0434\u0430 \u043f\u043e\u0434\u0430\u0446\u0438 \u045b\u0435 \u0431\u0438\u0442\u0438 \u0432\u0440\u0430\u045b\u0435\u043d\u0430 \u043d\u0430 \u0442\u0440\u0435\u043d\u0443\u0442\u043d\u0443 \u0444\u043e\u0440\u043c\u0443-\u0432\u0440\u0435\u0434\u043d\u043e\u0441\u0442\u0438"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_sr",function(e){e.Intl.add("gallery-itsaformmodel","sr",{ready:"\u0441\u043f\u0440\u0435\u043c\u0430\u043d",enterrightformat:"\u0443\u043d\u0435\u0441\u0438\u0442\u0435 \u043f\u0440\u0430\u0432\u0438 \u0444\u043e\u0440\u043c\u0430\u0442",entervalidnumber:"\u0443\u043d\u0435\u0441\u0435\u0442\u0435 \u0432\u0430\u0436\u0435\u045b\u0438 \u0431\u0440\u043e\u0458",inputrequired:"\u0423\u043b\u0430\u0437 \u0458\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e",unvalidated:"\u041f\u043e\u0434\u0430\u0446\u0438 \u0441\u0443 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u043d\u043e",notification:"\u043e\u0431\u0430\u0432\u0435\u0448\u0442\u0435\u045a\u0435",datachanged:"\u041f\u043e\u0434\u0430\u0446\u0438 \u0441\u0443 \u0441\u0435 \u043f\u0440\u043e\u043c\u0435\u043d\u0438\u043b\u0438 \u0432\u0430\u043d \u0444\u043e\u0440\u043c\u0435",wantreload:"\u0423\u0431\u0430\u0446\u0438\u0442\u0435 \u0433\u0430 \u0443 \u0444\u043e\u0440\u043c\u0438",noreloadmsg:"\u0430\u043a\u043e \u043d\u0435, \u043e\u043d\u0434\u0430 \u043f\u043e\u0434\u0430\u0446\u0438 \u045b\u0435 \u0431\u0438\u0442\u0438 \u0432\u0440\u0430\u045b\u0435\u043d\u0430 \u043d\u0430 \u0442\u0440\u0435\u043d\u0443\u0442\u043d\u0443 \u0444\u043e\u0440\u043c\u0443-\u0432\u0440\u0435\u0434\u043d\u043e\u0441\u0442\u0438"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_sv.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_sv",function(e){e.Intl.add("gallery-itsaformmodel","sv",{ready:"Klar",enterrightformat:"ange r\u00e4tt format",entervalidnumber:"ange ett giltigt nummer",inputrequired:"Inmatning erfordras",unvalidated:"Uppgifterna \u00e4r felaktigt",notification:"Underr\u00e4ttelse",datachanged:"Uppgifter har \u00e4ndrats utanf\u00f6r formen",wantreload:"Ladda in den i formul\u00e4ret",noreloadmsg:"om inte, d\u00e5 uppgifterna kommer att \u00e5terst\u00e4llas till de nuvarande form-v\u00e4rden"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_sv",function(e){e.Intl.add("gallery-itsaformmodel","sv",{ready:"Klar",enterrightformat:"ange r\u00e4tt format",entervalidnumber:"ange ett giltigt nummer",inputrequired:"Inmatning erfordras",unvalidated:"Uppgifterna \u00e4r felaktigt",notification:"Underr\u00e4ttelse",datachanged:"Uppgifter har \u00e4ndrats utanf\u00f6r formen",wantreload:"Ladda in den i formul\u00e4ret",noreloadmsg:"om inte, d\u00e5 uppgifterna kommer att \u00e5terst\u00e4llas till de nuvarande form-v\u00e4rden"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_uk.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_uk",function(e){e.Intl.add("gallery-itsaformmodel","uk",{ready:"\u0433\u043e\u0442\u043e\u0432\u0438\u0439",enterrightformat:"\u0432\u0432\u0435\u0434\u0456\u0442\u044c \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u0438\u0439 \u0444\u043e\u0440\u043c\u0430\u0442",entervalidnumber:"\u0432\u0432\u0435\u0434\u0456\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0438\u0439 \u043d\u043e\u043c\u0435\u0440",inputrequired:"\u041f\u043e\u0442\u0440\u0456\u0431\u043d\u0435 \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f",unvalidated:"\u0414\u0430\u043d\u0456 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e",notification:"\u043f\u043e\u0432\u0456\u0434\u043e\u043c\u043b\u0435\u043d\u043d\u044f",datachanged:"\u0414\u0430\u043d\u0456 \u0431\u0443\u043b\u0438 \u0437\u043c\u0456\u043d\u0435\u043d\u0456 \u043f\u043e\u0437\u0430 \u0444\u043e\u0440\u043c\u043e\u044e",wantreload:"\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438 \u0439\u043e\u0433\u043e \u0443 \u0432\u0438\u0433\u043b\u044f\u0434\u0456",noreloadmsg:"\u044f\u043a\u0449\u043e \u043d\u0456, \u0442\u043e \u0434\u0430\u043d\u0456 \u0431\u0443\u0434\u0443\u0442\u044c \u0441\u043a\u0438\u043d\u0443\u0442\u0456 \u0434\u043e \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u0444\u043e\u0440\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u044c"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_uk",function(e){e.Intl.add("gallery-itsaformmodel","uk",{ready:"\u0433\u043e\u0442\u043e\u0432\u0438\u0439",enterrightformat:"\u0432\u0432\u0435\u0434\u0456\u0442\u044c \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u0438\u0439 \u0444\u043e\u0440\u043c\u0430\u0442",entervalidnumber:"\u0432\u0432\u0435\u0434\u0456\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0438\u0439 \u043d\u043e\u043c\u0435\u0440",inputrequired:"\u041f\u043e\u0442\u0440\u0456\u0431\u043d\u0435 \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f",unvalidated:"\u0414\u0430\u043d\u0456 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e",notification:"\u043f\u043e\u0432\u0456\u0434\u043e\u043c\u043b\u0435\u043d\u043d\u044f",datachanged:"\u0414\u0430\u043d\u0456 \u0431\u0443\u043b\u0438 \u0437\u043c\u0456\u043d\u0435\u043d\u0456 \u043f\u043e\u0437\u0430 \u0444\u043e\u0440\u043c\u043e\u044e",wantreload:"\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438 \u0439\u043e\u0433\u043e \u0443 \u0432\u0438\u0433\u043b\u044f\u0434\u0456",noreloadmsg:"\u044f\u043a\u0449\u043e \u043d\u0456, \u0442\u043e \u0434\u0430\u043d\u0456 \u0431\u0443\u0434\u0443\u0442\u044c \u0441\u043a\u0438\u043d\u0443\u0442\u0456 \u0434\u043e \u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0457 \u0444\u043e\u0440\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u044c"})},"gallery-2014.02.26-18-54");
2  build/gallery-itsaformmodel/lang/gallery-itsaformmodel_zh.js
View
@@ -1 +1 @@
-YUI.add("lang/gallery-itsaformmodel_zh",function(e){e.Intl.add("gallery-itsaformmodel","zh",{ready:"\u6e96\u5099",enterrightformat:"\u8f38\u5165\u6b63\u78ba\u7684\u683c\u5f0f",entervalidnumber:"\u8f38\u5165\u4e00\u500b\u6709\u6548\u7684\u6578\u5b57",inputrequired:"\u9700\u8981\u8f38\u5165",unvalidated:"\u8a72\u6578\u64da\u662f\u4e0d\u6b63\u78ba\u7684",notification:"\u901a\u77e5",datachanged:"\u6578\u64da\u4ee5\u5916\u7684\u5f62\u5f0f\u5df2\u7d93\u6539\u8b8a",wantreload:"\u5b83\u52a0\u8f09\u5230\u5f62\u5f0f",noreloadmsg:"\u5982\u679c\u6c92\u6709\uff0c\u90a3\u9ebc\u6578\u64da\u5c07\u88ab\u91cd\u7f6e\u7576\u524d\u8868\u55ae\u7684\u503c"})},"gallery-2014.01.10-22-44");
+YUI.add("lang/gallery-itsaformmodel_zh",function(e){e.Intl.add("gallery-itsaformmodel","zh",{ready:"\u6e96\u5099",enterrightformat:"\u8f38\u5165\u6b63\u78ba\u7684\u683c\u5f0f",entervalidnumber:"\u8f38\u5165\u4e00\u500b\u6709\u6548\u7684\u6578\u5b57",inputrequired:"\u9700\u8981\u8f38\u5165",unvalidated:"\u8a72\u6578\u64da\u662f\u4e0d\u6b63\u78ba\u7684",notification:"\u901a\u77e5",datachanged:"\u6578\u64da\u4ee5\u5916\u7684\u5f62\u5f0f\u5df2\u7d93\u6539\u8b8a",wantreload:"\u5b83\u52a0\u8f09\u5230\u5f62\u5f0f",noreloadmsg:"\u5982\u679c\u6c92\u6709\uff0c\u90a3\u9ebc\u6578\u64da\u5c07\u88ab\u91cd\u7f6e\u7576\u524d\u8868\u55ae\u7684\u503c"})},"gallery-2014.02.26-18-54");
2  src/gallery-itsaformmodel/docs/index.mustache
View
@@ -210,7 +210,7 @@
<h3>Using toJSONUI()</h3>
<p>
- When using <code>toJSON()</code> all attributes are string-rendered in their UI-element and available as a property. However, there might be situations where you also need the original attribute-value (f.i. when micro-templating). Therefore, all original attribute-values are available with underscore-properties <code>_attributename</code>. If you want any buttons avalaible in the generated object, then use the first parameter.
+ When using <code>toJSONUI()</code> all attributes are string-rendered in their UI-element and available as a property. However, there might be situations where you also need the original attribute-value (f.i. when micro-templating). Therefore, all original attribute-values are available with underscore-properties <code>_attributename</code>. If you want any buttons avalaible in the generated object, then use the first parameter.
</p>
<h4>Micro-templating</h4>
<p>Be aware that all property-values are <u>html-strings</u>: when templating with micro-templates. To render the UI-elements, you need to use
101 src/gallery-itsaformmodel/js/gallery-itsaformmodel.js
View
@@ -403,7 +403,7 @@ ITSAFormModel.prototype.initializer = function() {
instance._ATTRS_nodes = {},
/**
- * internal backup of which nodeid's have been inserted in the dom before, referenced by nodei's
+ * internal backup of which nodeid's have been inserted in the dom before, referenced by nodeid's
* object-properties are 'true' when not found the be removed from the dom yet and a timestamps when
* out of the dom (stamped with the time out-of-dom was registered)
* @property _knownNodeIds
@@ -638,15 +638,15 @@ ITSAFormModel.prototype.disableUI = function() {
* Only to be used when destroyed - or when a containernode gets empty.
*
* @method cleanup
+ * @param [container] {Y.Node} only cleanup items inside this container
* @protected
* @since 0.1
*/
-ITSAFormModel.prototype.cleanup = function() {
- // TODO: also destroy the widgets in case their nodeid's are in the dom
+ITSAFormModel.prototype.cleanup = function(container) {
var instance = this;
- instance._FORM_elements = {};
- instance._ATTRS_nodes = {};
- instance._knownNodeIds = {};
+/*jshint expr:true */
+ container ? instance._cleanupContainer(container) : instance._cleanup();
+/*jshint expr:false */
};
/**
@@ -1701,7 +1701,7 @@ ITSAFormModel.prototype.translatePromise = ITSAFormModel.translatePromise;
* @since 0.1
*/
ITSAFormModel.prototype.validated = function() {
- Y.log('destructor', 'info', 'ITSAFormModel');
+ Y.log('validated', 'info', 'ITSAFormModel');
return (this.getUnvalidatedUI().size()===0);
};
@@ -1956,6 +1956,87 @@ ITSAFormModel.prototype._bindUI = function() {
};
/**
+ * Cleans up internal references of everything the formmodel has inserted in the dom.
+ * Only to be used when destroyed - or when a containernode gets empty.
+ *
+ * @method _cleanup
+ * @protected
+ * @private
+ * @since 0.1
+*/
+ITSAFormModel.prototype._cleanup = function() {
+ var instance = this,
+ formelements = instance.getCurrentFormElements(),
+ node;
+ YArray.each(
+ formelements,
+ function(formelement) {
+/*jshint expr:true */
+ formelement.widget && formelement.widget.destroy(true);
+/*jshint expr:false */
+ node = Y.one('#'+formelement.nodeid);
+ if (node) {
+ node.get('childNodes').destroy(true);
+ node.remove(true);
+ }
+ }
+ );
+ instance._FORM_elements = {};
+ instance._ATTRS_nodes = {};
+ instance._knownNodeIds = {};
+};
+
+/**
+ * Cleans up internal references of everything the formmodel has inserted inside the container.
+ * Only to be used when a containernode gets empty.
+ *
+ * @method _cleanupContainer
+ * @param [container] {Y.Node} only cleanup items inside this container
+ * @protected
+ * @private
+ * @since 0.1
+*/
+ITSAFormModel.prototype._cleanupContainer = function(container) {
+ var instance = this,
+ attributenodes = instance._ATTRS_nodes,
+ formelements = instance._FORM_elements,
+ knownNodeIds = instance._knownNodeIds,
+ knowdIdsRemoval = [],
+ node, formelement, attribute, indexofitem;
+ YObject.each(
+ knownNodeIds,
+ function(value, nodeid) {
+ formelement = formelements[nodeid];
+ node = container.one('#'+nodeid);
+ // remove node
+ if (node) {
+/*jshint expr:true */
+ formelement.widget && formelement.widget.destroy(true);
+/*jshint expr:false */
+ node.get('childNodes').destroy(true);
+ node.remove(true);
+ delete formelements[nodeid];
+ // now find the inside the array _ATTRS_nodes[attribute] for the item that holds ref. to the nodeid
+ attribute = formelement.name;
+ indexofitem = attributenodes[attribute].indexOf(nodeid);
+/*jshint expr:true */
+ indexofitem && attributenodes[attribute].splice(indexofitem, 1);
+/*jshint expr:false */
+ // now store the nodeid, because it has to be removed from instance._knownNodeIds
+ knowdIdsRemoval.push(nodeid);
+ }
+ }
+ );
+ // now remove it from knownNodeIds
+ YArray.each(
+ knowdIdsRemoval,
+ function(nodeid) {
+ delete knownNodeIds[nodeid];
+ }
+ );
+};
+
+/**
* Cleaning up all eventlisteners
*
* @method _clearEventhandlers
@@ -2032,7 +2113,11 @@ ITSAFormModel.prototype._defFn_changedate = function(e) {
// be carefull: button might not exist anymore, when the view is rerendered
if (node) {
node.removeAttribute(DATA_CONTENT);
- node.focus();
+ try {
+ // ALWAYS focus nodes using try/catch to prevent js-error when node not in the dom
+ node.focus();
+ }
+ catch(err) {}
tipsycontent = node.getAttribute(DATA+'-contentvalid');
/*jshint expr:true */
tipsycontent && node.setAttribute(DATA_CONTENT, tipsycontent);
4 src/gallery-itsaformmodel/logs/tests.json
View
@@ -3,6 +3,6 @@
"failed": 2,
"total": 2,
"ignored": 0,
- "name": "http://127.0.0.1:5004/tests/src/gallery-itsaformmodel/tests/unit/index.html?filter=coverage",
- "error": "TypeError: 'undefined' is not an object (evaluating 'new Y.Test.Suite')\nhttp://127.0.0.1:5004/tests/src/gallery-itsaformmodel/tests/unit/js/tests.js:3\nhttp://127.0.0.1:5004/build/yui/yui.js:775\nhttp://127.0.0.1:5004/build/yui/yui.js:1112\nhttp://127.0.0.1:5004/build/yui/yui.js:7708\nhttp://127.0.0.1:5004/build/yui/yui.js:7799\nhttp://127.0.0.1:5004/build/yui/yui.js:7999\nhttp://127.0.0.1:5004/build/yui/yui.js:8066\nhttp://127.0.0.1:5004/build/yui/yui.js:4619\nhttp://127.0.0.1:5004/build/yui/yui.js:4819\nhttp://127.0.0.1:5004/build/yui/yui.js:4927\nhttp://127.0.0.1:5004/build/yui/yui.js:4711"
+ "name": "http://127.0.0.1:5000/tests/src/gallery-itsaformmodel/tests/unit/index.html?filter=coverage",
+ "error": "TypeError: 'undefined' is not an object (evaluating 'new Y.Test.Suite')\nhttp://127.0.0.1:5000/tests/src/gallery-itsaformmodel/tests/unit/js/tests.js:3\nhttp://127.0.0.1:5000/build/yui/yui.js:775\nhttp://127.0.0.1:5000/build/yui/yui.js:1112\nhttp://127.0.0.1:5000/build/yui/yui.js:7708\nhttp://127.0.0.1:5000/build/yui/yui.js:7799\nhttp://127.0.0.1:5000/build/yui/yui.js:7999\nhttp://127.0.0.1:5000/build/yui/yui.js:8066\nhttp://127.0.0.1:5000/build/yui/yui.js:4619\nhttp://127.0.0.1:5000/build/yui/yui.js:4819\nhttp://127.0.0.1:5000/build/yui/yui.js:4927\nhttp://127.0.0.1:5000/build/yui/yui.js:4711"
}
34 src/gallery-itsaformmodel/logs/yogi.stdout.log
View
@@ -1,4 +1,4 @@
-yogi [info] using yogi@0.1.11 on node@0.11.10
+yogi [info] using yogi@0.1.11 on node@0.8.26
yogi [info] using module: gallery-itsaformmodel
yogi [info] running with shifter
shifter [info] racing to find the closest .shifter.json file
@@ -48,30 +48,30 @@ shifter [info] shifted lang for gallery-itsaformmodel
shifter [info] shifted lang for gallery-itsaformmodel
shifter [info] shifted lang for gallery-itsaformmodel
shifter [info] done racing, the gears are toast
-shifter [info] finished in 0.869 seconds, pretty fast huh?
+shifter [info] finished in 1.118 seconds, pretty fast huh?
yogi [info] build complete
yogi [info] testing module now
yogi [info] prepping grover tests
yogi [info] adding tests route
-yogi [info] launching xdr server on port 5005
-yogi [info] listening on: http://127.0.0.1:5004
yogi [info] turning on coverage support in grover
-Starting Grover on 1 files with PhantomJS@1.9.1
+yogi [info] launching xdr server on port 5001
+yogi [info] listening on: http://127.0.0.1:5000
+Starting Grover on 1 files with PhantomJS@1.9.2
Running 15 concurrent tests at a time.
Using a 120 second timeout per test.
-✖ [http://127.0.0.1:5004/tests/src/gallery-itsaformmodel/tests/unit/index.html?filter=coverage]: Passed: 0 Failed: 1 Total: 1 (ignored 0)
+✖ [http://127.0.0.1:5000/tests/src/gallery-itsaformmodel/tests/unit/index.html?filter=coverage]: Passed: 0 Failed: 1 Total: 1 (ignored 0)
Javascript Error
TypeError: 'undefined' is not an object (evaluating 'new Y.Test.Suite')
- http://127.0.0.1:5004/tests/src/gallery-itsaformmodel/tests/unit/js/tests.js:3
- http://127.0.0.1:5004/build/yui/yui.js:775
- http://127.0.0.1:5004/build/yui/yui.js:1112
- http://127.0.0.1:5004/build/yui/yui.js:7708
- http://127.0.0.1:5004/build/yui/yui.js:7799
- http://127.0.0.1:5004/build/yui/yui.js:7999
- http://127.0.0.1:5004/build/yui/yui.js:8066
- http://127.0.0.1:5004/build/yui/yui.js:4619
- http://127.0.0.1:5004/build/yui/yui.js:4819
- http://127.0.0.1:5004/build/yui/yui.js:4927
- http://127.0.0.1:5004/build/yui/yui.js:4711
+ http://127.0.0.1:5000/tests/src/gallery-itsaformmodel/tests/unit/js/tests.js:3
+ http://127.0.0.1:5000/build/yui/yui.js:775
+ http://127.0.0.1:5000/build/yui/yui.js:1112
+ http://127.0.0.1:5000/build/yui/yui.js:7708
+ http://127.0.0.1:5000/build/yui/yui.js:7799
+ http://127.0.0.1:5000/build/yui/yui.js:7999
+ http://127.0.0.1:5000/build/yui/yui.js:8066
+ http://127.0.0.1:5000/build/yui/yui.js:4619
+ http://127.0.0.1:5000/build/yui/yui.js:4819
+ http://127.0.0.1:5000/build/yui/yui.js:4927
+ http://127.0.0.1:5000/build/yui/yui.js:4711
Writing files in JSON format to: /src/gallery-itsaformmodel/logs/tests.json
yogi [bail] grover returned a failure
Please sign in to comment.
Something went wrong with that request. Please try again.