diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 395b2a53c1000..1438fc504e605 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -130,6 +130,8 @@ * @return true if the file name is valid. * Throws a string exception with an error message if * the file name is not valid + * + * NOTE: This function is duplicated in the filepicker inside core/src/OC/dialogs.js */ isFileNameValid: function (name) { var trimmedName = name.trim(); diff --git a/core/js/dist/login.js b/core/js/dist/login.js index fea190abbf967..10b5912236b3f 100644 --- a/core/js/dist/login.js +++ b/core/js/dist/login.js @@ -44,7 +44,7 @@ function(e){var t,n,r,i,a,o,s,u,c,l,d,f,h,p,m,_,v,y,g,M="sizzle"+1*new Date,L=e. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . - */var $={YES_NO_BUTTONS:70,OK_BUTTONS:71,FILEPICKER_TYPE_CHOOSE:1,FILEPICKER_TYPE_MOVE:2,FILEPICKER_TYPE_COPY:3,FILEPICKER_TYPE_COPY_MOVE:4,FILEPICKER_TYPE_CUSTOM:5,dialogsCounter:0,alert:function(e,t,n,r){this.message(e,t,"alert",$.OK_BUTTON,n,r)},info:function(e,t,n,r){this.message(e,t,"info",$.OK_BUTTON,n,r)},confirm:function(e,t,n,r){return this.message(e,t,"notice",$.YES_NO_BUTTONS,n,r)},confirmDestructive:function(e,t,n,r,i){return this.message(e,t,"none",n,r,i)},confirmHtml:function(e,t,n,r){return this.message(e,t,"notice",$.YES_NO_BUTTONS,n,r,!0)},prompt:function(e,n,r,i,a,o){return s.a.when(this._getMessageTemplate()).then((function(u){var c="oc-dialog-"+$.dialogsCounter+"-content",l="#"+c,f=u.octemplate({dialog_name:c,title:n,message:e,type:"notice"}),h=s()("");h.attr("type",o?"password":"text").attr("id",c+"-input").attr("placeholder",a);var p=s()("