Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter snakelabs

    (@snakelabs)

    I solved the problem.

    I change this code on row 299/306 of file sam-admin-edit-item.js:

    onSubmit:function (file, ext) {
            if (!(ext && /^(jpg|png|jpeg|gif|swf)$/.test(ext))) {
              status.text(samStrs.status);
              return false;
            }
            loadImg.show();
            status.text(samStrs.uploading);
            return false;
          },

    with this

    onSubmit:function (file, ext) {
            if (!(ext && /^(jpg|png|jpeg|gif|swf)$/.test(ext))) {
              status.text(samStrs.status);
              return false;
            }
            loadImg.show();
            status.text(samStrs.uploading);
          },

    I have simply removed the 2nd return false

Viewing 1 replies (of 1 total)