~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/filesystem/browser/media/browser.js

Check that stat.svnurl exists before using parts of it to enable the Submit action.

Show diffs side-by-side

added added

removed removed

Lines of Context:
786
786
          (numsel == 1 && (stat = file_listing[selected_files[0]])) ||
787
787
          (numsel == 0 && (stat = current_file))
788
788
         ) && stat.svnstatus != "unversioned"
 
789
           && stat.svnurl
789
790
           && stat.svnurl.substr(0, svn_base.length) == svn_base);
790
791
    set_action_state(["submit"], single_ivle_versioned_path);
791
792