$.widget("ui.Scrollers",{_create:function(){var e=this.element,i=this;e.form({columns:[{label:i18n("name"),widget:"<input class = 'resource-dialog-input ui-widget-content ui-corner-al name'/>"}]});var t={};t[i18n("confirm_")]=function(){i.confirm()&&e.dialog("close")};t[i18n("cancel")]=function(){e.dialog("close")};e.dialog({width:280,height:170,buttons:t,modal:!0,closeText:i18n("close_")})},updateScroller:function(e,i,t){var r=this.element;this.callback=i;this.oldId=t;this.oldJson=e;r.find(".name").val(t);this.addHistory()},confirm:function(){var e=this.element,i=e.find(".name").val();return this.callback&&this.callback(this.oldJson,i)},addHistory:function(e){this.history||(this.history=new gamemeiHistory);$.history=this.history;e&&$.history.add(e)}});$.widget("ui.Flashplayers",$.ui.Scrollers,{updateFlashplayer:$.ui.Scrollers.prototype.updateScroller});$.widget("ui.Iframes",$.ui.Scrollers,{updateIframe:$.ui.Scrollers.prototype.updateScroller});$.widget("ui.Tabs",$.ui.Scrollers,{updateTab:$.ui.Scrollers.prototype.updateScroller});$.widget("ui.Videos",$.ui.Scrollers,{updateVideo:$.ui.Scrollers.prototype.updateScroller});$.widget("ui.Containers",$.ui.Scrollers,{updateContainer:$.ui.Scrollers.prototype.updateScroller});$.widget("ui.Inputs",$.ui.Scrollers,{updateInput:$.ui.Scrollers.prototype.updateScroller});